FFmpeg
|
#include <stdint.h>
#include "libavutil/avutil.h"
#include "libavutil/channel_layout.h"
#include "libavutil/rational.h"
#include "libavutil/pixfmt.h"
#include "codec_id.h"
Go to the source code of this file.
Data Structures | |
struct | AVCodecParameters |
This struct describes the properties of an encoded stream. More... | |
Enumerations | |
enum | AVFieldOrder { AV_FIELD_UNKNOWN, AV_FIELD_PROGRESSIVE, AV_FIELD_TT, AV_FIELD_BB, AV_FIELD_TB, AV_FIELD_BT } |
Functions | |
AVCodecParameters * | avcodec_parameters_alloc (void) |
Allocate a new AVCodecParameters and set its fields to default values (unknown/invalid/0). More... | |
void | avcodec_parameters_free (AVCodecParameters **par) |
Free an AVCodecParameters instance and everything associated with it and write NULL to the supplied pointer. More... | |
int | avcodec_parameters_copy (AVCodecParameters *dst, const AVCodecParameters *src) |
Copy the contents of src to dst. More... | |
int | av_get_audio_frame_duration2 (AVCodecParameters *par, int frame_bytes) |
This function is the same as av_get_audio_frame_duration(), except it works with AVCodecParameters instead of an AVCodecContext. More... | |
enum AVFieldOrder |
Enumerator | |
---|---|
AV_FIELD_UNKNOWN | |
AV_FIELD_PROGRESSIVE | |
AV_FIELD_TT | |
AV_FIELD_BB | |
AV_FIELD_TB | |
AV_FIELD_BT |
Definition at line 37 of file codec_par.h.
AVCodecParameters* avcodec_parameters_alloc | ( | void | ) |
Allocate a new AVCodecParameters and set its fields to default values (unknown/invalid/0).
The returned struct must be freed with avcodec_parameters_free().
Definition at line 53 of file codec_par.c.
Referenced by av_bsf_alloc(), avformat_new_stream(), ff_mov_init_hinting(), flv_read_packet(), mov_create_chapter_track(), mov_create_timecode_track(), and new_output_stream().
void avcodec_parameters_free | ( | AVCodecParameters ** | par | ) |
Free an AVCodecParameters instance and everything associated with it and write NULL to the supplied pointer.
Definition at line 63 of file codec_par.c.
Referenced by av_bsf_free(), ff_free_stream(), ff_mov_close_hinting(), ff_mov_init_hinting(), ffmpeg_cleanup(), flv_read_packet(), and mov_free().
int avcodec_parameters_copy | ( | AVCodecParameters * | dst, |
const AVCodecParameters * | src | ||
) |
Copy the contents of src to dst.
Any allocated fields in dst are freed and replaced with newly allocated duplicates of the corresponding fields in src.
Definition at line 74 of file codec_par.c.
Referenced by asfrtp_parse_sdp_line(), av1_read_header(), av_bsf_init(), bsf_list_init(), copy_stream_props(), dash_init(), detect_stream_specific(), extract_extradata_init(), ff_rtp_chain_mux_open(), ff_stream_add_bitstream_filter(), ff_stream_encode_params_copy(), hds_write_header(), hls_mux_init(), init_output_bsfs(), init_output_stream_streamcopy(), ism_write_header(), main(), mov_init_ttml_writer(), mpegts_init(), open_demux_for_component(), open_output_file(), open_slave(), read_gab2_sub(), rtp_mpegts_write_header(), sap_fetch_packet(), sap_read_header(), set_context_streams_from_tracks(), set_stream_info_from_input_stream(), and write_muxed_file().
int av_get_audio_frame_duration2 | ( | AVCodecParameters * | par, |
int | frame_bytes | ||
) |
This function is the same as av_get_audio_frame_duration(), except it works with AVCodecParameters instead of an AVCodecContext.
Definition at line 832 of file utils.c.
Referenced by adp_read_header(), binka_read_packet(), build_frame_code(), compute_frame_duration(), compute_muxer_pkt_fields(), enable_pcr_generation_for_stream(), ff_parse_specific_params(), ff_put_wav_header(), ff_voc_get_packet(), get_aiff_header(), guess_pkt_duration(), msf_read_header(), rm_write_header(), rsd_read_header(), rtp_send_ilbc(), rv10_write_header(), svs_read_header(), swf_write_audio(), and vpk_read_seek().