1
mirror of https://github.com/mpv-player/mpv synced 2024-11-03 03:19:24 +01:00
mpv/stheader.h
arpi_esp 415c45924b sh_audio->wf and sh_video->bih changed to dynamic (thanx to Jens Hoffmann)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@433 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-04-15 14:33:49 +00:00

61 lines
1.3 KiB
C

// Stream headers:
/*
typedef struct {
int driver;
// codec descriptor from codec.conf
} codecinfo_t;
*/
typedef struct {
demux_stream_t *ds;
unsigned int format;
codecs_t *codec;
// output format:
int samplerate;
int samplesize;
int channels;
int o_bps; // == samplerate*samplesize*channels
// in buffers:
char* a_in_buffer;
int a_in_buffer_len;
int a_in_buffer_size;
// out buffers:
char* a_buffer;
int a_buffer_len;
int a_buffer_size;
// win32 codec stuff:
AVIStreamHeader audio;
WAVEFORMATEX *wf;
// char wf_ext[64]; // in format
WAVEFORMATEX o_wf; // out format
HACMSTREAM srcstream; // handle
int audio_in_minsize;
int audio_out_minsize;
// other codecs:
ac3_frame_t *ac3_frame;
int pcm_bswap;
} sh_audio_t;
typedef struct {
demux_stream_t *ds;
unsigned int format;
codecs_t *codec;
// output format:
float fps;
float frametime; // 1/fps
int disp_w,disp_h; // display size (filled by fileformat parser)
// int coded_w,coded_h; // coded size (filled by video codec)
unsigned int outfmtidx;
// unsigned int bitrate;
// buffers:
char *our_out_buffer;
// win32 codec stuff:
AVIStreamHeader video;
BITMAPINFOHEADER *bih; // in format
BITMAPINFOHEADER o_bih; // out format
HIC hic; // handle
} sh_video_t;