]> git.sesse.net Git - movit/log
movit
11 years agoFix R/B swapping in the SDL conversion.
Steinar H. Gunderson [Wed, 3 Oct 2012 20:05:52 +0000 (22:05 +0200)]
Fix R/B swapping in the SDL conversion.

11 years agoYet another use-NULL-instead-of-giving-in-empty-stuff cleanup.
Steinar H. Gunderson [Wed, 3 Oct 2012 18:25:54 +0000 (20:25 +0200)]
Yet another use-NULL-instead-of-giving-in-empty-stuff cleanup.

11 years agoFix a (harmless) Valgrind hit.
Steinar H. Gunderson [Wed, 3 Oct 2012 18:23:07 +0000 (20:23 +0200)]
Fix a (harmless) Valgrind hit.

11 years agoLet SDL convert the pixels instead of doing it ourselves.
Steinar H. Gunderson [Wed, 3 Oct 2012 18:22:36 +0000 (20:22 +0200)]
Let SDL convert the pixels instead of doing it ourselves.

11 years agoAdd a “sandbox effect” that does nothing but is a useful playground for development...
Steinar H. Gunderson [Wed, 3 Oct 2012 17:56:22 +0000 (19:56 +0200)]
Add a “sandbox effect” that does nothing but is a useful playground for development of new effects.

11 years agoWork around a Mesa bug wrt. mipmap generation.
Steinar H. Gunderson [Wed, 3 Oct 2012 16:55:24 +0000 (18:55 +0200)]
Work around a Mesa bug wrt. mipmap generation.

11 years agoGive NULL to glTexImage2D() instead of zeroing memory ourselves.
Steinar H. Gunderson [Wed, 3 Oct 2012 16:55:08 +0000 (18:55 +0200)]
Give NULL to glTexImage2D() instead of zeroing memory ourselves.

11 years agoMirror does not need linear light or sRGB primaries, of course.
Steinar H. Gunderson [Wed, 3 Oct 2012 15:59:20 +0000 (17:59 +0200)]
Mirror does not need linear light or sRGB primaries, of course.

11 years agoYet more header file comments.
Steinar H. Gunderson [Wed, 3 Oct 2012 15:56:14 +0000 (17:56 +0200)]
Yet more header file comments.

11 years agoComment all of *_effect.h.
Steinar H. Gunderson [Wed, 3 Oct 2012 15:53:10 +0000 (17:53 +0200)]
Comment all of *_effect.h.

11 years agoComment the Effect class.
Steinar H. Gunderson [Wed, 3 Oct 2012 15:37:18 +0000 (17:37 +0200)]
Comment the Effect class.

11 years agoSmall refactoring.
Steinar H. Gunderson [Wed, 3 Oct 2012 14:48:05 +0000 (16:48 +0200)]
Small refactoring.

11 years agoMake a new system for meta-effects, and convert the blur to use it. Hides the two...
Steinar H. Gunderson [Wed, 3 Oct 2012 14:46:15 +0000 (16:46 +0200)]
Make a new system for meta-effects, and convert the blur to use it. Hides the two-pass nature.

11 years agoSome more GL state paranoia.
Steinar H. Gunderson [Wed, 3 Oct 2012 14:30:55 +0000 (16:30 +0200)]
Some more GL state paranoia.

11 years agoFlesh out the blur code a little. It actually blurs now, although it is not as pretty...
Steinar H. Gunderson [Wed, 3 Oct 2012 14:30:34 +0000 (16:30 +0200)]
Flesh out the blur code a little. It actually blurs now, although it is not as pretty as I would like it.

11 years agoSupport setting vec4 arrays.
Steinar H. Gunderson [Wed, 3 Oct 2012 12:55:27 +0000 (14:55 +0200)]
Support setting vec4 arrays.

11 years agoDo not send uninitialized memory as a texture.
Steinar H. Gunderson [Wed, 3 Oct 2012 12:40:13 +0000 (14:40 +0200)]
Do not send uninitialized memory as a texture.

11 years agoSet better texture environment for the intermediate textures.
Steinar H. Gunderson [Wed, 3 Oct 2012 10:31:37 +0000 (12:31 +0200)]
Set better texture environment for the intermediate textures.

11 years agoAdd a hack to restore the miplevels after blurring.
Steinar H. Gunderson [Wed, 3 Oct 2012 09:52:53 +0000 (11:52 +0200)]
Add a hack to restore the miplevels after blurring.

11 years agoFix the blur so it is much prettier, by not sampling from a mipmap in the second...
Steinar H. Gunderson [Tue, 2 Oct 2012 23:25:50 +0000 (01:25 +0200)]
Fix the blur so it is much prettier, by not sampling from a mipmap in the second pass.

11 years agoIncrease the range of the blur control.
Steinar H. Gunderson [Tue, 2 Oct 2012 23:14:27 +0000 (01:14 +0200)]
Increase the range of the blur control.

11 years agoAdd vertical blurring, and fix a bug where not all taps would be used.
Steinar H. Gunderson [Tue, 2 Oct 2012 23:01:13 +0000 (01:01 +0200)]
Add vertical blurring, and fix a bug where not all taps would be used.

11 years agoTry to adjust the mip levels to get box blur for free as needed.
Steinar H. Gunderson [Tue, 2 Oct 2012 22:56:02 +0000 (00:56 +0200)]
Try to adjust the mip levels to get box blur for free as needed.

11 years agoHook up a blur radius control.
Steinar H. Gunderson [Tue, 2 Oct 2012 22:47:13 +0000 (00:47 +0200)]
Hook up a blur radius control.

11 years agoMake the blur into a simple, Gaussian horizontal blur. Still not very good.
Steinar H. Gunderson [Tue, 2 Oct 2012 22:45:32 +0000 (00:45 +0200)]
Make the blur into a simple, Gaussian horizontal blur. Still not very good.

11 years agoSupport multiple render phases (with FBOs and all), and make a sample blur effect...
Steinar H. Gunderson [Tue, 2 Oct 2012 22:20:05 +0000 (00:20 +0200)]
Support multiple render phases (with FBOs and all), and make a sample blur effect that uses it.

11 years agoMark some functions in Effect as const.
Steinar H. Gunderson [Tue, 2 Oct 2012 20:19:31 +0000 (22:19 +0200)]
Mark some functions in Effect as const.

11 years agoFix indenting in effect_id.h.
Steinar H. Gunderson [Tue, 2 Oct 2012 18:45:08 +0000 (20:45 +0200)]
Fix indenting in effect_id.h.

11 years agoLess stupid mirroring.
Steinar H. Gunderson [Tue, 2 Oct 2012 18:37:44 +0000 (20:37 +0200)]
Less stupid mirroring.

11 years agoAdd a new framework for 1D-LUTs via fp16 textures. Make the gamma compression and...
Steinar H. Gunderson [Tue, 2 Oct 2012 17:58:09 +0000 (19:58 +0200)]
Add a new framework for 1D-LUTs via fp16 textures. Make the gamma compression and expansion effects use it.

11 years agoKill the hard-coded texture enums (yay).
Steinar H. Gunderson [Tue, 2 Oct 2012 17:34:11 +0000 (19:34 +0200)]
Kill the hard-coded texture enums (yay).

11 years agoKill the vertex shader system; it is too complicated to get it right until we have...
Steinar H. Gunderson [Tue, 2 Oct 2012 16:50:16 +0000 (18:50 +0200)]
Kill the vertex shader system; it is too complicated to get it right until we have a full DAG understanding.

11 years agoRevert "Move calculation of normalized position for the vignette into the vertex...
Steinar H. Gunderson [Tue, 2 Oct 2012 12:32:48 +0000 (14:32 +0200)]
Revert "Move calculation of normalized position for the vignette into the vertex shader."

This is not correct, since tc can be changed by the fragment shader
_and_ by later vertex shaders. We need to do some rethinking here,
seemingly.

This reverts commit 2b4a7d868112b4995bf6699f5b3aa68e9ec2b308.

11 years agoAdd a mirror effect.
Steinar H. Gunderson [Tue, 2 Oct 2012 12:18:37 +0000 (14:18 +0200)]
Add a mirror effect.

11 years agoMove calculation of normalized position for the vignette into the vertex shader.
Steinar H. Gunderson [Tue, 2 Oct 2012 11:59:31 +0000 (13:59 +0200)]
Move calculation of normalized position for the vignette into the vertex shader.

11 years agoFix a confusion in the vertex shader chaining.
Steinar H. Gunderson [Tue, 2 Oct 2012 11:55:43 +0000 (13:55 +0200)]
Fix a confusion in the vertex shader chaining.

11 years agoRename .glsl to .vert/.frag.
Steinar H. Gunderson [Tue, 2 Oct 2012 11:50:48 +0000 (13:50 +0200)]
Rename .glsl to .vert/.frag.

11 years agoChain together vertex shaders, like with fragment shaders.
Steinar H. Gunderson [Tue, 2 Oct 2012 11:46:25 +0000 (13:46 +0200)]
Chain together vertex shaders, like with fragment shaders.

