annotate libmpcodecs/vd_null.c @ 5640:a0cee3bb7f78

osd: calculating bbox
author arpi
date Mon, 15 Apr 2002 20:51:34 +0000
parents ec2923dc5c24
children 1eadce15446c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4879
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
1 #include <stdio.h>
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
2 #include <stdlib.h>
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
3
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
4 #include "config.h"
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
5 #include "mp_msg.h"
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
6
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
7 #include "vd_internal.h"
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
8
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
9 static vd_info_t info =
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
10 {
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
11 "Null video decoder",
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
12 "null",
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
13 0,
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
14 "A'rpi",
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
15 "A'rpi",
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
16 ""
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
17 };
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
18
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
19 LIBVD_EXTERN(null)
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
20
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
21 // to set/get/query special features/parameters
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
22 static int control(sh_video_t *sh,int cmd,void* arg,...){
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
23 return CONTROL_UNKNOWN;
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
24 }
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
25
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
26 // init driver
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
27 static int init(sh_video_t *sh){
5169
ec2923dc5c24 added vo_config
arpi
parents: 4986
diff changeset
28 mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_BGR24);
4879
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
29 return 1;
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
30 }
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
31
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
32 // uninit driver
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
33 static void uninit(sh_video_t *sh){
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
34 }
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
35
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
36 // decode a frame
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
37 static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
38 return NULL;
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
39 }
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
40