Mercurial > libavcodec.hg
comparison imgconvert.c @ 315:40d8092e2ff0 libavcodec
* using pixtype as enum - by Philip Gladstone
author | kabi |
---|---|
date | Mon, 08 Apr 2002 21:03:35 +0000 |
parents | 5aa6292a1660 |
children | fce0a2520551 |
comparison
equal
deleted
inserted
replaced
314:289eb941b8ba | 315:40d8092e2ff0 |
---|---|
358 int img_convert(AVPicture *dst, int dst_pix_fmt, | 358 int img_convert(AVPicture *dst, int dst_pix_fmt, |
359 AVPicture *src, int pix_fmt, | 359 AVPicture *src, int pix_fmt, |
360 int width, int height) | 360 int width, int height) |
361 { | 361 { |
362 int i; | 362 int i; |
363 | |
364 assert(pix_fmt != PIX_FMT_ANY && dst_pix_fmt != PIX_FMT_ANY); | |
363 | 365 |
364 if (dst_pix_fmt == pix_fmt) { | 366 if (dst_pix_fmt == pix_fmt) { |
365 switch(pix_fmt) { | 367 switch(pix_fmt) { |
366 case PIX_FMT_YUV420P: | 368 case PIX_FMT_YUV420P: |
367 for(i=0;i<3;i++) { | 369 for(i=0;i<3;i++) { |