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

📄 umc_h264_enc_info.cpp

📁 这是在PCA下的基于IPP库示例代码例子,在网上下了IPP的库之后,设置相关参数就可以编译该代码.
💻 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 - 2005 Intel Corporation. All Rights Reserved.//#include "umc_h264_video_encoder.h"namespace UMC{    H264EncoderParams::H264EncoderParams()    {#ifdef AdvMEAlgs        me_alg_num =  3;#endif        me_split_8x8s     = 0;        me_search_x = me_search_y = 4;        use_implicit_weighted_bipred = 0;        slice_parms.disable_deblocking_filter_idc = 1;        slice_parms.slice_alpha_c0_offset = -51;        slice_parms.slice_beta_offset = -51;        Num_Slices                  = 1;    // 1 Slice        // Initialize our base class and B frame rate controls.        dimensions.width             = 0;        dimensions.height            = 0;        rate_controls.method         = H264_RCM_QUANT;        rate_controls.quant = (H264_QP_MAX + H264_QP_MIN)*2 /4;        key_frame_controls.method    = H264_KFCM_AUTO;        key_frame_controls.interval  = 0; // for safety        key_frame_controls.rate_controls.method = H264_RCM_QUANT;        key_frame_controls.rate_controls.quant = (H264_QP_MAX + H264_QP_MIN)*1 /4;        // for safety, quality shouldn't be accessed for the AUTO method        B_frame_rate_controls.method   = H264_RCM_QUANT;        B_frame_rate_controls.quant = (H264_QP_MAX + H264_QP_MIN)*3 /4;        pixel_aspect_ratio              = PARC_CIF;        B_Frame_Rate                    = 0;        //    m_is_licensed_for_scalability   = false;        m_do_weak_forced_key_frames     = false;        m_do_suppress_B_for_this_TR     = false;        Deblocking_Filter_Mode          = 1;    // 0 is "on". 1 - "off"        Deblocking_Filter_Alpha         = 0;        Deblocking_Filter_Beta          = 0;        //  entropy_coding_mode             = 0;        //  cabac_init_idc                  = 0;    };} //namespace UMC

⌨️ 快捷键说明

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