#include "avcodec.h"#include "liba52/a52.h"

Go to the source code of this file.
Data Structures | |
| struct | AC3DecodeState |
Defines | |
| #define | HEADER_SIZE 7 |
Functions | |
| static int | a52_decode_init (AVCodecContext *avctx) |
| static int | blah (int32_t i) |
| static void | float_to_int (float *_f, int16_t *s16, int nchannels) |
| static int | a52_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) |
| static int | a52_decode_end (AVCodecContext *avctx) |
Variables | |
| AVCodec | ac3_decoder |
Definition in file a52dec.c.
| #define HEADER_SIZE 7 |
Definition at line 147 of file a52dec.c.
Referenced by a52_decode_frame(), ac3_decode_frame(), decode_frame(), decode_frame_adu(), decode_frame_mp3on4(), dts_decode_frame(), mp_decode_frame(), and wmx2_samples_to_bytes().
| static int a52_decode_end | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 236 of file a52dec.c.
References AC3DecodeState::a52_free, dlclose, AC3DecodeState::handle, AVCodecContext::priv_data, s, and AC3DecodeState::state.
| static int a52_decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
Definition at line 149 of file a52dec.c.
References A52_ADJUST_LEVEL, AC3DecodeState::a52_block, AC3DecodeState::a52_frame, A52_LFE, A52_MONO, A52_STEREO, AC3DecodeState::a52_syncinfo, av_log(), AV_LOG_ERROR, AVCodecContext::bit_rate, bit_rate, AVCodecContext::channels, AC3DecodeState::channels, AC3DecodeState::flags, float_to_int(), AC3DecodeState::frame_size, HEADER_SIZE, AC3DecodeState::inbuf, AC3DecodeState::inbuf_ptr, level, memcpy, AVCodecContext::priv_data, s, AVCodecContext::sample_rate, AC3DecodeState::samples, and AC3DecodeState::state.

| static int a52_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 81 of file a52dec.c.
References a52_block(), AC3DecodeState::a52_block, a52_frame(), AC3DecodeState::a52_frame, a52_free(), AC3DecodeState::a52_free, a52_init(), AC3DecodeState::a52_init, a52_samples(), AC3DecodeState::a52_samples, a52_syncinfo(), AC3DecodeState::a52_syncinfo, dlclose, dlopen, fprintf, AC3DecodeState::frame_size, AC3DecodeState::handle, AC3DecodeState::inbuf, AC3DecodeState::inbuf_ptr, AVCodecContext::priv_data, s, AC3DecodeState::samples, and AC3DecodeState::state.

| static int blah | ( | int32_t | i | ) | [inline, static] |
| static void float_to_int | ( | float * | _f, | |
| int16_t * | s16, | |||
| int | nchannels | |||
| ) | [inline, static] |
Definition at line 132 of file a52dec.c.
Referenced by a52_decode_frame(), and ac3_decode_frame().

Initial value:
{
"ac3",
CODEC_TYPE_AUDIO,
CODEC_ID_AC3,
sizeof(AC3DecodeState),
a52_decode_init,
NULL,
a52_decode_end,
a52_decode_frame,
}
Definition at line 246 of file a52dec.c.
Referenced by avcodec_register_all().
1.5.5