29 #define DXA_EXTRA_SIZE 9 48 if (p->
buf[0] ==
'D' && p->
buf[1] ==
'E' &&
49 p->
buf[2] ==
'X' && p->
buf[3] ==
'A' &&
50 w && w <= 2048 && h && h <= 2048)
69 if (tag !=
MKTAG(
'D',
'E',
'X',
'A'))
118 if(tag ==
MKTAG(
'd',
'a',
't',
'a'))
break;
134 av_reduce(&den, &num, den, num, (1UL<<31)-1);
176 case MKTAG(
'N',
'U',
'L',
'L'):
180 if(pal_size) memcpy(pkt->
data, pal, pal_size);
181 memcpy(pkt->
data + pal_size, buf, 4);
186 case MKTAG(
'C',
'M',
'A',
'P'):
191 case MKTAG(
'F',
'R',
'A',
'M'):
207 if(pal_size) memcpy(pkt->
data, pal, pal_size);
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (%s)\, len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt), use_generic ? ac->func_descr_generic :ac->func_descr)
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
unsigned int avio_rb16(AVIOContext *s)
unsigned int avio_rb32(AVIOContext *s)
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
unsigned int avio_rl32(AVIOContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
enum AVMediaType codec_type
General type of the encoded data.
int avio_r8(AVIOContext *s)
int av_reduce(int *dst_num, int *dst_den, int64_t num, int64_t den, int64_t max)
Reduce a fraction.
int buf_size
Size of buf except extra allocated bytes.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
int block_align
Audio only.
#define AV_TIME_BASE
Internal time base represented as integer.
static av_always_inline int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
internal header for RIFF based (de)muxers do NOT include this in end user applications ...
static int read_header(FFV1Context *f)
AVIOContext * pb
I/O context.
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
This structure contains the data a format has to probe a file.
int64_t start_time
Position of the first frame of the component, in AV_TIME_BASE fractional seconds. ...
int sample_rate
Audio only.
int eof_reached
true if eof reached
int ff_get_wav_header(AVFormatContext *s, AVIOContext *pb, AVCodecParameters *par, int size)
void * priv_data
Format private data.
int64_t duration
Duration of the stream, in AV_TIME_BASE fractional seconds.
AVCodecParameters * codecpar
#define MKTAG(a, b, c, d)
This structure stores compressed data.