-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
356 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
void main() | ||
{ | ||
vec3 yuv; | ||
vec4 color = vec4(0.0, 0.0, 0.0, 1.0); | ||
|
||
yuv.x = texture(tex_y, TexCord).r; | ||
yuv.yz = texture(tex_u, TexCord).rg; | ||
vec3 yuv; | ||
vec4 color = vec4(0.0, 0.0, 0.0, 1.0); | ||
|
||
yuv += offset; | ||
color.rgb = yuv * colorConversion; | ||
yuv.x = texture(tex_y, TexCord).r; | ||
yuv.yz = texture(tex_u, TexCord).rg; | ||
|
||
color.rgb = adjustContrast(color.rgb, contrast); | ||
color.rgb = adjustSaturation(color.rgb, saturation); | ||
color.rgb = adjustBrightness(color.rgb, brightness); | ||
|
||
FragColor = color; | ||
} | ||
yuv += offset; | ||
color.rgb = yuv * colorConversion; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
void main() | ||
{ | ||
vec3 yuv; | ||
vec4 color = vec4(0.0, 0.0, 0.0, 1.0); | ||
|
||
yuv.x = texture(tex_y, TexCord).r; | ||
yuv.yz = texture(tex_u, TexCord).gr; | ||
vec3 yuv; | ||
vec4 color = vec4(0.0, 0.0, 0.0, 1.0); | ||
|
||
yuv += offset; | ||
color.rgb = yuv * colorConversion; | ||
yuv.x = texture(tex_y, TexCord).r; | ||
yuv.yz = texture(tex_u, TexCord).gr; | ||
|
||
color.rgb = adjustContrast(color.rgb, contrast); | ||
color.rgb = adjustSaturation(color.rgb, saturation); | ||
color.rgb = adjustBrightness(color.rgb, brightness); | ||
|
||
FragColor = color; | ||
} | ||
yuv += offset; | ||
color.rgb = yuv * colorConversion; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
void main() | ||
{ | ||
vec3 yuv; | ||
vec4 color = vec4(0.0, 0.0, 0.0, 1.0); | ||
|
||
yuv.x = texture(tex_y, TexCord).r; | ||
yuv.yz = texture(tex_u, TexCord).rg; | ||
vec3 yuv; | ||
vec4 color = vec4(0.0, 0.0, 0.0, 1.0); | ||
|
||
yuv += offset; | ||
color.rgb = yuv * colorConversion; | ||
yuv.x = texture(tex_y, TexCord).r; | ||
yuv.yz = texture(tex_u, TexCord).rg; | ||
|
||
color.rgb = adjustContrast(color.rgb, contrast); | ||
color.rgb = adjustSaturation(color.rgb, saturation); | ||
color.rgb = adjustBrightness(color.rgb, brightness); | ||
|
||
FragColor = color; | ||
} | ||
yuv += offset; | ||
color.rgb = yuv * colorConversion; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,17 @@ | ||
void main() | ||
{ | ||
vec3 yuv; | ||
vec4 color = vec4(0.0, 0.0, 0.0, 1.0); | ||
|
||
int width = textureSize(tex_y, 0).x * 2; | ||
float tex_x = TexCord.x; | ||
int pixel = int(floor(width * tex_x)) % 2; | ||
vec4 tc = texture(tex_y, TexCord).rgba; | ||
float cb = tc.r; | ||
float y1 = tc.g; | ||
float cr = tc.b; | ||
float y2 = tc.a; | ||
float y = (pixel == 1) ? y2 : y1; | ||
yuv = vec3(y, cb, cr); | ||
vec3 yuv; | ||
vec4 color = vec4(0.0, 0.0, 0.0, 1.0); | ||
|
||
yuv += offset; | ||
color.rgb = yuv * colorConversion; | ||
int width = textureSize(tex_y, 0).x * 2; | ||
float tex_x = TexCord.x; | ||
int pixel = int(floor(width * tex_x)) % 2; | ||
vec4 tc = texture(tex_y, TexCord).rgba; | ||
float cb = tc.r; | ||
float y1 = tc.g; | ||
float cr = tc.b; | ||
float y2 = tc.a; | ||
float y = (pixel == 1) ? y2 : y1; | ||
yuv = vec3(y, cb, cr); | ||
|
||
color.rgb = adjustContrast(color.rgb, contrast); | ||
color.rgb = adjustSaturation(color.rgb, saturation); | ||
color.rgb = adjustBrightness(color.rgb, brightness); | ||
|
||
FragColor = color; | ||
} | ||
yuv += offset; | ||
color.rgb = yuv * colorConversion; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
void main() | ||
{ | ||
vec3 yuv; | ||
vec4 color = vec4(0.0, 0.0, 0.0, 1.0); | ||
|
||
yuv.x = texture(tex_y, TexCord).r; | ||
yuv.y = texture(tex_u, TexCord).r; | ||
yuv.z = texture(tex_v, TexCord).r; | ||
vec3 yuv; | ||
vec4 color = vec4(0.0, 0.0, 0.0, 1.0); | ||
|
||
yuv += offset; | ||
color.rgb = yuv * colorConversion; | ||
yuv.x = texture(tex_y, TexCord).r; | ||
yuv.y = texture(tex_u, TexCord).r; | ||
yuv.z = texture(tex_v, TexCord).r; | ||
|
||
color.rgb = adjustContrast(color.rgb, contrast); | ||
color.rgb = adjustSaturation(color.rgb, saturation); | ||
color.rgb = adjustBrightness(color.rgb, brightness); | ||
|
||
FragColor = color; | ||
} | ||
yuv += offset; | ||
color.rgb = yuv * colorConversion; |
Oops, something went wrong.