FFmpeg
|
#include "libavutil/version.h"
#include "libavutil/avassert.h"
#include "libavcodec/bytestream.h"
#include "libavcodec/packet_internal.h"
#include "avformat.h"
#include "avio_internal.h"
#include "demux.h"
#include "internal.h"
Go to the source code of this file.
Functions | |
struct AVCodecParserContext * | av_stream_get_parser (const AVStream *st) |
void | avpriv_stream_set_need_parsing (AVStream *st, enum AVStreamParseType type) |
AVChapter * | avpriv_new_chapter (AVFormatContext *s, int64_t id, AVRational time_base, int64_t start, int64_t end, const char *title) |
Add a new chapter. More... | |
void | av_format_inject_global_side_data (AVFormatContext *s) |
This function will cause global side data to be injected in the next packet of each stream as well as after any subsequent seek. More... | |
int | avformat_queue_attached_pictures (AVFormatContext *s) |
int | ff_add_attached_pic (AVFormatContext *s, AVStream *st0, AVIOContext *pb, AVBufferRef **buf, int size) |
Add an attached pic to an AVStream. More... | |
int | ff_add_param_change (AVPacket *pkt, int32_t channels, uint64_t channel_layout, int32_t sample_rate, int32_t width, int32_t height) |
Add side data to a packet for changing parameters to the given values. More... | |
int | av_read_play (AVFormatContext *s) |
Start playing a network-based stream (e.g. More... | |
int | av_read_pause (AVFormatContext *s) |
Pause a network-based stream (e.g. More... | |
int | ff_generate_avci_extradata (AVStream *st) |
Generate standard extradata for AVC-Intra based on width/height and field order. More... | |
int | ff_get_extradata (void *logctx, AVCodecParameters *par, AVIOContext *pb, int size) |
Allocate extradata with additional AV_INPUT_BUFFER_PADDING_SIZE at end which is always set to 0 and fill it from pb. More... | |
int | ff_find_stream_index (const AVFormatContext *s, int id) |
Find stream index based on format-specific stream ID. More... | |
struct AVCodecParserContext* av_stream_get_parser | ( | const AVStream * | st | ) |
Definition at line 32 of file demux_utils.c.
Referenced by ts_fixup().
void avpriv_stream_set_need_parsing | ( | AVStream * | st, |
enum AVStreamParseType | type | ||
) |
Definition at line 37 of file demux_utils.c.
Referenced by v4l2_read_header().
AVChapter* avpriv_new_chapter | ( | AVFormatContext * | s, |
int64_t | id, | ||
AVRational | time_base, | ||
int64_t | start, | ||
int64_t | end, | ||
const char * | title | ||
) |
Add a new chapter.
s | media file handle |
id | unique ID for this chapter |
start | chapter start time in time_base units |
end | chapter end time in time_base units |
title | chapter title |
Definition at line 42 of file demux_utils.c.
Referenced by aa_read_header(), asf_read_marker(), concat_parse_script(), decode_info_header(), ff_id3v2_parse_chapters(), flac_read_header(), mov_metadata_hmmt(), mov_read_chapters(), mov_read_chpl(), ogm_chapter(), read_chapter(), and read_header().
void av_format_inject_global_side_data | ( | AVFormatContext * | s | ) |
This function will cause global side data to be injected in the next packet of each stream as well as after any subsequent seek.
Definition at line 83 of file demux_utils.c.
Referenced by read_thread().
int ff_add_attached_pic | ( | AVFormatContext * | s, |
AVStream * | st, | ||
AVIOContext * | pb, | ||
AVBufferRef ** | buf, | ||
int | size | ||
) |
Add an attached pic to an AVStream.
st | if set, the stream to add the attached pic to; if unset, a new stream will be added to s. |
pb | AVIOContext to read data from if buf is unset. |
buf | if set, it contains the data and size information to be used for the attached pic; if unset, data is read from pb. |
size | the size of the data to read if buf is unset. |
Definition at line 116 of file demux_utils.c.
Referenced by ape_tag_read_field(), asf_read_picture(), ff_flac_parse_picture(), ff_id3v2_parse_apic(), get_attachment(), mov_read_chapters(), and mov_read_covr().
int ff_add_param_change | ( | AVPacket * | pkt, |
int32_t | channels, | ||
uint64_t | channel_layout, | ||
int32_t | sample_rate, | ||
int32_t | width, | ||
int32_t | height | ||
) |
Add side data to a packet for changing parameters to the given values.
Parameters set to 0 aren't included in the change.
Definition at line 151 of file demux_utils.c.
Referenced by flv_read_packet(), load_ipmovie_packet(), and swf_read_packet().
Generate standard extradata for AVC-Intra based on width/height and field order.
Definition at line 220 of file demux_utils.c.
Referenced by mov_read_trak(), and mxf_parse_structural_metadata().
int ff_get_extradata | ( | void * | logctx, |
AVCodecParameters * | par, | ||
AVIOContext * | pb, | ||
int | size | ||
) |
Allocate extradata with additional AV_INPUT_BUFFER_PADDING_SIZE at end which is always set to 0 and fill it from pb.
size | size of extradata |
Definition at line 355 of file demux_utils.c.
Referenced by aax_read_header(), acm_read_header(), adx_read_header(), aiff_read_header(), aix_read_header(), apc_read_header(), ape_tag_read_field(), avi_read_header(), bfi_read_header(), bonk_read_header(), decode_stream_header(), ff_get_wav_header(), ff_mp4_read_dec_config_descr(), flv_get_extradata(), get_codec_data(), idcin_read_header(), mov_parse_stsd_data(), mov_read_dfla(), mov_read_dvc1(), mov_read_glbl(), mov_read_strf(), mov_read_wave(), mpc8_read_header(), mpc_read_header(), parse_video_info(), read_header(), read_kuki_chunk(), rka_read_header(), rl2_read_header(), rm_read_extradata(), rsd_read_header(), vc1t_read_header(), wady_read_header(), wsvqa_read_header(), and yop_read_header().
int ff_find_stream_index | ( | const AVFormatContext * | s, |
int | id | ||
) |
Find stream index based on format-specific stream ID.
Definition at line 371 of file demux_utils.c.
Referenced by get_sindex(), parse_chunks(), pmt_cb(), and scte_data_cb().