|
FFmpeg
|
#include <demux.h>
Data Fields | |
| AVInputFormat | p |
| The public AVInputFormat. | |
| enum AVCodecID | raw_codec_id |
| Raw demuxers store their codec ID here. | |
| int | priv_data_size |
| Size of private data so that it can be allocated in the wrapper. | |
| int | flags_internal |
| Internal flags. | |
| int(* | read_probe )(const AVProbeData *) |
| Tell if a given file has a chance of being parsed as this format. | |
| int(* | read_header )(struct AVFormatContext *) |
| Read the format header and initialize the AVFormatContext structure. | |
| int(* | read_packet )(struct AVFormatContext *, AVPacket *pkt) |
| Read one packet and put it in 'pkt'. | |
| int(* | read_close )(struct AVFormatContext *) |
| Close the stream. | |
| int(* | read_seek )(struct AVFormatContext *, int stream_index, int64_t timestamp, int flags) |
| Seek to a given timestamp relative to the frames in stream component stream_index. | |
| int64_t(* | read_timestamp )(struct AVFormatContext *s, int stream_index, int64_t *pos, int64_t pos_limit) |
| Get the next timestamp in stream[stream_index].time_base units. | |
| int(* | read_set_state )(struct AVFormatContext *, enum FFInputFormatStreamState state) |
| Change the stream state - only meaningful if using a network-based format (RTSP). | |
| int(* | handle_command )(struct AVFormatContext *, enum FFInputFormatCommandOption opt, enum AVFormatCommandID id, void *data) |
| Handle demuxer commands This callback is used to either send a command to a demuxer (FF_INFMT_COMMAND_SUBMIT), or to retrieve the reply for a previously sent command (FF_INFMT_COMMAND_GET_REPLY). | |
| int(* | read_seek2 )(struct AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags) |
| Seek to timestamp ts. | |
| int(* | get_device_list )(struct AVFormatContext *s, struct AVDeviceInfoList *device_list) |
| Returns device list with it properties. | |
| AVInputFormat FFInputFormat::p |
The public AVInputFormat.
See avformat.h for it.
Definition at line 70 of file demux.h.
Referenced by LLVMFuzzerTestOneInput(), and next_input().
| enum AVCodecID FFInputFormat::raw_codec_id |
Raw demuxers store their codec ID here.
Definition at line 75 of file demux.h.
Referenced by ff_img_read_header(), ff_img_read_packet(), ff_raw_audio_read_header(), ff_raw_subtitle_read_header(), ff_raw_video_read_header(), g726_read_header(), g728_read_header(), pcm_read_header(), raw_data_read_header(), and rawvideo_read_header().
| int FFInputFormat::priv_data_size |
Size of private data so that it can be allocated in the wrapper.
Definition at line 80 of file demux.h.
Referenced by avformat_open_input(), and ff_alloc_input_device_context().
| int FFInputFormat::flags_internal |
Internal flags.
See FF_INFMT_FLAG_* above and FF_FMT_FLAG_* in internal.h.
Definition at line 85 of file demux.h.
Referenced by avformat_find_stream_info(), avformat_open_input(), and is_id3v2_format().
| int(* FFInputFormat::read_probe) (const AVProbeData *) |
Tell if a given file has a chance of being parsed as this format.
The buffer provided is guaranteed to be AVPROBE_PADDING_SIZE bytes big so you do not have to check for that unless you need more.
If the final score is not yet resolvable, the special return value AVERROR(EAGAIN) can be used to signal to the caller that probing must be tried again with more bytes.
This is distinct from AVPROBE_SCORE_RETRY, which means "possibly mine, but if another format is more confident, let it have the file", whereas AVERROR(EAGAIN) means "possibly mine, don't let another format claim it until I've seen enough data to make a decision".
Definition at line 101 of file demux.h.
Referenced by ff_img_read_header(), ff_img_read_packet(), probe(), and probe_input_format_internal().
| int(* FFInputFormat::read_header) (struct AVFormatContext *) |
Read the format header and initialize the AVFormatContext structure.
Return 0 if OK. 'avformat_new_stream' should be called to create new streams.
Definition at line 108 of file demux.h.
Referenced by avformat_open_input(), and ff_img_read_header().
| int(* FFInputFormat::read_packet) (struct AVFormatContext *, AVPacket *pkt) |
Read one packet and put it in 'pkt'.
pts and flags are also set. 'avformat_new_stream' can be called only if the flag AVFMTCTX_NOHEADER is used and only in the calling thread (not in a background thread).
Definition at line 118 of file demux.h.
Referenced by ff_img_read_packet(), and ff_read_packet().
| int(* FFInputFormat::read_close) (struct AVFormatContext *) |
Close the stream.
The AVFormatContext and AVStreams are not freed by this function
Definition at line 124 of file demux.h.
Referenced by avformat_close_input(), and avformat_open_input().
| int(* FFInputFormat::read_seek) (struct AVFormatContext *, int stream_index, int64_t timestamp, int flags) |
Seek to a given timestamp relative to the frames in stream component stream_index.
| stream_index | Must not be -1. |
| flags | Selects which direction should be preferred if no exact match is available. |
Definition at line 134 of file demux.h.
Referenced by seek_frame_generic(), and seek_frame_internal().
| int64_t(* FFInputFormat::read_timestamp) (struct AVFormatContext *s, int stream_index, int64_t *pos, int64_t pos_limit) |
Get the next timestamp in stream[stream_index].time_base units.
Definition at line 141 of file demux.h.
Referenced by ff_seek_frame_binary(), and seek_frame_internal().
| int(* FFInputFormat::read_set_state) (struct AVFormatContext *, enum FFInputFormatStreamState state) |
Change the stream state - only meaningful if using a network-based format (RTSP).
Definition at line 148 of file demux.h.
Referenced by av_read_pause(), and av_read_play().
| int(* FFInputFormat::handle_command) (struct AVFormatContext *, enum FFInputFormatCommandOption opt, enum AVFormatCommandID id, void *data) |
Handle demuxer commands This callback is used to either send a command to a demuxer (FF_INFMT_COMMAND_SUBMIT), or to retrieve the reply for a previously sent command (FF_INFMT_COMMAND_GET_REPLY).
Demuxers implementing this must return AVERROR(ENOTSUP) if the provided id is not handled by the demuxer. Demuxers should return AVERROR(EAGAIN) if they can handle a specific command but are not able to at the moment. When a reply is requested that is not available yet, the demuxer should also return AVERROR(EAGAIN).
Depending on opt, the data will be either a pointer to the command payload structure for the specified ID, or a pointer to the buffer for the command reply for the specified ID.
When a command is submitted, before a previous reply was requested from the demuxer, the demuxer should discard the old reply.
Definition at line 176 of file demux.h.
Referenced by avformat_receive_command_reply(), and avformat_send_command().
| int(* FFInputFormat::read_seek2) (struct AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags) |
Seek to timestamp ts.
Seeking will be done so that the point from which all active streams can be presented successfully will be closest to ts and within min/max_ts. Active streams are all streams that have AVStream.discard < AVDISCARD_ALL.
Definition at line 186 of file demux.h.
Referenced by av_seek_frame(), and seek_file().
| int(* FFInputFormat::get_device_list) (struct AVFormatContext *s, struct AVDeviceInfoList *device_list) |
Returns device list with it properties.
Definition at line 192 of file demux.h.
Referenced by avdevice_list_devices().