Mercurial > mplayer.hg
annotate libmpcodecs/ad.h @ 25944:8a1c062707ff
Do not uselessly erase background, OpenGL will take care of drawing everything.
author | reimar |
---|---|
date | Sun, 10 Feb 2008 19:47:54 +0000 |
parents | 6ac1ece1f9fe |
children | 4129c8cfa742 |
rev | line source |
---|---|
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
5339
diff
changeset
|
1 #ifndef AD_H |
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
5339
diff
changeset
|
2 #define AD_H |
5324 | 3 |
4 #include "mpc_info.h" | |
5 typedef mp_codec_info_t ad_info_t; | |
6 | |
7 /* interface of video decoder drivers */ | |
8 typedef struct ad_functions_s | |
9 { | |
10 ad_info_t *info; | |
5339
e72d8e3955ea
changed to be more-or-less compatible with Nick's stuff
arpi
parents:
5324
diff
changeset
|
11 int (*preinit)(sh_audio_t *sh); |
5324 | 12 int (*init)(sh_audio_t *sh); |
13 void (*uninit)(sh_audio_t *sh); | |
14 int (*control)(sh_audio_t *sh,int cmd,void* arg, ...); | |
5339
e72d8e3955ea
changed to be more-or-less compatible with Nick's stuff
arpi
parents:
5324
diff
changeset
|
15 int (*decode_audio)(sh_audio_t *sh,unsigned char* buffer,int minlen,int maxlen); |
5324 | 16 } ad_functions_t; |
17 | |
18 // NULL terminated array of all drivers | |
19 extern ad_functions_t* mpcodecs_ad_drivers[]; | |
20 | |
21 // fallback if ADCTRL_RESYNC not implemented: sh_audio->a_in_buffer_len=0; | |
5339
e72d8e3955ea
changed to be more-or-less compatible with Nick's stuff
arpi
parents:
5324
diff
changeset
|
22 #define ADCTRL_RESYNC_STREAM 1 /* resync, called after seeking! */ |
5324 | 23 |
24 // fallback if ADCTRL_SKIP not implemented: ds_fill_buffer(sh_audio->ds); | |
5339
e72d8e3955ea
changed to be more-or-less compatible with Nick's stuff
arpi
parents:
5324
diff
changeset
|
25 #define ADCTRL_SKIP_FRAME 2 /* skip block/frame, called while seeking! */ |
5324 | 26 |
27 // fallback if ADCTRL_QUERY_FORMAT not implemented: sh_audio->sample_format | |
28 #define ADCTRL_QUERY_FORMAT 3 /* test for availabilty of a format */ | |
29 | |
30 // fallback: use hw mixer in libao | |
31 #define ADCTRL_SET_VOLUME 4 /* set volume (used for mp3lib and liba52) */ | |
32 | |
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
5339
diff
changeset
|
33 #endif /* AD_H */ |