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.

  • 相关阅读:
    bzoj1415 NOI2005聪聪和可可
    Tyvj1952 Easy
    poj2096 Collecting Bugs
    COGS 1489玩纸牌
    COGS1487 麻球繁衍
    cf 261B.Maxim and Restaurant
    cf 223B.Two Strings
    cf 609E.Minimum spanning tree for each edge
    cf 187B.AlgoRace
    cf 760B.Frodo and pillows
  • 原文地址:https://www.cnblogs.com/mlj318/p/2227536.html
Copyright © 2011-2022 走看看