Mercurial > mplayer.hg
comparison libvo/vo_jpeg.c @ 7487:e60109dfc85c
U-V swapping fixed, patch by Joey Parrish <joey@yunamusic.com>
author | arpi |
---|---|
date | Sun, 22 Sep 2002 18:43:53 +0000 |
parents | c4434bdf6e51 |
children | 5b39e79af5fe |
comparison
equal
deleted
inserted
replaced
7486:8dcbed9ff5db | 7487:e60109dfc85c |
---|---|
189 } | 189 } |
190 } | 190 } |
191 | 191 |
192 static uint32_t draw_slice( uint8_t *src[],int stride[],int w,int h,int x,int y ) | 192 static uint32_t draw_slice( uint8_t *src[],int stride[],int w,int h,int x,int y ) |
193 { | 193 { |
194 // hack: swap planes for I420 ;) -- alex | |
195 if ((image_format == IMGFMT_IYUV) || (image_format == IMGFMT_I420)) | |
196 { | |
197 uint8_t *src_i420[3]; | |
198 | |
199 src_i420[0]=src[0]; | |
200 src_i420[1]=src[2]; | |
201 src_i420[2]=src[1]; | |
202 src=src_i420; | |
203 } | |
204 | |
205 if (scale_srcW) | 194 if (scale_srcW) |
206 { | 195 { |
207 uint8_t *dst[3]={image_data, NULL, NULL}; | 196 uint8_t *dst[3]={image_data, NULL, NULL}; |
208 SwScale_YV12slice(src,stride,y,h, | 197 SwScale_YV12slice(src,stride,y,h, |
209 dst, image_width*((bpp+7)/8), bpp, | 198 dst, image_width*((bpp+7)/8), bpp, |