11 years agoRename identity.glsl to identity-fs.glsl.
Steinar H. Gunderson [Tue, 2 Oct 2012 11:37:57 +0000 (13:37 +0200)]
Rename identity.glsl to identity-fs.glsl.

11 years agoRename output_glsl to output_fragment_shader.
Steinar H. Gunderson [Tue, 2 Oct 2012 11:35:59 +0000 (13:35 +0200)]
Rename output_glsl to output_fragment_shader.

11 years agoUpload the texture via PBOs. Slight speedup on nVidia, rather neutral on Intel.
Steinar H. Gunderson [Tue, 2 Oct 2012 10:36:39 +0000 (12:36 +0200)]
Upload the texture via PBOs. Slight speedup on nVidia, rather neutral on Intel.

11 years agoFix a C++11 compatibility issue.
Steinar H. Gunderson [Tue, 2 Oct 2012 10:12:43 +0000 (12:12 +0200)]
Fix a C++11 compatibility issue.

11 years agoUpload textures in BGRA format instead of RGB. Somewhat faster on nVidia, somewhat...
Steinar H. Gunderson [Tue, 2 Oct 2012 09:56:19 +0000 (11:56 +0200)]
Upload textures in BGRA format instead of RGB. Somewhat faster on nVidia, somewhat slower on Intel.

11 years agoUse glTexSubImage2D on second and later uploads.
Steinar H. Gunderson [Tue, 2 Oct 2012 09:48:34 +0000 (11:48 +0200)]
Use glTexSubImage2D on second and later uploads.

11 years agoRevert "Slight cleanup in texture upload format selection."
Steinar H. Gunderson [Tue, 2 Oct 2012 09:46:59 +0000 (11:46 +0200)]
Revert "Slight cleanup in texture upload format selection."

This reverts commit 7ead6f1c15daf8e5a70df583198a8ce58251b0d6.

11 years agoSlight cleanup in texture upload format selection.
Steinar H. Gunderson [Tue, 2 Oct 2012 09:46:46 +0000 (11:46 +0200)]
Slight cleanup in texture upload format selection.

11 years agoSlight cleanup in texture upload format selection.
Steinar H. Gunderson [Tue, 2 Oct 2012 09:44:51 +0000 (11:44 +0200)]
Slight cleanup in texture upload format selection.

11 years agoFix float/int divide (it is not allowed).
Steinar H. Gunderson [Mon, 1 Oct 2012 23:36:23 +0000 (01:36 +0200)]
Fix float/int divide (it is not allowed).

11 years ago<sys/time.h> is needed for gettimeofday.
Steinar H. Gunderson [Mon, 1 Oct 2012 23:28:16 +0000 (01:28 +0200)]
<sys/time.h> is needed for gettimeofday.

11 years agoLess old-style GLSL extension use.
Steinar H. Gunderson [Mon, 1 Oct 2012 23:24:57 +0000 (01:24 +0200)]
Less old-style GLSL extension use.

11 years agoAdd fallbacks for systems without proper monotonic clocks (e.g. OS X).
Steinar H. Gunderson [Mon, 1 Oct 2012 23:10:40 +0000 (01:10 +0200)]
Add fallbacks for systems without proper monotonic clocks (e.g. OS X).

11 years ago Vignette actually looks really nice in linear light; update effectlist.txt.
Steinar H. Gunderson [Mon, 1 Oct 2012 22:49:53 +0000 (00:49 +0200)]
 Vignette actually looks really nice in linear light; update effectlist.txt.

11 years agoFix a warning.
Steinar H. Gunderson [Mon, 1 Oct 2012 22:46:21 +0000 (00:46 +0200)]
Fix a warning.

11 years agoHook up the vignette effect to the sample app.
Steinar H. Gunderson [Mon, 1 Oct 2012 22:46:04 +0000 (00:46 +0200)]
Hook up the vignette effect to the sample app.

11 years agoAdd a vignette effect.
Steinar H. Gunderson [Mon, 1 Oct 2012 22:45:55 +0000 (00:45 +0200)]
Add a vignette effect.

11 years agoAdd vec2 parameter support.
Steinar H. Gunderson [Mon, 1 Oct 2012 22:45:08 +0000 (00:45 +0200)]
Add vec2 parameter support.

11 years agoRemove obsolete file todo.glsl.
Steinar H. Gunderson [Mon, 1 Oct 2012 22:07:05 +0000 (00:07 +0200)]
Remove obsolete file todo.glsl.

