26 typedef struct voc_enc_context {
34 const int header_size = 26;
101 .mime_type =
"audio/x-voc",
void avio_wl16(AVIOContext *s, unsigned int val)
static int voc_write_packet(AVFormatContext *s, AVPacket *pkt)
void avio_wl32(AVIOContext *s, unsigned int val)
AVStream ** streams
A list of all streams in the file.
AVOutputFormat ff_voc_muxer
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
#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. ...
static int voc_write_trailer(AVFormatContext *s)
AVCodecContext * codec
Codec context associated with this stream.
unsigned int nb_streams
Number of elements in AVFormatContext.streams.
static int write_trailer(AVFormatContext *s1)
#define AVERROR_PATCHWELCOME
Not yet implemented in FFmpeg, patches welcome.
const AVCodecTag ff_voc_codec_tags[]
enum AVMediaType codec_type
int sample_rate
samples per second
AVIOContext * pb
I/O context.
void avio_w8(AVIOContext *s, int b)
main external API structure.
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
void avio_wl24(AVIOContext *s, unsigned int val)
const unsigned char ff_voc_magic[21]
int channels
number of audio channels
void * priv_data
Format private data.
static void write_header(FFV1Context *f)
static int voc_write_header(AVFormatContext *s)
This structure stores compressed data.
static int write_packet(AVFormatContext *s1, AVPacket *pkt)