32#define BRP_TAG MKTAG('B', 'R', 'P', 'P')
33#define BRP_FILE_HEADER_SIZE 12
34#define BRP_BLOCK_HEADER_SIZE 12
35#define BRP_STREAM_HEADER_SIZE 20
36#define BRP_MAX_STREAMS 32
37#define BRP_BASF_LOOKAHEAD 10
38#define BVID_HEADER_SIZE 16
39#define MASK_HEADER_SIZE 12
40#define BRP_MIN_BUFFER_SIZE FFMAX3(FFMAX3(BRP_FILE_HEADER_SIZE, \
41 BRP_BLOCK_HEADER_SIZE, \
42 BRP_STREAM_HEADER_SIZE), \
46#define BRP_CODEC_ID_BVID MKTAG('B', 'V', 'I', 'D')
47#define BRP_CODEC_ID_BASF MKTAG('B', 'A', 'S', 'F')
48#define BRP_CODEC_ID_MASK MKTAG('M', 'A', 'S', 'K')
111 void *buf,
size_t bufsz)
203 }
else if (ret > 0) {
223 if (bvid->
width >= 65536 || bvid->
height >= 65536 ||
364 if (
blk.stream_id == -1)
367 if (
blk.stream_id < -1 ||
blk.stream_id >=
s->nb_streams)
370 st =
s->streams[
blk.stream_id];
395 else if (ret !=
blk.size)
408 pkt->stream_index =
blk.stream_id;
413 .p.name =
"argo_brp",
int ff_argo_asf_validate_file_header(AVFormatContext *s, const ArgoASFFileHeader *hdr)
void ff_argo_asf_parse_file_header(ArgoASFFileHeader *hdr, const uint8_t *buf)
int ff_argo_asf_fill_stream(AVFormatContext *s, AVStream *st, const ArgoASFFileHeader *fhdr, const ArgoASFChunkHeader *ckhdr)
void ff_argo_asf_parse_chunk_header(ArgoASFChunkHeader *hdr, const uint8_t *buf)
#define ASF_CHUNK_HEADER_SIZE
#define ASF_FILE_HEADER_SIZE
#define ASF_MIN_BUFFER_SIZE
#define BRP_CODEC_ID_MASK
#define BRP_STREAM_HEADER_SIZE
#define BRP_CODEC_ID_BASF
#define BRP_CODEC_ID_BVID
static int read_extradata(AVFormatContext *s, const ArgoBRPStreamHeader *hdr, void *buf, size_t bufsz)
#define BRP_FILE_HEADER_SIZE
static int argo_brp_read_header(AVFormatContext *s)
#define BRP_BLOCK_HEADER_SIZE
static int argo_brp_read_packet(AVFormatContext *s, AVPacket *pkt)
static int argo_brp_probe(const AVProbeData *p)
#define BRP_BASF_LOOKAHEAD
#define BRP_MIN_BUFFER_SIZE
simple assert() macros that are a bit more flexible than ISO C assert().
#define av_assert0(cond)
assert() equivalent, that is always enabled.
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
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 ffio_read_size(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
#define i(width, name, range_min, range_max)
static int read_probe(const AVProbeData *p)
static int read_header(FFV1Context *f, RangeCoder *c)
AVStream * avformat_new_stream(AVFormatContext *s, const struct AVCodec *c)
Add a new stream to a media file.
#define AVERROR_PATCHWELCOME
Not yet implemented in FFmpeg, patches welcome.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AVERROR_EOF
End of file.
#define AV_LOG_TRACE
Extremely verbose debugging, useful for libav* development.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd)
Rescale a 64-bit integer with specified rounding.
@ AV_ROUND_UP
Round toward +infinity.
@ AVMEDIA_TYPE_DATA
Opaque data information usually continuous.
@ AVMEDIA_TYPE_UNKNOWN
Usually treated as AVMEDIA_TYPE_DATA.
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static const uint16_t mask[17]
int height
The height of the video frame in pixels.
int bits_per_coded_sample
The number of bits per sample in the codedwords.
int width
The width of the video frame in pixels.
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
enum AVMediaType codec_type
General type of the encoded data.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int sample_rate
The number of audio samples per second.
This structure stores compressed data.
This structure contains the data a format has to probe a file.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
int64_t nb_frames
number of frames in this stream if known or 0
int64_t duration
Decoding: duration of the stream, in stream time base.
int64_t start_time
Decoding: pts of the first frame of the stream in presentation order, in stream time base.
ArgoBRPStreamHeader streams[BRP_MAX_STREAMS]
struct ArgoBRPDemuxContext::@346012062342021133222157011302015224044156247160 basf
#define avpriv_request_sample(...)