static int smjpeg_write_trailer(AVFormatContext *s)
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
static int smjpeg_write_packet(AVFormatContext *s, AVPacket *pkt)
const AVCodecTag ff_codec_smjpeg_video_tags[]
AVDictionaryEntry * av_dict_get(AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags)
Get a dictionary entry with matching key.
struct SMJPEGMuxContext SMJPEGMuxContext
void avio_wl32(AVIOContext *s, unsigned int val)
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)
int av_get_bits_per_sample(enum CodecID codec_id)
Return codec bits per sample.
int duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
static int smjpeg_write_header(AVFormatContext *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,...)
AVCodecContext * codec
codec context
unsigned int nb_streams
A list of all streams in the file.
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
int void avio_flush(AVIOContext *s)
int width
picture width / height.
internal header for RIFF based (de)muxers do NOT include this in end user applications ...
enum AVMediaType codec_type
int sample_rate
samples per second
void avio_w8(AVIOContext *s, int b)
main external API structure.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void avio_wb16(AVIOContext *s, unsigned int val)
unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum CodecID id)
const AVCodecTag ff_codec_smjpeg_audio_tags[]
int channels
number of audio channels
void * priv_data
Format private data.
void avio_wb32(AVIOContext *s, unsigned int val)
#define AV_DICT_IGNORE_SUFFIX
AVOutputFormat ff_smjpeg_muxer
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...