FFmpeg
|
Functions | |
uint64_t | av_get_channel_layout (const char *name) |
Return a channel layout id that matches name, or 0 if no match is found. More... | |
void | av_get_channel_layout_string (char *buf, int buf_size, int nb_channels, uint64_t channel_layout) |
Return a description of a channel layout. More... | |
void | av_bprint_channel_layout (struct AVBPrint *bp, int nb_channels, uint64_t channel_layout) |
Append a description of a channel layout to a bprint buffer. More... | |
int | av_get_channel_layout_nb_channels (uint64_t channel_layout) |
Return the number of channels in the channel layout. More... | |
int64_t | av_get_default_channel_layout (int nb_channels) |
Return default channel layout for a given number of channels. More... | |
int | av_get_channel_layout_channel_index (uint64_t channel_layout, uint64_t channel) |
Get the index of a channel in channel_layout. More... | |
uint64_t | av_channel_layout_extract_channel (uint64_t channel_layout, int index) |
Get the channel with the given index in channel_layout. More... | |
const char * | av_get_channel_name (uint64_t channel) |
Get the name of a given channel. More... | |
const char * | av_get_channel_description (uint64_t channel) |
Get the description of a given channel. More... | |
int | av_get_standard_channel_layout (unsigned index, uint64_t *layout, const char **name) |
Get the value and name of a standard channel layout. More... | |
#define AV_CH_LAYOUT_MONO (AV_CH_FRONT_CENTER) |
Definition at line 85 of file channel_layout.h.
Referenced by ac3_decode_frame(), ac3_decode_init(), aea_read_header(), amf_parse_object(), amr_decode_fix_avctx(), amr_handle_packet(), amr_read_header(), amrnb_decode_init(), amrwb_decode_init(), apc_read_header(), ape_decode_init(), bfi_read_header(), cdxl_read_packet(), cin_read_header(), cinaudio_decode_init(), cook_decode_init(), create_audio_stream(), create_new_audio_stream(), decode_frame(), decode_init(), dss_read_header(), dss_sp_decode_init(), encode_init(), evrc_decode_init(), fdk_aac_decode_init(), ff_aac_ac3_parse(), ff_flac_is_native_layout(), ff_opus_parse_extradata(), flic_read_header(), flv_read_packet(), g722_decode_init(), g723_1_decode_init(), g723_1_init(), get_sindex(), gsm_init(), gsm_read_header(), idcin_read_header(), iff_read_header(), ilbc_decode_init(), imc_decode_init(), init_audio(), init_filters(), iss_read_header(), libgsm_decode_init(), libspeex_decode_init(), metasound_decode_init(), mmf_read_header(), mov_write_header(), mpc8_decode_init(), mpegps_read_packet(), mxg_read_header(), on2avc_decode_init(), opus_decode_init(), parse_mpeg1waveformatex(), pcm_bluray_decode_frame(), pcm_bluray_parse_header(), qcelp_decode_init(), qcp_read_header(), qdm2_decode_init(), query_formats(), ra144_decode_init(), ra288_decode_init(), read_header(), read_major_sync(), rm_read_audio_stream_info(), roq_read_packet(), rso_read_header(), seq_read_header(), set_channel_info(), set_channel_params(), set_channels(), sipr_decoder_init(), smacker_read_header(), smka_decode_init(), sol_read_header(), speex_header(), str_read_packet(), tmv_read_header(), truespeech_decode_init(), twinvq_decode_init(), vid_read_packet(), vmd_read_header(), vmdaudio_decode_init(), wavpack_decode_block(), wavpack_encode_block(), wc3_read_header(), wmavoice_decode_init(), ws_snd_decode_init(), wsaud_read_header(), wv_read_block_header(), and yop_read_header().
#define AV_CH_LAYOUT_STEREO (AV_CH_FRONT_LEFT|AV_CH_FRONT_RIGHT) |
Definition at line 86 of file channel_layout.h.
Referenced by ac3_decode_frame(), ac3_decode_init(), add_stream(), adp_read_header(), aea_read_header(), afc_read_header(), amf_parse_object(), apc_read_header(), ape_decode_init(), ast_read_header(), auto_matrix(), avresample_build_matrix(), bmv_aud_decode_init(), bmv_read_header(), cdxl_read_packet(), cook_decode_init(), create_new_audio_stream(), dca_decode_frame(), dca_decode_init(), dca_filter_channels(), dcadec_decode_frame(), dcadec_init(), decode_frame(), decode_init(), dv_extract_audio_info(), encode_init(), fdk_aac_decode_init(), ff_aac_ac3_parse(), ff_flac_is_native_layout(), ff_opus_parse_extradata(), flac_encode_init(), flv_read_packet(), get_mix_any_func_TMPL(), get_sindex(), get_stream_info(), idcin_read_header(), iff_read_header(), imc_decode_init(), init_audio(), init_filter_graph(), iss_read_header(), libspeex_decode_init(), libvorbis_setup(), main(), metasound_decode_init(), mlp_parse(), mmf_read_header(), mpc7_decode_init(), mpc8_decode_init(), mpc_read_header(), nuv_header(), oma_read_header(), on2avc_decode_init(), opus_decode_init(), paf_audio_init(), parse_mpeg1waveformatex(), pcm_bluray_decode_frame(), pcm_bluray_parse_header(), qdm2_decode_init(), query_formats(), read_header(), read_major_sync(), roq_read_packet(), s302m_parse_frame_header(), sbg_read_header(), select_channel_layout(), set_channel_params(), set_channels(), smacker_read_header(), smka_decode_init(), sol_read_header(), speex_header(), str_read_packet(), tmv_read_header(), twinvq_decode_init(), vmd_read_header(), vmdaudio_decode_init(), wavpack_decode_block(), wavpack_encode_block(), wsaud_read_header(), and wv_read_block_header().
#define AV_CH_LAYOUT_2POINT1 (AV_CH_LAYOUT_STEREO|AV_CH_LOW_FREQUENCY) |
Definition at line 87 of file channel_layout.h.
#define AV_CH_LAYOUT_2_1 (AV_CH_LAYOUT_STEREO|AV_CH_BACK_CENTER) |
Definition at line 88 of file channel_layout.h.
Referenced by pcm_bluray_decode_frame(), and pcm_bluray_parse_header().
#define AV_CH_LAYOUT_SURROUND (AV_CH_LAYOUT_STEREO|AV_CH_FRONT_CENTER) |
Definition at line 89 of file channel_layout.h.
Referenced by ff_flac_is_native_layout(), main(), pcm_bluray_decode_frame(), pcm_bluray_parse_header(), sane_layout(), and set_channel_params().
#define AV_CH_LAYOUT_3POINT1 (AV_CH_LAYOUT_SURROUND|AV_CH_LOW_FREQUENCY) |
Definition at line 90 of file channel_layout.h.
#define AV_CH_LAYOUT_4POINT0 (AV_CH_LAYOUT_SURROUND|AV_CH_BACK_CENTER) |
Definition at line 91 of file channel_layout.h.
Referenced by ast_read_header(), pcm_bluray_decode_frame(), pcm_bluray_parse_header(), and set_channel_params().
#define AV_CH_LAYOUT_4POINT1 (AV_CH_LAYOUT_4POINT0|AV_CH_LOW_FREQUENCY) |
Definition at line 92 of file channel_layout.h.
#define AV_CH_LAYOUT_2_2 (AV_CH_LAYOUT_STEREO|AV_CH_SIDE_LEFT|AV_CH_SIDE_RIGHT) |
Definition at line 93 of file channel_layout.h.
Referenced by encode_init(), find_reorder_func(), flac_encode_init(), libvorbis_setup(), pcm_bluray_decode_frame(), and pcm_bluray_parse_header().
#define AV_CH_LAYOUT_QUAD (AV_CH_LAYOUT_STEREO|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT) |
Definition at line 94 of file channel_layout.h.
Referenced by cdata_read_header(), ff_flac_is_native_layout(), find_reorder_func(), flac_encode_init(), libvorbis_setup(), read_restart_header(), and s302m_parse_frame_header().
#define AV_CH_LAYOUT_5POINT0 (AV_CH_LAYOUT_SURROUND|AV_CH_SIDE_LEFT|AV_CH_SIDE_RIGHT) |
Definition at line 95 of file channel_layout.h.
Referenced by encode_init(), ff_flac_is_native_layout(), find_reorder_func(), flac_encode_init(), libvorbis_setup(), pcm_bluray_decode_frame(), and pcm_bluray_parse_header().
#define AV_CH_LAYOUT_5POINT1 (AV_CH_LAYOUT_5POINT0|AV_CH_LOW_FREQUENCY) |
Definition at line 96 of file channel_layout.h.
Referenced by daud_header(), dcadec_decode_frame(), dcadec_init(), encode_init(), ff_flac_is_native_layout(), find_reorder_func(), flac_encode_init(), get_mix_any_func_TMPL(), libvorbis_setup(), pcm_bluray_decode_frame(), and pcm_bluray_parse_header().
#define AV_CH_LAYOUT_5POINT0_BACK (AV_CH_LAYOUT_SURROUND|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT) |
Definition at line 97 of file channel_layout.h.
Referenced by find_reorder_func(), flac_encode_init(), libvorbis_setup(), and read_restart_header().
#define AV_CH_LAYOUT_5POINT1_BACK (AV_CH_LAYOUT_5POINT0_BACK|AV_CH_LOW_FREQUENCY) |
Definition at line 98 of file channel_layout.h.
Referenced by cdata_read_header(), find_reorder_func(), flac_encode_init(), get_mix_any_func_TMPL(), libvorbis_setup(), main(), read_restart_header(), s302m_parse_frame_header(), and set_channel_params().
#define AV_CH_LAYOUT_6POINT0 (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_CENTER) |
Definition at line 99 of file channel_layout.h.
#define AV_CH_LAYOUT_6POINT0_FRONT (AV_CH_LAYOUT_2_2|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER) |
Definition at line 100 of file channel_layout.h.
#define AV_CH_LAYOUT_HEXAGONAL (AV_CH_LAYOUT_5POINT0_BACK|AV_CH_BACK_CENTER) |
Definition at line 101 of file channel_layout.h.
#define AV_CH_LAYOUT_6POINT1 (AV_CH_LAYOUT_5POINT1|AV_CH_BACK_CENTER) |
Definition at line 102 of file channel_layout.h.
Referenced by ff_flac_is_native_layout().
#define AV_CH_LAYOUT_6POINT1_BACK (AV_CH_LAYOUT_5POINT1_BACK|AV_CH_BACK_CENTER) |
Definition at line 103 of file channel_layout.h.
Referenced by set_channel_params().
#define AV_CH_LAYOUT_6POINT1_FRONT (AV_CH_LAYOUT_6POINT0_FRONT|AV_CH_LOW_FREQUENCY) |
Definition at line 104 of file channel_layout.h.
#define AV_CH_LAYOUT_7POINT0 (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT) |
Definition at line 105 of file channel_layout.h.
Referenced by pcm_bluray_decode_frame(), and pcm_bluray_parse_header().
#define AV_CH_LAYOUT_7POINT0_FRONT (AV_CH_LAYOUT_5POINT0|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER) |
Definition at line 106 of file channel_layout.h.
#define AV_CH_LAYOUT_7POINT1 (AV_CH_LAYOUT_5POINT1|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT) |
Definition at line 107 of file channel_layout.h.
Referenced by aac_encode_init(), ff_flac_is_native_layout(), find_reorder_func(), get_mix_any_func_TMPL(), libvorbis_setup(), pcm_bluray_decode_frame(), pcm_bluray_parse_header(), and set_channel_params().
#define AV_CH_LAYOUT_7POINT1_WIDE (AV_CH_LAYOUT_5POINT1|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER) |
Definition at line 108 of file channel_layout.h.
#define AV_CH_LAYOUT_7POINT1_WIDE_BACK (AV_CH_LAYOUT_5POINT1_BACK|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER) |
Definition at line 109 of file channel_layout.h.
#define AV_CH_LAYOUT_OCTAGONAL (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_LEFT|AV_CH_BACK_CENTER|AV_CH_BACK_RIGHT) |
Definition at line 110 of file channel_layout.h.
#define AV_CH_LAYOUT_HEXADECAGONAL (AV_CH_LAYOUT_OCTAGONAL|AV_CH_WIDE_LEFT|AV_CH_WIDE_RIGHT|AV_CH_TOP_BACK_LEFT|AV_CH_TOP_BACK_RIGHT|AV_CH_TOP_BACK_CENTER|AV_CH_TOP_FRONT_CENTER|AV_CH_TOP_FRONT_LEFT|AV_CH_TOP_FRONT_RIGHT) |
Definition at line 111 of file channel_layout.h.
#define AV_CH_LAYOUT_STEREO_DOWNMIX (AV_CH_STEREO_LEFT|AV_CH_STEREO_RIGHT) |
Definition at line 112 of file channel_layout.h.
Referenced by audio_open(), auto_matrix(), avresample_build_matrix(), dcadec_decode_frame(), dcadec_init(), fdk_aac_decode_init(), main(), query_formats(), and s302m_parse_frame_header().
enum AVMatrixEncoding |
Definition at line 114 of file channel_layout.h.
uint64_t av_get_channel_layout | ( | const char * | name | ) |
Return a channel layout id that matches name, or 0 if no match is found.
name can be one or several of the following notations, separated by '+' or '|':
Example: "stereo+FC" = "2c+FC" = "2c+1c" = "0x7"
Definition at line 184 of file channel_layout.c.
Referenced by av_opt_set(), channelmap_init(), ff_parse_channel_layout(), get_channel(), init(), init_audio(), join_init(), opt_channel_layout(), and parse_channel_name().
void av_get_channel_layout_string | ( | char * | buf, |
int | buf_size, | ||
int | nb_channels, | ||
uint64_t | channel_layout | ||
) |
Return a description of a channel layout.
If nb_channels is <= 0, it is guessed from the channel_layout.
buf | put here the string containing the channel layout |
buf_size | size in bytes of the buffer |
Definition at line 224 of file channel_layout.c.
Referenced by audio_thread(), auto_matrix(), avcodec_open2(), avcodec_string(), channelmap_config_input(), channelmap_init(), clean_layout(), config_output(), config_props(), decode_audio(), dprint_options(), ff_alsa_open(), ff_audio_mix_set_matrix(), ff_tlog_link(), filter_frame(), guess_channel_layout(), guess_input_channel_layout(), init_encoder(), init_filter_graph(), init_filters(), libvorbis_setup(), main(), print_digraph(), print_link_prop(), query_formats(), and swr_init().
void av_bprint_channel_layout | ( | struct AVBPrint * | bp, |
int | nb_channels, | ||
uint64_t | channel_layout | ||
) |
Append a description of a channel layout to a bprint buffer.
Definition at line 190 of file channel_layout.c.
Referenced by av_get_channel_layout_string(), config_output(), show_frame(), and show_stream().
int av_get_channel_layout_nb_channels | ( | uint64_t | channel_layout | ) |
Return the number of channels in the channel layout.
Definition at line 233 of file channel_layout.c.
Referenced by add_stream(), audio_decode_frame(), audio_encode_example(), audio_open(), auto_matrix(), av_bprint_channel_layout(), av_buffersrc_add_frame_flags(), av_channel_layout_extract_channel(), av_get_channel_description(), av_get_channel_layout_channel_index(), av_get_channel_name(), available_samples(), avcodec_open2(), avresample_build_matrix(), avresample_get_matrix(), avresample_open(), avresample_set_channel_mapping(), avresample_set_matrix(), buffer_offset(), calc_ptr_alignment(), channelmap_config_input(), channelmap_filter_frame(), channelmap_init(), config_audio_output(), config_output(), config_props(), cook_decode_init(), D(), dca_decode_frame(), dcadec_decode_frame(), ff_default_get_audio_buffer(), ff_filter_frame_framed(), ff_flac_parse_streaminfo(), ff_init_buffer_info(), ff_merge_channel_layouts(), ff_mov_get_channel_layout_tag(), ff_parse_channel_layout(), filter_frame(), get_audio_buffer(), get_channel(), get_stream_info(), get_valid_channel_layout(), init(), init_audio(), join_init(), main(), mov_read_dec3(), open_output_file(), opt_channel_layout(), parse_dsd_prop(), pick_format(), print_frame(), process_output(), pulse_write_header(), query_formats(), return_audio_frame(), sane_layout(), select_channel_layout(), send_silence(), swap_channel_layouts_on_filter(), swr_alloc_set_opts(), swr_init(), swr_set_matrix(), swri_rematrix(), swri_rematrix_init(), and thd_channel_layout_extract_channel().
int64_t av_get_default_channel_layout | ( | int | nb_channels | ) |
Return default channel layout for a given number of channels.
Definition at line 238 of file channel_layout.c.
Referenced by audio_decode_frame(), audio_open(), channelmap_init(), configure_output_audio_filter(), encode_init(), get_audio_config(), get_channel_layout_single(), guess_channel_layout(), guess_input_channel_layout(), init(), init_filter(), init_filters(), init_resampler(), open_output_file(), query_formats(), set_channel_info(), and swr_init().
int av_get_channel_layout_channel_index | ( | uint64_t | channel_layout, |
uint64_t | channel | ||
) |
Get the index of a channel in channel_layout.
channel | a channel layout describing exactly one channel which must be present in channel_layout. |
Definition at line 246 of file channel_layout.c.
Referenced by channelmap_config_input(), channelmap_init(), join_config_output(), parse_maps(), and read_restart_header().
uint64_t av_channel_layout_extract_channel | ( | uint64_t | channel_layout, |
int | index | ||
) |
Get the channel with the given index in channel_layout.
Definition at line 278 of file channel_layout.c.
Referenced by config_audio_output(), filter_frame(), guess_map_any(), init(), join_config_output(), join_init(), and query_formats().
const char* av_get_channel_name | ( | uint64_t | channel | ) |
Get the name of a given channel.
Definition at line 256 of file channel_layout.c.
Referenced by channelmap_config_input(), dump_paramchange(), filter_frame(), init(), join_config_output(), and show_layouts().
const char* av_get_channel_description | ( | uint64_t | channel | ) |
Get the description of a given channel.
channel | a channel layout with a single channel |
Definition at line 267 of file channel_layout.c.
Referenced by show_layouts().
int av_get_standard_channel_layout | ( | unsigned | index, |
uint64_t * | layout, | ||
const char ** | name | ||
) |
Get the value and name of a standard channel layout.
[in] | index | index in an internal list, starting at 0 |
[out] | layout | channel layout mask |
[out] | name | name of the layout |
Definition at line 292 of file channel_layout.c.
Referenced by show_layouts().