11 years agoMake it possible to instantiate the colorspace conversion effect separately.
Steinar H. Gunderson [Mon, 1 Oct 2012 22:04:18 +0000 (00:04 +0200)]
Make it possible to instantiate the colorspace conversion effect separately.

11 years agoFlip some need bits in the conversion effects.
Steinar H. Gunderson [Mon, 1 Oct 2012 22:03:12 +0000 (00:03 +0200)]
Flip some need bits in the conversion effects.

11 years agoAdd color space conversions on input and output.
Steinar H. Gunderson [Mon, 1 Oct 2012 21:44:26 +0000 (23:44 +0200)]
Add color space conversions on input and output.

11 years agoClean up stuff from the vertex shader.
Steinar H. Gunderson [Mon, 1 Oct 2012 19:02:55 +0000 (21:02 +0200)]
Clean up stuff from the vertex shader.

11 years agoImplement the Rec. 709 gamma curve.
Steinar H. Gunderson [Mon, 1 Oct 2012 19:01:36 +0000 (21:01 +0200)]
Implement the Rec. 709 gamma curve.

11 years agoAdd do-nothing-conversions for gamma expansion/compression if we are already linear...
Steinar H. Gunderson [Mon, 1 Oct 2012 18:49:50 +0000 (20:49 +0200)]
Add do-nothing-conversions for gamma expansion/compression if we are already linear. Mostly for completeness.

11 years agoRemove the now obsolete load_texture().
Steinar H. Gunderson [Mon, 1 Oct 2012 18:45:21 +0000 (20:45 +0200)]
Remove the now obsolete load_texture().

11 years agoUse sRGB textures on the input side if applicable.
Steinar H. Gunderson [Mon, 1 Oct 2012 18:45:03 +0000 (20:45 +0200)]
Use sRGB textures on the input side if applicable.

11 years agoRemove the now obsolete hand-coded fragment program.
Steinar H. Gunderson [Mon, 1 Oct 2012 18:40:35 +0000 (20:40 +0200)]
Remove the now obsolete hand-coded fragment program.

11 years agoClean up effect enums a bit.
Steinar H. Gunderson [Mon, 1 Oct 2012 18:37:27 +0000 (20:37 +0200)]
Clean up effect enums a bit.

11 years agoThe return value from glGetUniformLocation() is of course signed.
Steinar H. Gunderson [Mon, 1 Oct 2012 18:37:19 +0000 (20:37 +0200)]
The return value from glGetUniformLocation() is of course signed.

11 years agoMove saturation out into its own effect, and hook up the control.
Steinar H. Gunderson [Mon, 1 Oct 2012 18:35:17 +0000 (20:35 +0200)]
Move saturation out into its own effect, and hook up the control.

11 years agoSend the right inv_gamma_22 variable to the uniforms.
Steinar H. Gunderson [Mon, 1 Oct 2012 18:25:36 +0000 (20:25 +0200)]
Send the right inv_gamma_22 variable to the uniforms.

11 years agoActually set all the right uniforms, so we have a picture on screen.
Steinar H. Gunderson [Mon, 1 Oct 2012 18:24:14 +0000 (20:24 +0200)]
Actually set all the right uniforms, so we have a picture on screen.

11 years agoGive HSV parameters to LGG effect.
Steinar H. Gunderson [Mon, 1 Oct 2012 17:55:10 +0000 (19:55 +0200)]
Give HSV parameters to LGG effect.

11 years agoRemove a redundant comment.
Steinar H. Gunderson [Mon, 1 Oct 2012 17:25:03 +0000 (19:25 +0200)]
Remove a redundant comment.

11 years agoSlightly clearer comments for the custom uniforms in LGG.
Steinar H. Gunderson [Mon, 1 Oct 2012 17:24:21 +0000 (19:24 +0200)]
Slightly clearer comments for the custom uniforms in LGG.

11 years agoAdd lift/gamma/gain GLSL code. Completely black output, due to lack of uniform setting.
Steinar H. Gunderson [Mon, 1 Oct 2012 17:23:38 +0000 (19:23 +0200)]
Add lift/gamma/gain GLSL code. Completely black output, due to lack of uniform setting.

11 years agoSquash linear gamma back into the sRGB curve at the end.
Steinar H. Gunderson [Mon, 1 Oct 2012 17:16:45 +0000 (19:16 +0200)]
Squash linear gamma back into the sRGB curve at the end.

11 years agoImplement gamma expansion from sRGB.
Steinar H. Gunderson [Mon, 1 Oct 2012 17:05:43 +0000 (19:05 +0200)]
Implement gamma expansion from sRGB.

