29 #define AES3_HEADER_LEN 4
56 frame_size = (h >> 16) & 0xffff;
57 channels = ((h >> 14) & 0x0003) * 2 + 2;
58 bits = ((h >> 4) & 0x0003) * 4 + 16;
75 32 * (48000 / (buf_size * 8 /
87 int buf_size = avpkt->
size;
108 uint32_t *o = (uint32_t *)s->
frame.
data[0];
109 for (; buf_size > 6; buf_size -= 7) {
120 uint32_t *o = (uint32_t *)s->
frame.
data[0];
121 for (; buf_size > 5; buf_size -= 6) {
131 uint16_t *o = (uint16_t *)s->
frame.
data[0];
132 for (; buf_size > 4; buf_size -= 5) {
This structure describes decoded (raw) audio or video data.
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)
static const uint8_t frame_size[4]
#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)
Get a buffer for a frame.
int sample_rate
samples per second
main external API structure.
void avcodec_get_frame_defaults(AVFrame *frame)
Set the fields of the given AVFrame to default values.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
static int s302m_decode_init(AVCodecContext *avctx)
common internal api header.
#define AVERROR_INVALIDDATA
int channels
number of audio channels
static int s302m_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
const uint8_t ff_reverse[256]
This structure stores compressed data.
int nb_samples
number of audio samples (per channel) described by this frame
if(!(ptr_align%ac->ptr_align)&&samples_align >=aligned_len)