zoukankan      html  css  js  c++  java
  • HEVC bit depth increasment

    /// encoder configuration class

    class TAppEncCfg

    {

    // coding tools (bit-depth)

    UInt m_uiInputBitDepth; ///< bit-depth of input file

    UInt m_uiOutputBitDepth; ///< bit-depth of output file

    UInt m_uiInternalBitDepth; ///< Internal bit-depth (BitDepth+BitIncrement)

    }

       

    bool TVideoIOYuv::read ( TComPicYuv*  pPicYuv, Int aiPad[2] )  Read one Y'CbCr frame 中,通过scalePlane函数将读入的像素值左移 BitIncrement 位转换到 InternalBitDepth

    在重建及解码时则调用bool TVideoIOYuv::write( TComPicYuv* pPicYuv, Int aiPad[2] )函数,No bit-depth conversion is performed,pcPicYuv is assumed to be at TVideoIO::m_fileBitdepth depthm_fileBitdepth  OutputBitDepth指定。InternalBitDepth OutputBitDepth不一样时也会掉用scalePlane 转换(右移BitIncrement )。

       

    解码时,cfg文件中-d指定重建的depth,写出时再将InternalBitDepth转为OutputBitDepth.

    编码时,默认的cfg文件中,没有指定OutputBitDepth的值,OutputBitDepth默认与InternalBitDepth相同,需要自己加上以指定重建图像的bitdepth.

  • 相关阅读:
    JS&和&&-T
    PHP Xdebug
    PHP非对称加密
    JavaScript:弹框输出
    JavaScript:函数闭包
    JavaScript:函数
    JavaScript:正则表达式 & 日期对象
    JavaScript: Math数学对象 & Number对象
    JavaScript: 数组
    JavaScript: 常用字符串API
  • 原文地址:https://www.cnblogs.com/mlj318/p/2227536.html
Copyright © 2011-2022 走看看