27 #define DXA_EXTRA_SIZE 9
46 if (p->
buf[0] ==
'D' && p->
buf[1] ==
'E' &&
47 p->
buf[2] ==
'X' && p->
buf[3] ==
'A' &&
48 w && w <= 2048 && h && h <= 2048)
67 if (tag !=
MKTAG(
'D',
'E',
'X',
'A'))
114 if(tag ==
MKTAG(
'd',
'a',
't',
'a'))
break;
130 av_reduce(&den, &num, den, num, (1UL<<31)-1);
172 case MKTAG(
'N',
'U',
'L',
'L'):
176 if(pal_size) memcpy(pkt->
data, pal, pal_size);
177 memcpy(pkt->
data + pal_size, buf, 4);
182 case MKTAG(
'C',
'M',
'A',
'P'):
187 case MKTAG(
'F',
'R',
'A',
'M'):
202 if(pal_size) memcpy(pkt->
data, pal, pal_size);
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 AV_RB16
AV_WL32 AV_WL24 AV_WL16 AV_RB32
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
unsigned int avio_rb16(AVIOContext *s)
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
unsigned int avio_rb32(AVIOContext *s)
static int read_header(FFV1Context *f)
void av_free_packet(AVPacket *pkt)
Free a packet.
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.
unsigned int avio_rl32(AVIOContext *s)
int ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size)
#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,...)
AVStream * avformat_new_stream(AVFormatContext *s, AVCodec *c)
Add a new stream to a media file.
int avio_r8(AVIOContext *s)
AVCodecContext * codec
codec context
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.
#define AV_TIME_BASE
Internal time base represented as integer.
int width
picture width / height.
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_probe(AVProbeData *p)
enum AVMediaType codec_type
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
This structure contains the data a format has to probe a file.
int64_t start_time
Decoding: position of the first frame of the component, in AV_TIME_BASE fractional seconds...
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
int eof_reached
true if eof reached
void * priv_data
Format private data.
int64_t duration
Decoding: duration of the stream, in AV_TIME_BASE fractional seconds.
#define MKTAG(a, b, c, d)