⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 umc_h264_enc_info.cpp

📁 audio-video-codecs.rar语音编解码器
💻 CPP
字号:
//
//               INTEL CORPORATION PROPRIETARY INFORMATION
//  This software is supplied under the terms of a license agreement or
//  nondisclosure agreement with Intel Corporation and may not be copied
//  or disclosed except in accordance with the terms of that agreement.
//        Copyright (c) 2004 - 2007 Intel Corporation. All Rights Reserved.
//

#include "umc_h264_video_encoder.h"
#include "umc_h264_pub.h"

using namespace UMC_H264_ENCODER;
namespace UMC
{
    H264EncoderParams::H264EncoderParams()
    {
        key_frame_controls.method    = H264_KFCM_INTERVAL;
        key_frame_controls.interval  = 100; // for safety
        key_frame_controls.idr_interval = 0;
        B_frame_rate = 0;
        treat_B_as_reference = 0;
        num_ref_frames = 1;
        num_ref_to_start_code_B_slice = 1;
        num_slices                  = 1;    // 1 Slice
        profile_idc = H264_MAIN_PROFILE;
        level_idc = 0;  //Autoselect
        chroma_format_idc = 1; // YUV 420.
        bit_depth_luma = 8;
        bit_depth_chroma = 8;
        aux_format_idc = 0;
        bit_depth_aux = 8;
        alpha_incr_flag = 0;
        alpha_opaque_value = 0;
        alpha_transparent_value = 0;
        rate_controls.method = H264_RCM_VBR;
        rate_controls.quantI = 20;
        rate_controls.quantP = 20;
        rate_controls.quantB = 20;
        info.bitrate = 2222222;
        mv_search_method = 2;
        me_split_mode = 0;
        me_search_x = 8;
        me_search_y = 8;
        use_weighted_pred = 0;
        use_weighted_bipred = 0;
        use_implicit_weighted_bipred = 0;
        direct_pred_mode = 0;
        use_direct_inference = 1;
        deblocking_filter_idc          = 0;    // 0 is "on". 1 - "off"
        deblocking_filter_alpha        = 2;
        deblocking_filter_beta         = 2;
        transform_8x8_mode_flag = 0;
        use_default_scaling_matrix = 0;
        qpprime_y_zero_transform_bypass_flag =0;
        entropy_coding_mode = 1;
        cabac_init_idc = 1;
        coding_type = 0;
        m_do_weak_forced_key_frames = false;
        me_use_subpixel_search = 1;
        write_access_unit_delimiters = 0;
        use_transform_for_intra_decision = true;
        numFramesToEncode = 0;
        m_QualitySpeed = 0;
#if defined H264_LOG
        m_log = 0;
        *m_log_file = 0;
#endif
    }

} //namespace UMC

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -