Mercurial > mplayer.hg
comparison libvo/mga_common.c @ 448:198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
author | arpi_esp |
---|---|
date | Sun, 15 Apr 2001 20:31:58 +0000 |
parents | 7785656abf11 |
children | c7c03bf70bb7 |
comparison
equal
deleted
inserted
replaced
447:b3b28a0d9404 | 448:198b46b739d8 |
---|---|
148 | 148 |
149 | 149 |
150 static uint32_t | 150 static uint32_t |
151 draw_frame(uint8_t *src[]) | 151 draw_frame(uint8_t *src[]) |
152 { | 152 { |
153 if (mga_vid_config.format==MGA_VID_FORMAT_YUY2) | 153 switch(mga_vid_config.format){ |
154 write_frame_yuy2(src[0]); | 154 case MGA_VID_FORMAT_YUY2: |
155 return 0; | 155 write_frame_yuy2(src[0]);break; |
156 case MGA_VID_FORMAT_UYVY: | |
157 write_frame_yuy2(src[0]);break; | |
158 } | |
159 return 0; | |
156 } | 160 } |
157 | 161 |
158 static uint32_t | 162 static uint32_t |
159 query_format(uint32_t format) | 163 query_format(uint32_t format) |
160 { | 164 { |
161 switch(format){ | 165 switch(format){ |
162 case IMGFMT_YV12: | 166 case IMGFMT_YV12: |
163 case IMGFMT_YUY2: | 167 case IMGFMT_YUY2: |
168 case IMGFMT_UYVY: | |
164 // case IMGFMT_RGB|24: | 169 // case IMGFMT_RGB|24: |
165 // case IMGFMT_BGR|24: | 170 // case IMGFMT_BGR|24: |
166 return 1; | 171 return 1; |
167 } | 172 } |
168 return 0; | 173 return 0; |