59 #define GET_EFI_META(name,size) \ 61 if (len < 1 || len > size) \ 63 if (avio_read(pb, buf, size) == size) { \ 65 av_dict_set(&avctx->metadata, name, buf, 0); \ 143 #define OFFSET(x) offsetof(TtyDemuxContext, x) 144 #define DEC AV_OPT_FLAG_DECODING_PARAM 165 .extensions =
"ans,art,asc,diz,ice,nfo,txt,vt",
166 .priv_class = &tty_demuxer_class,
int64_t avio_size(AVIOContext *s)
Get the filesize.
int av_parse_video_rate(AVRational *rate, const char *arg)
Parse str and store the detected values in *rate.
int av_parse_video_size(int *width_ptr, int *height_ptr, const char *str)
Parse str and put in width_ptr and height_ptr the detected values.
uint64_t fsize
file size less metadata buffer
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
static double av_q2d(AVRational a)
Convert rational to double.
#define AVERROR_EOF
End of file.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
#define GET_EFI_META(name, size)
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
#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. ...
int ff_sauce_read(AVFormatContext *avctx, uint64_t *fsize, int *got_width, int get_height)
static const AVOption options[]
void av_log(void *avcl, int level, const char *fmt,...)
AVRational avg_frame_rate
Average framerate.
int flags
A combination of AV_PKT_FLAG values.
int avio_r8(AVIOContext *s)
AVCodecContext * codec
Codec context associated with this stream.
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
char * video_size
A string describing video size, set by a private option.
int width
picture width / height.
static int read_header(AVFormatContext *avctx)
if(ac->has_optimized_func)
enum AVMediaType codec_type
static const AVClass tty_demuxer_class
AVIOContext * pb
I/O context.
AVInputFormat ff_tty_demuxer
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
Describe the class of an AVClass context structure.
rational number numerator/denominator
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
int64_t duration
Decoding: duration of the stream, in stream time base.
static int efi_read(AVFormatContext *avctx, uint64_t start_pos)
Parse EFI header.
int eof_reached
true if eof reached
void * priv_data
Format private data.
char * framerate
Set by a private option.
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
This structure stores compressed data.
static int read_packet(AVFormatContext *avctx, AVPacket *pkt)