27 #include "libavutil/channel_layout.h"
28 #include "libavutil/intreadwrite.h"
169 int rc, palette_type, pkt_size;
196 pkt->
data[0] = palette_type;
void av_free_packet(AVPacket *pkt)
Free a packet.
void av_shrink_packet(AVPacket *pkt, int size)
Reduce packet size, correctly zeroing padding.
AVCodecContext * codec
Codec context associated with this stream.
int index
stream index in AVFormatContext
static int cin_read_frame_header(CinDemuxContext *cin, AVIOContext *pb)
int ffio_limit(AVIOContext *s, int size)
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
static int cin_read_packet(AVFormatContext *s, AVPacket *pkt)
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
int duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
void * priv_data
Format private data.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
CinFrameHeader frame_header
CinFileHeader file_header
uint64_t channel_layout
Audio channel layout.
int bit_rate
the average bitrate
int width
picture width / height.
AVInputFormat ff_dsicin_demuxer
static int read_header(FFV1Context *f)
enum AVMediaType codec_type
static int cin_read_file_header(CinDemuxContext *cin, AVIOContext *pb)
int sample_rate
samples per second
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
AVIOContext * pb
I/O context.
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
int error
contains the error code or 0 if no error happened
This structure contains the data a format has to probe a file.
static int cin_read_header(AVFormatContext *s)
#define AVERROR_INVALIDDATA
int channels
number of audio channels
static int cin_probe(AVProbeData *p)
#define AV_CH_LAYOUT_MONO
This structure stores compressed data.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...