#include "avcodec.h"#include "libac3/ac3.h"

Go to the source code of this file.
Data Structures | |
| struct | AC3DecodeState |
Defines | |
| #define | HEADER_SIZE 7 |
Functions | |
| static int | ac3_decode_init (AVCodecContext *avctx) |
| static int | blah (int32_t i) |
| static void | float_to_int (float *_f, int16_t *s16, int nchannels) |
| static int | ac3_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) |
| static int | ac3_decode_end (AVCodecContext *s) |
Variables | |
| stream_samples_t | samples |
| AVCodec | ac3_decoder |
Definition in file ac3dec.c.
| static int ac3_decode_end | ( | AVCodecContext * | s | ) | [static] |
| static int ac3_decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
Definition at line 81 of file ac3dec.c.
References AVCodecContext::bit_rate, bit_rate, AVCodecContext::channels, AC3DecodeState::channels, AC3DecodeState::flags, float_to_int(), fprintf, AC3DecodeState::frame_size, HEADER_SIZE, AC3DecodeState::inbuf, AC3DecodeState::inbuf_ptr, level, memcpy, AVCodecContext::priv_data, s, AVCodecContext::sample_rate, samples, and AC3DecodeState::state.

| static int ac3_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 41 of file ac3dec.c.
References AC3DecodeState::frame_size, AC3DecodeState::inbuf, AC3DecodeState::inbuf_ptr, AVCodecContext::priv_data, and s.
| static void float_to_int | ( | float * | _f, | |
| int16_t * | s16, | |||
| int | nchannels | |||
| ) | [inline, static] |
Initial value:
{
"ac3",
CODEC_TYPE_AUDIO,
CODEC_ID_AC3,
sizeof(AC3DecodeState),
ac3_decode_init,
NULL,
ac3_decode_end,
ac3_decode_frame,
}
1.5.5