35 if (~version + 0x1234 != check)
50 if (header_size != 4) {
71 int size, tmp_codec=-1;
111 sample_rate = 256000000 / (channels * (65536 - sample_rate));
138 if (tmp_codec >= 0) {
142 else if (dec->
codec_id != tmp_codec)
int64_t avio_size(AVIOContext *s)
Get the filesize.
static int voc_read_packet(AVFormatContext *s, AVPacket *pkt)
struct voc_dec_context VocDecContext
AVInputFormat ff_voc_demuxer
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
int av_get_bits_per_sample(enum AVCodecID codec_id)
Return codec bits per sample.
unsigned int avio_rl32(AVIOContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void av_log(void *avcl, int level, const char *fmt,...)
AVStream * avformat_new_stream(AVFormatContext *s, AVCodec *c)
Add a new stream to a media file.
int avio_r8(AVIOContext *s)
AVCodecContext * codec
Codec context associated with this stream.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
int bit_rate
the average bitrate
enum AVCodecID audio_codec_id
Forced audio codec_id.
static av_always_inline int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
static int voc_probe(AVProbeData *p)
static int read_header(FFV1Context *f)
const AVCodecTag ff_voc_codec_tags[]
enum AVMediaType codec_type
int sample_rate
samples per second
AVIOContext * pb
I/O context.
main external API structure.
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
int ff_voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size)
This structure contains the data a format has to probe a file.
const unsigned char ff_voc_magic[21]
unsigned int avio_rl16(AVIOContext *s)
#define AVPROBE_SCORE_MAX
int channels
number of audio channels
void * priv_data
Format private data.
static int voc_read_header(AVFormatContext *s)
unsigned int avio_rl24(AVIOContext *s)
This structure stores compressed data.
#define check(x, y, S, v)