[MPlayer-cvslog] r35079 - trunk/libmpcodecs/vf_stereo3d.c
reimar
subversion at mplayerhq.hu
Sun Aug 12 19:25:30 CEST 2012
Author: reimar
Date: Sun Aug 12 19:25:30 2012
New Revision: 35079
Log:
Convert comments into designated initializers.
That is a simple way to ensure they always correspond
to what the compiler actually does.
Modified:
trunk/libmpcodecs/vf_stereo3d.c
Modified: trunk/libmpcodecs/vf_stereo3d.c
==============================================================================
--- trunk/libmpcodecs/vf_stereo3d.c Sun Aug 12 19:20:24 2012 (r35078)
+++ trunk/libmpcodecs/vf_stereo3d.c Sun Aug 12 19:25:30 2012 (r35079)
@@ -75,34 +75,44 @@ typedef struct component {
//==global variables==//
static const int ana_coeff[][3][6] = {
- {{19595, 38470, 7471, 0, 0, 0}, //ANAGLYPH_RC_GRAY
+ [ANAGLYPH_RC_GRAY] =
+ {{19595, 38470, 7471, 0, 0, 0},
{ 0, 0, 0, 19595, 38470, 7471},
{ 0, 0, 0, 19595, 38470, 7471}},
- {{19595, 38470, 7471, 0, 0, 0}, //ANAGLYPH_RC_HALF
+ [ANAGLYPH_RC_HALF] =
+ {{19595, 38470, 7471, 0, 0, 0},
{ 0, 0, 0, 0, 65536, 0},
{ 0, 0, 0, 0, 0, 65536}},
- {{65536, 0, 0, 0, 0, 0}, //ANAGLYPH_RC_COLOR
+ [ANAGLYPH_RC_COLOR] =
+ {{65536, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 65536, 0},
{ 0, 0, 0, 0, 0, 65536}},
- {{29891, 32800, 11559, -2849, -5763, -102}, //ANAGLYPH_RC_DUBOIS
+ [ANAGLYPH_RC_DUBOIS] =
+ {{29891, 32800, 11559, -2849, -5763, -102},
{-2627, -2479, -1033, 24804, 48080, -1209},
{ -997, -1350, -358, -4729, -7403, 80373}},
- {{ 0, 0, 0, 19595, 38470, 7471}, //ANAGLYPH_GM_GRAY
+ [ANAGLYPH_GM_GRAY] =
+ {{ 0, 0, 0, 19595, 38470, 7471},
{19595, 38470, 7471, 0, 0, 0},
{ 0, 0, 0, 19595, 38470, 7471}},
- {{ 0, 0, 0, 65536, 0, 0}, //ANAGLYPH_GM_HALF
+ [ANAGLYPH_GM_HALF] =
+ {{ 0, 0, 0, 65536, 0, 0},
{19595, 38470, 7471, 0, 0, 0},
{ 0, 0, 0, 0, 0, 65536}},
- {{ 0, 0, 0, 65536, 0, 0}, //ANAGLYPH_GM_COLOR
+ [ANAGLYPH_GM_COLOR] =
+ {{ 0, 0, 0, 65536, 0, 0},
{ 0, 65536, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 65536}},
- {{ 0, 0, 0, 19595, 38470, 7471}, //ANAGLYPH_YB_GRAY
+ [ANAGLYPH_YB_GRAY] =
+ {{ 0, 0, 0, 19595, 38470, 7471},
{ 0, 0, 0, 19595, 38470, 7471},
{19595, 38470, 7471, 0, 0, 0}},
- {{ 0, 0, 0, 65536, 0, 0}, //ANAGLYPH_YB_HALF
+ [ANAGLYPH_YB_HALF] =
+ {{ 0, 0, 0, 65536, 0, 0},
{ 0, 0, 0, 0, 65536, 0},
{19595, 38470, 7471, 0, 0, 0}},
- {{ 0, 0, 0, 65536, 0, 0}, //ANAGLYPH_YB_COLOR
+ [ANAGLYPH_YB_COLOR] =
+ {{ 0, 0, 0, 65536, 0, 0},
{ 0, 0, 0, 0, 65536, 0},
{ 0, 0, 65536, 0, 0, 0}}
};
More information about the MPlayer-cvslog
mailing list