Changeset 1313 in 3DVCSoftware for trunk/source/App/TAppDecoder/TAppDecCfg.h


Ignore:
Timestamp:
13 Aug 2015, 17:38:13 (9 years ago)
Author:
tech
Message:

Merged 14.1-update-dev1@1312.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/App/TAppDecoder/TAppDecCfg.h

    r1179 r1313  
    22 * License, included below. This software may be subject to other third party
    33 * and contributor rights, including patent rights, and no such rights are
    4  * granted under this license. 
     4 * granted under this license.
    55 *
    6 * Copyright (c) 2010-2015, ITU/ISO/IEC
     6 * Copyright (c) 2010-2015, ITU/ISO/IEC
    77 * All rights reserved.
    88 *
     
    4545#include "TLibCommon/CommonDef.h"
    4646#include <vector>
     47
    4748//! \ingroup TAppDecoder
    4849//! \{
     
    5657{
    5758protected:
    58   Char*         m_pchBitstreamFile;                   ///< input bitstream file name
    59 #if H_MV
    60   Int           m_targetOptLayerSetIdx;               ///< target output layer set index
    61   Int           m_maxLayerId;                         ///< maximum nuh_layer_id decoded
    62   std::vector<Char*> m_pchReconFiles;                 ///< array of output reconstruction file name create from output reconstruction file name
     59  Char*         m_pchBitstreamFile;                     ///< input bitstream file name
     60#if NH_MV
     61  Int           m_targetOptLayerSetIdx;                 ///< target output layer set index
     62  Int           m_maxLayerId;                           ///< maximum nuh_layer_id decoded
     63  std::vector<Char*> m_pchReconFiles;                   ///< array of output reconstruction file name create from output reconstruction file name
    6364#endif
    64   Char*         m_pchReconFile;                       ///< output reconstruction file name
    65 #if H_3D
    66   Char*         m_pchScaleOffsetFile;                 ///< output coded scale and offset parameters
     65  Char*         m_pchReconFile;                         ///< output reconstruction file name
     66#if NH_3D
     67  Char*         m_pchScaleOffsetFile;                   ///< output coded scale and offset parameters
     68  Bool          m_depth420OutputFlag;                   ///< output depth layers in 4:2:0
    6769#endif
    68   Int           m_iSkipFrame;                         ///< counter for frames prior to the random access point to skip
    69   Int           m_outputBitDepthY;                    ///< bit depth used for writing output (luma)
    70   Int           m_outputBitDepthC;                    ///< bit depth used for writing output (chroma)t
     70  Int           m_iSkipFrame;                           ///< counter for frames prior to the random access point to skip
     71  Int           m_outputBitDepth[MAX_NUM_CHANNEL_TYPE]; ///< bit depth used for writing output
     72  InputColourSpaceConversion m_outputColourSpaceConvert;
    7173
    7274  Int           m_iMaxTemporalLayer;                  ///< maximum temporal layer to be decoded
    7375  Int           m_decodedPictureHashSEIEnabled;       ///< Checksum(3)/CRC(2)/MD5(1)/disable(0) acting on decoded picture hash SEI message
     76  Bool          m_decodedNoDisplaySEIEnabled;         ///< Enable(true)/disable(false) writing only pictures that get displayed based on the no display SEI message
     77  std::vector<Int> m_targetDecLayerIdSet;             ///< set of LayerIds to be included in the sub-bitstream extraction process.
     78#if NH_MV
     79  Bool          m_targetDecLayerIdSetFileEmpty;       ///< indication if target layers are given by file
     80#endif
    7481
    75   std::vector<Int> m_targetDecLayerIdSet;             ///< set of LayerIds to be included in the sub-bitstream extraction process.
    76 #if H_MV
    77   Bool          m_targetDecLayerIdSetFileEmpty;      ///< indication if target layers are given by file
     82  Int           m_respectDefDispWindow;               ///< Only output content inside the default display window
     83#if O0043_BEST_EFFORT_DECODING
     84  UInt          m_forceDecodeBitDepth;                ///< if non-zero, force the bit depth at the decoder (best effort decoding)
    7885#endif
    79   Int           m_respectDefDispWindow;               ///< Only output content inside the default display window
    80 
    81 #if H_MV
     86  std::string   m_outputDecodedSEIMessagesFilename;   ///< filename to output decoded SEI messages to. If '-', then use stdout. If empty, do not output details.
     87  Bool          m_bClipOutputVideoToRec709Range;      ///< If true, clip the output video to the Rec 709 range on saving.
     88#if NH_MV
    8289  Bool          m_outputVpsInfo;                     ///< Output VPS information
    8390  Void xAppendToFileNameEnd( Char* pchInputFileName, const Char* pchStringToAppend, Char*& rpchOutputFileName); ///< create filenames
    8491#endif
     92
    8593public:
    8694  TAppDecCfg()
     
    8896  , m_pchReconFile(NULL)
    8997  , m_iSkipFrame(0)
    90   , m_outputBitDepthY(0)
    91   , m_outputBitDepthC(0)
     98  , m_outputColourSpaceConvert(IPCOLOURSPACE_UNCHANGED)
    9299  , m_iMaxTemporalLayer(-1)
    93100  , m_decodedPictureHashSEIEnabled(0)
    94 #if H_MV
     101  , m_decodedNoDisplaySEIEnabled(false)
     102#if NH_MV
    95103  , m_targetDecLayerIdSetFileEmpty(true)
    96104#endif
    97105  , m_respectDefDispWindow(0)
    98   {}
     106#if O0043_BEST_EFFORT_DECODING
     107  , m_forceDecodeBitDepth(0)
     108#endif
     109  {
     110    for (UInt channelTypeIndex = 0; channelTypeIndex < MAX_NUM_CHANNEL_TYPE; channelTypeIndex++)
     111    {
     112      m_outputBitDepth[channelTypeIndex] = 0;
     113    }
     114  }
     115
    99116  virtual ~TAppDecCfg() {}
    100  
     117
    101118  Bool  parseCfg        ( Int argc, Char* argv[] );   ///< initialize option class from configuration
    102119};
Note: See TracChangeset for help on using the changeset viewer.