vd_null.c
来自「君正早期ucos系统(只有早期的才不没有打包成库),MPLAYER,文件系统,图」· C语言 代码 · 共 40 行
C
40 行
#include <uclib.h>#include <uclib.h>#include "config.h"#include "mp_msg.h"#include "vd_internal.h"static vd_info_t info = { "Null video decoder", "null", "A'rpi", "A'rpi", "no decoding"};LIBVD_EXTERN(null)// to set/get/query special features/parametersstatic int control(sh_video_t *sh,int cmd,void* arg,...){ return CONTROL_UNKNOWN;}// init driverstatic int init(sh_video_t *sh){ if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_BGR24)) return 0; return 1;}// uninit driverstatic void uninit(sh_video_t *sh){}// decode a framestatic mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ return NULL;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?