27 #define KVAG_TAG MKTAG('K', 'V', 'A', 'G') 28 #define KVAG_HEADER_SIZE 14 29 #define KVAG_MAX_READ_SIZE 4096 38 #if CONFIG_KVAG_DEMUXER 119 .read_probe = kvag_probe,
120 .read_header = kvag_read_header,
121 .read_packet = kvag_read_packet
125 #if CONFIG_KVAG_MUXER 176 if (data_size < UINT32_MAX) {
182 "Filesize %"PRId64
" invalid for KVAG, output file will be broken\n",
195 .init = kvag_write_init,
196 .write_header = kvag_write_header,
198 .write_trailer = kvag_write_trailer
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_WARNING
Something somehow does not look correct.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
#define AV_CH_LAYOUT_STEREO
This struct describes the properties of an encoded stream.
#define KVAG_MAX_READ_SIZE
void avio_wl32(AVIOContext *s, unsigned int val)
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
AVStream ** streams
A list of all streams in the file.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
uint64_t channel_layout
Audio only.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
enum AVMediaType codec_type
General type of the encoded data.
int flags
A combination of AV_PKT_FLAG values.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
unsigned int nb_streams
Number of elements in AVFormatContext.streams.
int block_align
Audio only.
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
#define AVIO_SEEKABLE_NORMAL
Seeking works like for a local file.
AVIOContext * pb
I/O context.
This structure contains the data a format has to probe a file.
int bits_per_raw_sample
This is the number of valid bits in each output sample.
int64_t duration
Decoding: duration of the stream, in stream time base.
int sample_rate
Audio only.
int64_t start_time
Decoding: pts of the first frame of the stream in presentation order, in stream time base...
const char * avcodec_get_name(enum AVCodecID id)
Get the name of a codec.
#define AV_PKT_FLAG_CORRUPT
The packet content is corrupted.
int bits_per_coded_sample
The number of bits per sample in the codedwords.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
#define AV_CH_LAYOUT_MONO
This structure stores compressed data.