|
FFmpeg
|
#include <string.h>#include <sys/types.h>#include <mfxvideo.h>#include "libavutil/avassert.h"#include "libavutil/common.h"#include "libavutil/hwcontext.h"#include "libavutil/hwcontext_qsv.h"#include "libavutil/mem.h"#include "libavutil/log.h"#include "libavutil/dict.h"#include "libavutil/time.h"#include "libavutil/imgutils.h"#include "avcodec.h"#include "encode.h"#include "qsv.h"#include "qsv_internal.h"#include "qsvenc.h"#include "libavutil/refstruct.h"Go to the source code of this file.
Data Structures | |
| struct | profile_names |
| struct | QSVPacket |
Macros | |
| #define | UPDATE_PARAM(a, b) |
| #define | MFX_IMPL_VIA_MASK(impl) |
| #define | UNMATCH(x) |
Variables | ||
| static const struct profile_names | avc_profiles [] | |
| static const struct profile_names | mpeg2_profiles [] | |
| static const struct profile_names | hevc_profiles [] | |
| static const struct profile_names | vp9_profiles [] | |
| static const struct profile_names | av1_profiles [] | |
| struct { | ||
| mfxU16 rc_mode | ||
| const char * name | ||
| } | rc_names [] | |
| const AVCodecHWConfigInternal *const | ff_qsv_enc_hw_configs [] | |
Definition at line 163 of file qsvenc.c.
Referenced by update_bitrate(), update_frame_rate(), update_gop_size(), update_low_delay_brc(), update_max_frame_size(), update_min_max_qp(), update_pic_timing_sei(), update_qp(), and update_rir().
| #define MFX_IMPL_VIA_MASK | ( | impl | ) |
| #define UNMATCH | ( | x | ) |
Referenced by check_enc_param().
|
static |
Definition at line 98 of file qsvenc.c.
Referenced by dump_video_param(), and dump_video_vp9_param().
|
static |
Definition at line 173 of file qsvenc.c.
Referenced by dump_video_param(), and dump_video_vp9_param().
|
static |
Definition at line 182 of file qsvenc.c.
Referenced by dump_video_param(), dump_video_vp9_param(), update_low_delay_brc(), and update_pic_timing_sei().
|
static |
Definition at line 191 of file qsvenc.c.
Referenced by qsv_retrieve_enc_params().
|
static |
Definition at line 403 of file qsvenc.c.
Referenced by qsv_retrieve_enc_vp9_params().
|
static |
Definition at line 474 of file qsvenc.c.
Referenced by qsv_retrieve_enc_jpeg_params().
|
static |
Definition at line 570 of file qsvenc.c.
Referenced by init_video_param().
|
static |
Definition at line 668 of file qsvenc.c.
Referenced by init_video_param().
|
static |
Definition at line 701 of file qsvenc.c.
Referenced by init_video_param().
|
static |
Definition at line 707 of file qsvenc.c.
Referenced by ff_qsv_enc_init().
|
static |
Definition at line 774 of file qsvenc.c.
Referenced by ff_qsv_enc_init().
|
static |
Definition at line 1297 of file qsvenc.c.
Referenced by ff_qsv_enc_init().
|
static |
Definition at line 1317 of file qsvenc.c.
Referenced by ff_qsv_enc_init().
|
static |
Definition at line 1371 of file qsvenc.c.
Referenced by ff_qsv_enc_init().
|
static |
Definition at line 1421 of file qsvenc.c.
Referenced by ff_qsv_enc_init().
|
static |
Definition at line 1591 of file qsvenc.c.
Referenced by ff_qsv_enc_init().
| int ff_qsv_enc_init | ( | AVCodecContext * | avctx, |
| QSVEncContext * | q ) |
Definition at line 1637 of file qsvenc.c.
Referenced by qsv_enc_init(), qsv_enc_init(), qsv_enc_init(), qsv_enc_init(), qsv_enc_init(), and qsv_enc_init().
|
static |
Definition at line 1852 of file qsvenc.c.
Referenced by clear_unused_frames(), and ff_qsv_enc_close().
|
static |
Definition at line 1866 of file qsvenc.c.
Referenced by get_free_frame().
|
static |
Definition at line 1885 of file qsvenc.c.
Referenced by submit_frame().
|
static |
Definition at line 1922 of file qsvenc.c.
Referenced by submit_frame().
|
static |
Definition at line 1981 of file qsvenc.c.
Referenced by submit_frame().
|
static |
Definition at line 2036 of file qsvenc.c.
Referenced by encode_frame().
|
static |
Definition at line 2124 of file qsvenc.c.
Referenced by encode_frame().
|
static |
Definition at line 2136 of file qsvenc.c.
Referenced by encode_frame().
|
static |
Definition at line 2197 of file qsvenc.c.
Referenced by encode_frame().
|
static |
Definition at line 2210 of file qsvenc.c.
Referenced by update_parameters().
|
static |
Definition at line 2239 of file qsvenc.c.
Referenced by update_parameters().
|
static |
Definition at line 2257 of file qsvenc.c.
Referenced by update_parameters().
|
static |
Definition at line 2271 of file qsvenc.c.
Referenced by update_parameters().
|
static |
Definition at line 2299 of file qsvenc.c.
Referenced by update_parameters().
|
static |
Definition at line 2364 of file qsvenc.c.
Referenced by update_parameters().
|
static |
Definition at line 2386 of file qsvenc.c.
Referenced by update_parameters().
|
static |
Definition at line 2410 of file qsvenc.c.
Referenced by update_parameters().
|
static |
Definition at line 2443 of file qsvenc.c.
Referenced by update_parameters().
|
static |
Definition at line 2462 of file qsvenc.c.
Referenced by ff_qsv_encode(), and update_parameters().
|
static |
Definition at line 2582 of file qsvenc.c.
Referenced by ff_qsv_encode().
| int ff_qsv_encode | ( | AVCodecContext * | avctx, |
| QSVEncContext * | q, | ||
| AVPacket * | pkt, | ||
| const AVFrame * | frame, | ||
| int * | got_packet ) |
Definition at line 2642 of file qsvenc.c.
Referenced by qsv_enc_frame(), qsv_enc_frame(), qsv_enc_frame(), qsv_enc_frame(), qsv_enc_frame(), and qsv_enc_frame().
| int ff_qsv_enc_close | ( | AVCodecContext * | avctx, |
| QSVEncContext * | q ) |
Definition at line 2710 of file qsvenc.c.
Referenced by qsv_enc_close(), qsv_enc_close(), qsv_enc_close(), qsv_enc_close(), qsv_enc_close(), qsv_enc_close(), and qsv_enc_init().
|
static |
Definition at line 50 of file qsvenc.c.
Referenced by print_profile().
|
static |
Definition at line 61 of file qsvenc.c.
Referenced by print_profile().
|
static |
Definition at line 67 of file qsvenc.c.
Referenced by print_profile().
|
static |
Definition at line 77 of file qsvenc.c.
Referenced by print_profile().
|
static |
| mfxU16 rc_mode |
Definition at line 141 of file qsvenc.c.
Referenced by check_rate_control_support(), d3d12va_encode_init_rate_control(), print_ratecontrol(), select_rc_mode(), and vaapi_encode_init_rate_control().
| const char* name |
Definition at line 142 of file qsvenc.c.
Referenced by add_meta(), add_metadata(), add_tracked_method(), add_video_device(), amf_get_field_value2(), amf_get_property_buffer(), amf_init_encoder(), amf_set_property_buffer(), append_postfix(), apply_filter(), asf_read_ext_content(), asf_read_ext_content_desc(), asf_read_marker(), asf_read_marker(), asf_read_metadata(), asf_read_metadata_obj(), asf_read_value(), asf_set_metadata(), asf_store_aspect_ratio(), audio_frame_cksum(), av_alpha_mode_from_name(), av_bsf_get_by_name(), av_bsf_graph_alloc_filter(), av_bsf_graph_create_filter(), av_bsf_graph_get_filter(), av_channel_from_string(), av_channel_layout_describe_bprint(), av_channel_layout_from_string(), av_channel_name_bprint(), av_chroma_location_from_name(), av_color_primaries_from_name(), av_color_range_from_name(), av_color_space_from_name(), av_color_transfer_from_name(), av_dump_format(), av_exif_get_tag_id(), av_frame_side_data_desc(), av_get_pix_fmt(), av_get_sample_fmt(), av_hash_alloc(), av_hwdevice_find_type_by_name(), av_match_list(), av_match_name(), av_opt_eval_q(), av_opt_find(), av_opt_find2(), av_opt_get(), av_opt_get_array(), av_opt_get_array_size(), av_opt_get_chlayout(), av_opt_get_dict_val(), av_opt_get_double(), av_opt_get_image_size(), av_opt_get_int(), av_opt_get_pixel_fmt(), av_opt_get_q(), av_opt_get_sample_fmt(), av_opt_get_video_rate(), av_opt_is_set_to_default_by_name(), av_opt_next(), av_opt_set(), av_opt_set_array(), av_opt_set_bin(), av_opt_set_chlayout(), av_opt_set_dict_val(), av_opt_set_double(), av_opt_set_image_size(), av_opt_set_int(), av_opt_set_pixel_fmt(), av_opt_set_q(), av_opt_set_sample_fmt(), av_opt_set_video_rate(), av_pix_fmt_swap_endianness(), av_spherical_from_name(), av_stereo3d_from_name(), av_stereo3d_primary_eye_from_name(), av_stereo3d_view_from_name(), av_vk_get_optional_device_extensions(), av_vk_get_optional_instance_extensions(), avcodec_descriptor_get_by_name(), avcodec_find_decoder_by_name(), avcodec_find_encoder_by_name(), avfilter_get_by_name(), avfilter_graph_alloc_filter(), avfilter_graph_create_filter(), avfilter_graph_get_filter(), avfilter_graph_segment_create_filters(), avi_read_nikon(), avio_protocol_get_class(), avtext_get_formatter_by_name(), bprint_to_avdict(), cairo_format_from_pix_fmt(), cbs_read_multi_byte(), cbs_vp8_bool_decoder_read_signed(), cbs_vp8_bool_decoder_read_unsigned(), cbs_vp8_read_unsigned_le(), cbs_vp9_read_increment(), cbs_vp9_read_le(), cbs_vp9_read_s(), cbs_vp9_write_increment(), cbs_vp9_write_le(), cbs_vp9_write_s(), cbs_write_multi_byte(), check_add_int16(), check_add_put_clamped(), check_cast(), check_cavs_qpeldsp(), check_crc(), check_dither(), check_err(), check_expand_bit(), check_filter(), check_idct_multiple(), check_inv_trans_adding(), check_linear(), check_list(), check_loop_filter(), check_lut_3d(), check_mspel_pixels(), check_pack(), check_range(), check_read(), check_scalar(), check_scale(), check_simple(), check_sorted_cmds_array(), check_swizzle(), check_unpack(), check_uop(), check_vec4(), check_write(), checkasm_check_h264pred(), checkasm_check_hpeldsp(), checkasm_check_impl_float_ulp(), checkasm_check_key(), checkasm_check_key(), checkasm_check_mpegvideo_unquantize(), checkasm_check_qpeldsp(), checkasm_cpu_info(), checkasm_func_get(), checkasm_report(), checkasm_report(), choose_implementation(), clip_with_log(), color_table_compare(), color_table_compare(), compile_uops_c(), compile_uops_x86(), config_enc_params(), config_output(), configure_input_audio_filter(), configure_input_video_filter(), configure_output_audio_filter(), configure_output_video_filter(), dec_create(), dec_filter_add(), dec_standalone_open(), dec_thread_set_name(), DECL_CHECKASM_CHECK_FUNC(), decode_header(), decode_info_header(), dnn_load_model_onnx(), dump_dictionary(), dump_dictionary(), dump_sidedata(), dvvideo_encode_init(), enc_thread_set_name(), exif_ifd_to_dict(), ff_alsa_get_device_list(), ff_alsa_open(), ff_AMediaCodec_createCodecByName(), ff_AMediaCodecList_getCodecNameByType(), ff_AMediaFormat_getBuffer(), ff_AMediaFormat_getFloat(), ff_AMediaFormat_getInt32(), ff_AMediaFormat_getInt64(), ff_AMediaFormat_getRect(), ff_AMediaFormat_getString(), ff_AMediaFormat_setBuffer(), ff_AMediaFormat_setFloat(), ff_AMediaFormat_setInt32(), ff_AMediaFormat_setInt64(), ff_AMediaFormat_setRect(), ff_AMediaFormat_setString(), ff_amf_get_field_value(), ff_asf_handle_byte_array(), ff_ass_split_dialog(), ff_attributes_dump(), ff_cbs_read_se_golomb(), ff_cbs_read_ue_golomb(), ff_cbs_write_se_golomb(), ff_cbs_write_ue_golomb(), ff_decklink_init_device(), ff_dshow_filter_JoinFilterGraph(), ff_expand_text_function_internal(), ff_guid_str_buf(), ff_jni_exception_get_summary(), ff_jni_init_jfields(), ff_mpeg4_parse_picture_header(), ff_rm_read_mdpr_codecdata(), ff_rtmp_packet_dump(), ff_rtp_handler_find_by_name(), ff_stream_add_bitstream_filter(), ff_sws_op_desc(), ff_sws_uop_lookup(), ff_tadd_doubles_metadata(), ff_tadd_shorts_metadata(), ff_tadd_string_metadata(), ff_thread_setname(), ff_vk_extensions_to_mask(), ff_vk_load_functions(), fg_thread_set_name(), filter_frame(), filter_frame(), find_codec(), find_codec_by_name(), find_font_id(), find_opt(), find_option(), find_scaler(), func_get(), gdigrab_read_header(), generate_entry_args(), generate_entry_struct(), get_format(), get_input_onnx(), get_number(), get_output_dimension(), get_pix_fmt(), get_pix_fmt_internal(), get_sample_fmt(), get_vs_prop_int(), graticule16_column(), graticule16_row(), graticule_column(), graticule_row(), hex_log(), hw_device_default_name(), hw_device_free_all(), hw_device_get_by_name(), hw_device_init_from_string(), hw_device_init_from_type(), idct248_error(), ifilter_bind_fg(), init(), init(), init(), init(), init_out(), insert_trim(), libopus_check_vorbis_layout(), libvorbis_setup(), list_voices(), load_path(), log_type(), main(), main(), main(), mbedtls_gen_x509_cert(), mediacodec_dump_format(), mediacodec_jni_getName(), mediacodec_ndk_getName(), mediaformat_jni_getBuffer(), mediaformat_jni_getFloat(), mediaformat_jni_getInt32(), mediaformat_jni_getInt64(), mediaformat_jni_getString(), mediaformat_jni_setBuffer(), mediaformat_jni_setFloat(), mediaformat_jni_setInt32(), mediaformat_jni_setInt64(), mediaformat_jni_setString(), mediaformat_ndk_getBuffer(), mediaformat_ndk_getFloat(), mediaformat_ndk_getInt32(), mediaformat_ndk_getInt64(), mediaformat_ndk_getRect(), mediaformat_ndk_getString(), mediaformat_ndk_setBuffer(), mediaformat_ndk_setFloat(), mediaformat_ndk_setInt32(), mediaformat_ndk_setInt64(), mediaformat_ndk_setRect(), mediaformat_ndk_setString(), mjpeg_parse_len(), mkv_check_tag_name(), modplug_load_metadata(), mov_add_tref_tag(), mov_add_tref_tag(), mov_find_tref_tag(), mov_find_tref_tag(), mov_text_font_name_cb(), mov_text_font_name_set(), mov_write_custom_metadata(), mov_write_freeform_tag(), mov_write_int8_metadata(), mov_write_raw_metadata_tag(), mov_write_string_metadata(), mov_write_string_tag(), mxf_free_metadataset(), mxf_write_tagged_value(), nvenc_check_device(), oh_decode_create(), oh_encode_create(), onnx_start_inference(), opencl_check_device_extension(), opencl_check_extension(), opencl_check_platform_extension(), opencl_filter_device(), opencl_filter_platform(), opt_codec(), opt_codec(), opt_find(), opt_loglevel(), opt_set_init(), ost_bind_filter(), param_write_hex(), param_write_int(), param_write_string(), parse_audio_var(), parse_cookie(), parse_device_name(), parse_global_var(), parse_link_name(), parse_named_def(), parse_primary(), parse_set_cookie(), parse_time_sequence(), parse_video_var(), pix_fmt_parse(), png_write_iccp(), print_codec(), print_cpu_flags(), print_frame_side_data(), print_help(), print_iamf_param_definition(), print_ops(), print_pkt_side_data(), process_metadata(), pulse_add_detected_device(), pulse_finish_context_operation(), pulse_finish_stream_operation(), put_bitstream_info(), rasm_add_commentf(), rasm_func_begin(), rasm_new_label(), read_extradata(), read_signed(), read_simple_unsigned(), read_sm_data(), read_table(), read_unsigned(), rtmp_send_packet(), run_test(), sdt_cb(), set_codec_from_probe_data(), set_filter_param(), set_format(), set_number(), show_colors(), show_formats_devices(), show_help_bsf(), show_help_codec(), show_help_demuxer(), show_help_muxer(), show_help_protocol(), show_protocols(), spi_OpEntryPoint(), spi_OpExtension(), spi_OpExtInstImport(), spi_OpName(), split_commandline(), srt_font_name_cb(), swri_check_chlayout(), test_device(), test_device_type(), test_motion(), thread_set_name(), thread_set_name(), thread_set_name(), trace_header(), trace_read_log(), usage(), v4l2_get_ext_ctrl(), v4l2_is_v4l_dev(), v4l2_set_ext_ctrl(), vgs_comp_command_spec(), vgs_get_command(), vgs_parse_statement(), vp3_check_loop_filter(), vt_dump_encoder(), win32_thread_setname(), write_chapter(), write_ctoc(), write_signed(), write_simple_unsigned(), write_unsigned(), wtvfile_open2(), and yuv4_read_header().
| const struct { ... } rc_names[] |
Referenced by print_ratecontrol().
| const AVCodecHWConfigInternal* const ff_qsv_enc_hw_configs[] |