11 years agoMake the example program actually try to use the effect chain.
Steinar H. Gunderson [Mon, 1 Oct 2012 16:59:38 +0000 (18:59 +0200)]
Make the example program actually try to use the effect chain.

11 years agoMake check_error() output the file as well as the line, now that we have several.
Steinar H. Gunderson [Mon, 1 Oct 2012 16:46:53 +0000 (18:46 +0200)]
Make check_error() output the file as well as the line, now that we have several.

11 years agoSplit image loading from texture generation.
Steinar H. Gunderson [Mon, 1 Oct 2012 16:45:20 +0000 (18:45 +0200)]
Split image loading from texture generation.

11 years agoOutput convenience uniforms per effect. Also, do not rely on the preprocessor support...
Steinar H. Gunderson [Mon, 1 Oct 2012 16:20:35 +0000 (18:20 +0200)]
Output convenience uniforms per effect. Also, do not rely on the preprocessor supporting token pasting anymore.

11 years agoBuild with debug info.
Steinar H. Gunderson [Mon, 1 Oct 2012 16:13:42 +0000 (18:13 +0200)]
Build with debug info.

11 years agoStart actually piecing together the GLSL shaders from the effect chain.
Steinar H. Gunderson [Mon, 1 Oct 2012 15:57:26 +0000 (17:57 +0200)]
Start actually piecing together the GLSL shaders from the effect chain.

11 years agoMove slurping of files into its own function.
Steinar H. Gunderson [Mon, 1 Oct 2012 15:36:22 +0000 (17:36 +0200)]
Move slurping of files into its own function.

11 years agoFix a stray j.
Steinar H. Gunderson [Mon, 1 Oct 2012 15:27:09 +0000 (17:27 +0200)]
Fix a stray j.

11 years agoAdd a .gitignore to get rid of the junk in git status.
Steinar H. Gunderson [Mon, 1 Oct 2012 15:26:41 +0000 (17:26 +0200)]
Add a .gitignore to get rid of the junk in git status.

11 years agoYet more moving of stuff around.
Steinar H. Gunderson [Mon, 1 Oct 2012 15:26:13 +0000 (17:26 +0200)]
Yet more moving of stuff around.

11 years agoMove the Effect class out into its own file.
Steinar H. Gunderson [Mon, 1 Oct 2012 15:16:26 +0000 (17:16 +0200)]
Move the Effect class out into its own file.

11 years agoAdd parameters and start the effect chain implementation. Rework some of the enums.
Steinar H. Gunderson [Mon, 1 Oct 2012 15:14:17 +0000 (17:14 +0200)]
Add parameters and start the effect chain implementation. Rework some of the enums.

11 years agoRename test.cpp to main.cpp.
Steinar H. Gunderson [Mon, 1 Oct 2012 13:17:02 +0000 (15:17 +0200)]
Rename test.cpp to main.cpp.

11 years agoMove the widgets into its own source file.
Steinar H. Gunderson [Mon, 1 Oct 2012 13:16:50 +0000 (15:16 +0200)]
Move the widgets into its own source file.

11 years agoSmall Makefile cleanup to prepare for more files.
Steinar H. Gunderson [Mon, 1 Oct 2012 13:11:20 +0000 (15:11 +0200)]
Small Makefile cleanup to prepare for more files.

11 years agoSplit off hsv2rgb() in a separate file.
Steinar H. Gunderson [Mon, 1 Oct 2012 13:10:48 +0000 (15:10 +0200)]
Split off hsv2rgb() in a separate file.

11 years agoCorrect some CXXFLAGS stuff in the Makefile.
Steinar H. Gunderson [Mon, 1 Oct 2012 13:04:44 +0000 (15:04 +0200)]
Correct some CXXFLAGS stuff in the Makefile.

11 years agoStart the API.
Steinar H. Gunderson [Mon, 1 Oct 2012 13:04:16 +0000 (15:04 +0200)]
Start the API.

11 years agoChange to C++.
Steinar H. Gunderson [Mon, 1 Oct 2012 10:13:07 +0000 (12:13 +0200)]
Change to C++.

11 years agoAdd a Makefile.
Steinar H. Gunderson [Mon, 1 Oct 2012 10:11:20 +0000 (12:11 +0200)]
Add a Makefile.

11 years agoInitial checkin.
Steinar H. Gunderson [Mon, 1 Oct 2012 10:05:48 +0000 (12:05 +0200)]
Initial checkin.