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);
179 case MKTAG(
'N',
'U',
'L',
'L'):
183 if(pal_size) memcpy(pkt->
data, pal, pal_size);
184 memcpy(pkt->
data + pal_size, buf, 4);
189 case MKTAG(
'C',
'M',
'A',
'P'):
194 case MKTAG(
'F',
'R',
'A',
'M'):
213 if(pal_size) memcpy(pkt->
data, pal, pal_size);
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
unsigned int avio_rb16(AVIOContext *s)
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...
unsigned int avio_rb32(AVIOContext *s)
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
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_RB32
#define AVERROR_EOF
End of 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.
int avio_r8(AVIOContext *s)
AVCodecContext * codec
Codec context associated with this stream.
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.
internal header for RIFF based (de)muxers do NOT include this in end user applications ...
static int read_header(FFV1Context *f)
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
enum AVMediaType codec_type
int sample_rate
samples per second
AVIOContext * pb
I/O context.
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
int ff_get_wav_header(AVFormatContext *s, AVIOContext *pb, AVCodecContext *codec, int size, int big_endian)
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. ...
void * priv_data
Format private data.
int64_t duration
Duration of the stream, in AV_TIME_BASE fractional seconds.
int avio_feof(AVIOContext *s)
feof() equivalent for AVIOContext.
#define MKTAG(a, b, c, d)
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_RL32
This structure stores compressed data.