Mercurial > mplayer.hg
comparison libswscale/swscale.c @ 31712:0f81290cb05d
Add some comments to the rgb2yuv_table, clarifying the standard where
are defined.
author | stefano |
---|---|
date | Sat, 24 Jul 2010 11:19:35 +0000 |
parents | d53473c681ac |
children | 75bbf9bd2936 |
comparison
equal
deleted
inserted
replaced
31711:4d1d27319b7a | 31712:0f81290cb05d |
---|---|
95 #define RY ( (int)(0.299*219/255*(1<<RGB2YUV_SHIFT)+0.5)) | 95 #define RY ( (int)(0.299*219/255*(1<<RGB2YUV_SHIFT)+0.5)) |
96 #define RV ( (int)(0.500*224/255*(1<<RGB2YUV_SHIFT)+0.5)) | 96 #define RV ( (int)(0.500*224/255*(1<<RGB2YUV_SHIFT)+0.5)) |
97 #define RU (-(int)(0.169*224/255*(1<<RGB2YUV_SHIFT)+0.5)) | 97 #define RU (-(int)(0.169*224/255*(1<<RGB2YUV_SHIFT)+0.5)) |
98 | 98 |
99 static const double rgb2yuv_table[8][9]={ | 99 static const double rgb2yuv_table[8][9]={ |
100 {0.7152, 0.0722, 0.2126, -0.386, 0.5, -0.115, -0.454, -0.046, 0.5}, | 100 {0.7152, 0.0722, 0.2126, -0.386, 0.5, -0.115, -0.454, -0.046, 0.5}, //ITU709 |
101 {0.7152, 0.0722, 0.2126, -0.386, 0.5, -0.115, -0.454, -0.046, 0.5}, | 101 {0.7152, 0.0722, 0.2126, -0.386, 0.5, -0.115, -0.454, -0.046, 0.5}, //ITU709 |
102 {0.587 , 0.114 , 0.299 , -0.331, 0.5, -0.169, -0.419, -0.081, 0.5}, | 102 {0.587 , 0.114 , 0.299 , -0.331, 0.5, -0.169, -0.419, -0.081, 0.5}, //DEFAULT / ITU601 / ITU624 / SMPTE 170M |
103 {0.587 , 0.114 , 0.299 , -0.331, 0.5, -0.169, -0.419, -0.081, 0.5}, | 103 {0.587 , 0.114 , 0.299 , -0.331, 0.5, -0.169, -0.419, -0.081, 0.5}, //DEFAULT / ITU601 / ITU624 / SMPTE 170M |
104 {0.59 , 0.11 , 0.30 , -0.331, 0.5, -0.169, -0.421, -0.079, 0.5}, //FCC | 104 {0.59 , 0.11 , 0.30 , -0.331, 0.5, -0.169, -0.421, -0.079, 0.5}, //FCC |
105 {0.587 , 0.114 , 0.299 , -0.331, 0.5, -0.169, -0.419, -0.081, 0.5}, | 105 {0.587 , 0.114 , 0.299 , -0.331, 0.5, -0.169, -0.419, -0.081, 0.5}, //DEFAULT / ITU601 / ITU624 / SMPTE 170M |
106 {0.587 , 0.114 , 0.299 , -0.331, 0.5, -0.169, -0.419, -0.081, 0.5}, //SMPTE 170M | 106 {0.587 , 0.114 , 0.299 , -0.331, 0.5, -0.169, -0.419, -0.081, 0.5}, //DEFAULT / ITU601 / ITU624 / SMPTE 170M |
107 {0.701 , 0.087 , 0.212 , -0.384, 0.5 -0.116, -0.445, -0.055, 0.5}, //SMPTE 240M | 107 {0.701 , 0.087 , 0.212 , -0.384, 0.5 -0.116, -0.445, -0.055, 0.5}, //SMPTE 240M |
108 }; | 108 }; |
109 | 109 |
110 /* | 110 /* |
111 NOTES | 111 NOTES |