1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 00:02:13 +00:00

declarations moved to *.c files

reason: single .h contained both audio and video decl, they depend on
things like mp_image, which shouldn't be included in audio decoders...


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7471 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-09-22 00:39:13 +00:00
parent aef01c5a50
commit 2059c26359
3 changed files with 9 additions and 14 deletions

View File

@ -4,7 +4,6 @@
#include "config.h" #include "config.h"
#include "ad_internal.h" #include "ad_internal.h"
#include "roqav.h"
static ad_info_t info = static ad_info_t info =
{ {
@ -17,6 +16,11 @@ static ad_info_t info =
LIBAD_EXTERN(roqaudio) LIBAD_EXTERN(roqaudio)
// in native/roqav.c:
void *roq_decode_audio_init(void);
int roq_decode_audio(unsigned short *output, unsigned char *input,
int encoded_size, int channels, void *context);
static int preinit(sh_audio_t *sh_audio) static int preinit(sh_audio_t *sh_audio)
{ {
// minsize was stored in wf->nBlockAlign by the RoQ demuxer // minsize was stored in wf->nBlockAlign by the RoQ demuxer

View File

@ -1,12 +0,0 @@
#ifndef ROQAV_H
#define ROQAV_H
void *roq_decode_video_init(void);
void roq_decode_video(void *context, unsigned char *encoded,
int encoded_size, mp_image_t *mpi);
void *roq_decode_audio_init(void);
int roq_decode_audio(unsigned short *output, unsigned char *input,
int encoded_size, int channels, void *context);
#endif // ROQAV_H

View File

@ -16,7 +16,10 @@ static vd_info_t info = {
LIBVD_EXTERN(roqvideo) LIBVD_EXTERN(roqvideo)
#include "roqav.h" // in native/roqav.c:
void *roq_decode_video_init(void);
void roq_decode_video(void *context, unsigned char *encoded,
int encoded_size, mp_image_t *mpi);
// to set/get/query special features/parameters // to set/get/query special features/parameters
static int control(sh_video_t *sh,int cmd,void* arg,...){ static int control(sh_video_t *sh,int cmd,void* arg,...){