27 #define AES3_HEADER_LEN 4
37 int frame_size, channels,
bits;
54 frame_size = (h >> 16) & 0xffff;
55 channels = ((h >> 14) & 0x0003) * 2 + 2;
56 bits = ((h >> 4) & 0x0003) * 4 + 16;
73 32 * (48000 / (buf_size * 8 /
84 const uint8_t *buf = avpkt->
data;
85 int buf_size = avpkt->
size;
106 uint32_t *o = (uint32_t *)s->
frame.
data[0];
107 for (; buf_size > 6; buf_size -= 7) {
118 uint32_t *o = (uint32_t *)s->
frame.
data[0];
119 for (; buf_size > 5; buf_size -= 6) {
129 uint16_t *o = (uint16_t *)s->
frame.
data[0];
130 for (; buf_size > 4; buf_size -= 5) {
const uint8_t av_reverse[256]
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
AV_WL32 AV_WL24 AV_WL16 AV_RB32
AVFrame * coded_frame
the picture in the bitstream
static int s302m_parse_frame_header(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
struct S302MDecodeContext S302MDecodeContext
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
enum AVSampleFormat sample_fmt
audio sample format
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
static int init(AVCodecParserContext *s)
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void av_log(void *avcl, int level, const char *fmt,...)
const char * name
Name of the codec implementation.
int bit_rate
the average bitrate
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame)
int sample_rate
samples per second
main external API structure.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
static int s302m_decode_init(AVCodecContext *avctx)
common internal api header.
int channels
number of audio channels
static int s302m_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
void avcodec_get_frame_defaults(AVFrame *pic)
Set the fields of the given AVFrame to default values.
int nb_samples
number of audio samples (per channel) described by this frame