annotate libmpcodecs/vd.h @ 6400:8d332415d037

translated by Volodymyr M. Lisivka <lvm@mystery.lviv.net>
author jaf
date Wed, 12 Jun 2002 20:18:12 +0000
parents d2fbd113008e
children 8058078f1248
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5323
a2bd4e930d59 common stuff moved to mpc_info.h
arpi
parents: 5003
diff changeset
1
a2bd4e930d59 common stuff moved to mpc_info.h
arpi
parents: 5003
diff changeset
2 #include "mpc_info.h"
a2bd4e930d59 common stuff moved to mpc_info.h
arpi
parents: 5003
diff changeset
3 typedef mp_codec_info_t vd_info_t;
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
4
4988
db591864d642 comments fixed
arpi
parents: 4957
diff changeset
5 /* interface of video decoder drivers */
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
6 typedef struct vd_functions_s
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
7 {
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
8 vd_info_t *info;
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
9 int (*init)(sh_video_t *sh);
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
10 void (*uninit)(sh_video_t *sh);
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
11 int (*control)(sh_video_t *sh,int cmd,void* arg, ...);
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
12 mp_image_t* (*decode)(sh_video_t *sh,void* data,int len,int flags);
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
13 } vd_functions_t;
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
14
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
15 // NULL terminated array of all drivers
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
16 extern vd_functions_t* mpcodecs_vd_drivers[];
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
17
5483
d2fbd113008e global var for option -slices
arpi
parents: 5323
diff changeset
18 extern int vd_use_slices;
d2fbd113008e global var for option -slices
arpi
parents: 5323
diff changeset
19
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
20 #define VDCTRL_QUERY_FORMAT 3 /* test for availabilty of a format */
4957
2826b2e5cbd3 new controls added for query/set pp level
arpi
parents: 4883
diff changeset
21 #define VDCTRL_QUERY_MAX_PP_LEVEL 4 /* test for postprocessing support (max level) */
4988
db591864d642 comments fixed
arpi
parents: 4957
diff changeset
22 #define VDCTRL_SET_PP_LEVEL 5 /* set postprocessing level */
5003
88481d4b9e0e divx_quality and equalizer support done
arpi
parents: 4988
diff changeset
23 #define VDCTRL_SET_EQUALIZER 6 /* set color options (brightness,contrast etc) */
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
24
4883
1602b4fed5a1 callbacks added
arpi
parents: 4878
diff changeset
25 // callbacks:
1602b4fed5a1 callbacks added
arpi
parents: 4878
diff changeset
26 int mpcodecs_config_vo(sh_video_t *sh, int w, int h, unsigned int preferred_outfmt);
1602b4fed5a1 callbacks added
arpi
parents: 4878
diff changeset
27 mp_image_t* mpcodecs_get_image(sh_video_t *sh, int mp_imgtype, int mp_imgflag, int w, int h);
1602b4fed5a1 callbacks added
arpi
parents: 4878
diff changeset
28