4879
|
1 #include <stdio.h>
|
|
2 #include <stdlib.h>
|
|
3
|
|
4 #include "config.h"
|
|
5 #include "mp_msg.h"
|
|
6
|
|
7 #include "vd_internal.h"
|
|
8
|
|
9 static vd_info_t info =
|
|
10 {
|
|
11 "Null video decoder",
|
|
12 "null",
|
|
13 0,
|
|
14 "A'rpi",
|
|
15 "A'rpi",
|
|
16 ""
|
|
17 };
|
|
18
|
|
19 LIBVD_EXTERN(null)
|
|
20
|
|
21 // to set/get/query special features/parameters
|
|
22 static int control(sh_video_t *sh,int cmd,void* arg,...){
|
|
23 return CONTROL_UNKNOWN;
|
|
24 }
|
|
25
|
|
26 // init driver
|
|
27 static int init(sh_video_t *sh){
|
5169
|
28 mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_BGR24);
|
4879
|
29 return 1;
|
|
30 }
|
|
31
|
|
32 // uninit driver
|
|
33 static void uninit(sh_video_t *sh){
|
|
34 }
|
|
35
|
|
36 // decode a frame
|
|
37 static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
|
|
38 return NULL;
|
|
39 }
|
|
40
|