comparison libvo/vo_xmga.c @ 5317:80fbb03b385a

U,V plane odrer fixed
author arpi
date Sun, 24 Mar 2002 20:45:30 +0000
parents 3dbceaff9f77
children d596cf3c54aa
comparison
equal deleted inserted replaced
5316:ce6f625f6682 5317:80fbb03b385a
216 216
217 switch(format) 217 switch(format)
218 { 218 {
219 case IMGFMT_YV12: 219 case IMGFMT_YV12:
220 height+=height&1; 220 height+=height&1;
221 mga_vid_config.format=MGA_VID_FORMAT_YV12; 221 mga_vid_config.format=MGA_VID_FORMAT_IYUV;
222 mga_vid_config.frame_size=( ( width + 31 ) & ~31 ) * height + ( ( ( width + 31 ) & ~31 ) * height ) / 2; 222 mga_vid_config.frame_size=( ( width + 31 ) & ~31 ) * height + ( ( ( width + 31 ) & ~31 ) * height ) / 2;
223 break; 223 break;
224 case IMGFMT_I420: 224 case IMGFMT_I420:
225 height+=height&1;
226 mga_vid_config.format=MGA_VID_FORMAT_I420;
227 mga_vid_config.frame_size=( ( width + 31 ) & ~31 ) * height + ( ( ( width + 31 ) & ~31 ) * height ) / 2;
228 break;
229 case IMGFMT_IYUV: 225 case IMGFMT_IYUV:
230 height+=height&1; 226 height+=height&1;
231 mga_vid_config.format=MGA_VID_FORMAT_IYUV; 227 mga_vid_config.format=MGA_VID_FORMAT_YV12;
232 mga_vid_config.frame_size=( ( width + 31 ) & ~31 ) * height + ( ( ( width + 31 ) & ~31 ) * height ) / 2; 228 mga_vid_config.frame_size=( ( width + 31 ) & ~31 ) * height + ( ( ( width + 31 ) & ~31 ) * height ) / 2;
233 break; 229 break;
234 case IMGFMT_YUY2: 230 case IMGFMT_YUY2:
235 mga_vid_config.format=MGA_VID_FORMAT_YUY2; 231 mga_vid_config.format=MGA_VID_FORMAT_YUY2;
236 mga_vid_config.frame_size=( ( width + 31 ) & ~31 ) * height * 2; 232 mga_vid_config.frame_size=( ( width + 31 ) & ~31 ) * height * 2;