summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-09 18:53:07 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-09 18:53:07 +0000
commit08a64d106db14f32ed531a394030cf7e662cd78e (patch)
tree94ffc87ae9e768dd5c8069b0beda67cad24706a7 /libmpcodecs
parent8e37b1c7e078de0c092a88712ba5348056fd4a98 (diff)
downloadmpv-08a64d106db14f32ed531a394030cf7e662cd78e.tar.bz2
mpv-08a64d106db14f32ed531a394030cf7e662cd78e.tar.xz
Support for yuv410p as needed by ffsvq1.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6682 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vd_ffmpeg.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index efc2eb465c..265e7d4bde 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -45,6 +45,9 @@ typedef struct {
int vo_inited;
int convert;
int yuy2_support;
+#if LIBAVCODEC_BUILD >= 4615
+ int yvu9_support;
+#endif
} vd_ffmpeg_ctx;
//#ifdef FF_POSTPROCESS
@@ -77,6 +80,9 @@ static int control(sh_video_t *sh,int cmd,void* arg,...){
if( (*((int*)arg)) == IMGFMT_IYUV ) return CONTROL_TRUE;
if( (*((int*)arg)) == IMGFMT_I420 ) return CONTROL_TRUE;
if( (*((int*)arg)) == IMGFMT_YUY2 && ctx->yuy2_support ) return CONTROL_TRUE;
+#if LIBAVCODEC_BUILD >= 4615
+ if( (*((int*)arg)) == IMGFMT_YVU9 && ctx->yvu9_support ) return CONTROL_TRUE;
+#endif
return CONTROL_FALSE;
}
return CONTROL_UNKNOWN;
@@ -251,6 +257,9 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
sh->disp_h = avctx->height;
ctx->vo_inited=1;
ctx->yuy2_support=(avctx->pix_fmt==PIX_FMT_YUV422P);
+#if LIBAVCODEC_BUILD >= 4615
+ ctx->yvu9_support=(avctx->pix_fmt==PIX_FMT_YUV410P);
+#endif
if (!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,
ctx->yuy2_support ? IMGFMT_YUY2 : IMGFMT_YV12))
return NULL;