UYVY support patch by ("Todd.Kirby" <doubleshot at pacbell dot net>)

Originally committed as revision 3339 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Todd Kirby
2004-07-25 10:01:36 +00:00
committed by Michael Niedermayer
parent 8300609b78
commit ebb177ddef
3 changed files with 168 additions and 6 deletions

View File

@@ -141,6 +141,7 @@ void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height){
switch(s->pix_fmt){
case PIX_FMT_YUV420P:
case PIX_FMT_YUV422:
case PIX_FMT_UYVY422:
case PIX_FMT_YUV422P:
case PIX_FMT_YUV444P:
case PIX_FMT_GRAY8:
@@ -218,6 +219,7 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
case PIX_FMT_RGB555:
case PIX_FMT_RGB565:
case PIX_FMT_YUV422:
case PIX_FMT_UYVY422:
pixel_size=2;
break;
case PIX_FMT_RGB24: