29 #define AES3_HEADER_LEN 4
52 frame_size = (h >> 16) & 0xffff;
53 channels = ((h >> 14) & 0x0003) * 2 + 2;
54 bits = ((h >> 4) & 0x0003) * 4 + 16;
71 32 * (48000 / (buf_size * 8 /
83 int buf_size = avpkt->
size;
104 uint32_t *o = (uint32_t *)frame->
data[0];
105 for (; buf_size > 6; buf_size -= 7) {
116 uint32_t *o = (uint32_t *)frame->
data[0];
117 for (; buf_size > 5; buf_size -= 6) {
127 uint16_t *o = (uint16_t *)frame->
data[0];
128 for (; buf_size > 4; buf_size -= 5) {
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
This structure describes decoded (raw) audio or video data.
static int s302m_parse_frame_header(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
enum AVSampleFormat sample_fmt
audio sample format
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
static const uint8_t frame_size[4]
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#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
if(ac->has_optimized_func)
Libavcodec external API header.
int sample_rate
samples per second
main external API structure.
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
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)
const uint8_t ff_reverse[256]
This structure stores compressed data.
int nb_samples
number of audio samples (per channel) described by this frame