166 int rc, palette_type, pkt_size;
191 pkt->
data[0] = palette_type;
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
int index
stream index in AVFormatContext
static int cin_read_frame_header(CinDemuxContext *cin, AVIOContext *pb)
void av_shrink_packet(AVPacket *pkt, int size)
Reduce packet size, correctly zeroing padding.
static int read_header(FFV1Context *f)
void av_free_packet(AVPacket *pkt)
Free a packet.
static int cin_read_packet(AVFormatContext *s, AVPacket *pkt)
struct CinFileHeader CinFileHeader
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
int duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
struct CinFrameHeader CinFrameHeader
unsigned int avio_rl32(AVIOContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
CinFrameHeader frame_header
AVStream * avformat_new_stream(AVFormatContext *s, AVCodec *c)
Add a new stream to a media file.
CinFileHeader file_header
struct CinDemuxContext CinDemuxContext
int avio_r8(AVIOContext *s)
AVCodecContext * codec
codec context
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
int bit_rate
the average bitrate
int width
picture width / height.
static int read_probe(AVProbeData *p)
AVInputFormat ff_dsicin_demuxer
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').
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.
unsigned int avio_rl16(AVIOContext *s)
int eof_reached
true if eof reached
int channels
number of audio channels
void * priv_data
Format private data.
static int cin_probe(AVProbeData *p)
static int cin_read_header(AVFormatContext *s, AVFormatParameters *ap)
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...