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'))
82 }
else if (fps < 0 && fps > INT_MIN){
118 if(
tag ==
MKTAG(
'd',
'a',
't',
'a'))
break;
121 c->bpc = (
fsize + (int64_t)
c->frames - 1) /
c->frames;
137 av_reduce(&den, &num, den, num, (1UL<<31)-1);
146 c->readvid = !
c->has_sound;
163 if(!
c->readvid &&
c->has_sound &&
c->bytes_left){
171 c->bytes_left -=
size;
184 case MKTAG(
'N',
'U',
'L',
'L'):
188 if(pal_size) memcpy(
pkt->
data, pal, pal_size);
189 memcpy(
pkt->
data + pal_size, buf, 4);
194 case MKTAG(
'C',
'M',
'A',
'P'):
199 case MKTAG(
'F',
'R',
'A',
'M'):
218 if(pal_size) memcpy(
pkt->
data, pal, pal_size);
static int64_t fsize(FILE *f)
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
unsigned int avio_rb16(AVIOContext *s)
int avio_feof(AVIOContext *s)
Similar to feof() but also returns nonzero on read errors.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
unsigned int avio_rl32(AVIOContext *s)
unsigned int avio_rb32(AVIOContext *s)
int avio_r8(AVIOContext *s)
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
#define flags(name, subs,...)
#define MKTAG(a, b, c, d)
static int read_header(FFV1Context *f)
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AVERROR_EOF
End of file.
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int av_reduce(int *dst_num, int *dst_den, int64_t num, int64_t den, int64_t max)
Reduce a fraction.
int64_t av_rescale(int64_t a, int64_t b, int64_t c)
Rescale a 64-bit integer with rounding to nearest.
#define av_fourcc2str(fourcc)
#define AV_TIME_BASE
Internal time base represented as integer.
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
internal header for RIFF based (de)muxers do NOT include this in end user applications
int ff_get_wav_header(AVFormatContext *s, AVIOContext *pb, AVCodecParameters *par, int size, int big_endian)
enum AVMediaType codec_type
General type of the encoded data.
int block_align
Audio only.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int sample_rate
Audio only.
This structure stores compressed data.
This structure contains the data a format has to probe a file.
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.
AVCodecParameters * codecpar
Codec parameters associated with this stream.