mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Support deinterlacing of YUVJ420P.
Originally committed as revision 25148 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
63206a8ffb
commit
4792d1e792
@ -1175,6 +1175,7 @@ int avpicture_deinterlace(AVPicture *dst, const AVPicture *src,
|
||||
int i;
|
||||
|
||||
if (pix_fmt != PIX_FMT_YUV420P &&
|
||||
pix_fmt != PIX_FMT_YUVJ420P &&
|
||||
pix_fmt != PIX_FMT_YUV422P &&
|
||||
pix_fmt != PIX_FMT_YUV444P &&
|
||||
pix_fmt != PIX_FMT_YUV411P &&
|
||||
@ -1186,6 +1187,7 @@ int avpicture_deinterlace(AVPicture *dst, const AVPicture *src,
|
||||
for(i=0;i<3;i++) {
|
||||
if (i == 1) {
|
||||
switch(pix_fmt) {
|
||||
case PIX_FMT_YUVJ420P:
|
||||
case PIX_FMT_YUV420P:
|
||||
width >>= 1;
|
||||
height >>= 1;
|
||||
|
Loading…
Reference in New Issue
Block a user