diff libvo/vo_gl.c @ 26834:aadfce1c25c8

Use a struct instead of a huge and further growing argument list.
author reimar
date Sat, 24 May 2008 11:03:00 +0000
parents a9aae3d4721d
children ba086caf1230
line wrap: on
line diff
--- a/libvo/vo_gl.c	Sat May 24 07:48:35 2008 +0000
+++ b/libvo/vo_gl.c	Sat May 24 11:03:00 2008 +0000
@@ -179,9 +179,10 @@
   float rgamma = exp(log(8.0) * eq_rgamma / 100.0);
   float ggamma = exp(log(8.0) * eq_ggamma / 100.0);
   float bgamma = exp(log(8.0) * eq_bgamma / 100.0);
-  glSetupYUVConversion(gl_target, yuvconvtype, bri, cont, hue, sat,
-                       rgamma, ggamma, bgamma,
-                       texture_width, texture_height);
+  gl_conversion_params_t params = {gl_target, yuvconvtype,
+      bri, cont, hue, sat, rgamma, ggamma, bgamma,
+      texture_width, texture_height};
+  glSetupYUVConversion(&params);
   if (custom_prog) {
     FILE *f = fopen(custom_prog, "r");
     if (!f)