60         const unsigned a = s->
is_pal ? 18 : 15;
 
   61         const unsigned b = 3 * 
a;
 
   63         s->
shuffle[i] = 80 * ((21 * (i % 3) + 9 * (i / 3) + ((i / 
a) % 3)) % b) +
 
   72     uint16_t 
shift, result;
 
   74     sample = (sample < 0x800) ? sample : sample | 0xf000;
 
   75     shift  = (sample & 0xf00) >> 8;
 
   77     if (shift < 0x2 || shift > 0xd) {
 
   79     } 
else if (shift < 0x8) {
 
   84         result = ((sample + ((256 * 
shift) + 1)) << shift) - 1;
 
  105     dst = (int16_t *)frame->
data[0];
 
#define AVERROR_INVALIDDATA
Invalid data found when processing input. 
 
static int shift(int a, int b)
 
This structure describes decoded (raw) audio or video data. 
 
ptrdiff_t const GLvoid * data
 
#define AV_CH_LAYOUT_STEREO
 
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_WB24 unsigned int_TMPL AV_RB16
 
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
 
enum AVSampleFormat sample_fmt
audio sample format 
 
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv). 
 
#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. ...
 
const char * name
Name of the codec implementation. 
 
uint64_t channel_layout
Audio channel layout. 
 
static av_cold int decode_init(AVCodecContext *avctx)
 
static uint16_t dv_audio_12to16(uint16_t sample)
 
#define FF_ARRAY_ELEMS(a)
 
Libavcodec external API header. 
 
main external API structure. 
 
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame. 
 
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A'). 
 
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *pkt)
 
static int dv_get_audio_sample_count(const uint8_t *buffer, int dsf)
 
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes. 
 
common internal api header. 
 
int channels
number of audio channels 
 
AVCodec ff_dvaudio_decoder
 
This structure stores compressed data. 
 
int nb_samples
number of audio samples (per channel) described by this frame 
 
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.