Mercurial > mplayer.hg
annotate libmpcodecs/ae.h @ 28506:fe72d4f7ac25
Only set VO_EVENT_RESIZE if size actually changed, not if e.g. the window was
only moved to the foreground.
author | reimar |
---|---|
date | Thu, 12 Feb 2009 12:43:14 +0000 |
parents | 41652035483c |
children | bbb6ebec87a0 |
rev | line source |
---|---|
26029 | 1 #ifndef MPLAYER_AE_H |
2 #define MPLAYER_AE_H | |
15234 | 3 |
26147
41652035483c
Add necessary header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
4 #include "libmpdemux/muxer.h" |
41652035483c
Add necessary header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
5 |
15234 | 6 #define ACODEC_COPY 0 |
7 #define ACODEC_PCM 1 | |
8 #define ACODEC_VBRMP3 2 | |
9 #define ACODEC_NULL 3 | |
10 #define ACODEC_LAVC 4 | |
11 #define ACODEC_TOOLAME 5 | |
15258 | 12 #define ACODEC_FAAC 6 |
15359 | 13 #define ACODEC_TWOLAME 7 |
15234 | 14 |
15 #define AE_NEEDS_COMPRESSED_INPUT 1 | |
16 | |
17 typedef struct { | |
18 int channels; | |
19 int sample_rate; | |
20 int bitrate; | |
21 int samples_per_frame; | |
22 int audio_preload; | |
23 } audio_encoding_params_t; | |
24 | |
15258 | 25 typedef struct audio_encoder_s { |
15234 | 26 int codec; |
27 int flags; | |
28 muxer_stream_t *stream; | |
29 audio_encoding_params_t params; | |
30 int audio_preload; //in ms | |
31 int input_format; | |
32 int min_buffer_size, max_buffer_size; //for init_audio_filters | |
17122 | 33 unsigned char *decode_buffer; |
15234 | 34 int decode_buffer_size; |
35 int decode_buffer_len; | |
36 void *priv; | |
15258 | 37 int (*bind)(struct audio_encoder_s*, muxer_stream_t*); |
38 int (*get_frame_size)(struct audio_encoder_s*); | |
39 int (*set_decoded_len)(struct audio_encoder_s *encoder, int len); | |
40 int (*encode)(struct audio_encoder_s *encoder, uint8_t *dest, void *src, int nsamples, int max_size); | |
41 void (*fixup)(struct audio_encoder_s *encoder); | |
42 int (*close)(struct audio_encoder_s *encoder); | |
15234 | 43 } audio_encoder_t; |
44 | |
45 audio_encoder_t *new_audio_encoder(muxer_stream_t *stream, audio_encoding_params_t *params); | |
46 | |
26029 | 47 #endif /* MPLAYER_AE_H */ |