comparison libmpcodecs/vd_ffmpeg.c @ 5707:d0308affc401

accept I420/IYUV in query_format
author arpi
date Fri, 19 Apr 2002 23:11:30 +0000
parents 481592004427
children c63b519bd183
comparison
equal deleted inserted replaced
5706:26c89aadf6f8 5707:d0308affc401
55 static int control(sh_video_t *sh,int cmd,void* arg,...){ 55 static int control(sh_video_t *sh,int cmd,void* arg,...){
56 vd_ffmpeg_ctx *ctx = sh->context; 56 vd_ffmpeg_ctx *ctx = sh->context;
57 switch(cmd){ 57 switch(cmd){
58 case VDCTRL_QUERY_FORMAT: 58 case VDCTRL_QUERY_FORMAT:
59 if( (*((int*)arg)) == IMGFMT_YV12 ) return CONTROL_TRUE; 59 if( (*((int*)arg)) == IMGFMT_YV12 ) return CONTROL_TRUE;
60 if( (*((int*)arg)) == IMGFMT_IYUV ) return CONTROL_TRUE;
61 if( (*((int*)arg)) == IMGFMT_I420 ) return CONTROL_TRUE;
60 if( (*((int*)arg)) == IMGFMT_YUY2 && ctx->yuy2_support ) return CONTROL_TRUE; 62 if( (*((int*)arg)) == IMGFMT_YUY2 && ctx->yuy2_support ) return CONTROL_TRUE;
61 return CONTROL_FALSE; 63 return CONTROL_FALSE;
62 } 64 }
63 return CONTROL_UNKNOWN; 65 return CONTROL_UNKNOWN;
64 } 66 }