Ticket #36: Fix_Ticket36.patch

File Fix_Ticket36.patch, 2.2 KB (added by lizhang, 7 years ago)
  • Lib/TLibCommon/ContextTables.h

     
    259259#if JVET_B0039_INC_NUM_QP_PROB
    260260#define NUM_QP_PROB                  JVET_B0039_INC_NUM_QP_PROB                //could be set to N (N>5, depending on the allowed QPs in a coded sequence)
    261261#else
     262#if FIX_TICKET36
     263#define NUM_QP_PROB                  52                ///< Number of total allowed positive QP values, aligned with HEVC. may need to change if more QP values are allowed
     264#else
    262265#define NUM_QP_PROB                  5                //could be set to N (N>5, depending on the allowed QPs in a coded sequence)
    263266#endif
     267#endif
    264268#define NUM_CTX_PBSLICE              MAX_NUM_CTX_MOD //could be set to the exact number of used contexts later
    265269#endif
    266270
  • Lib/TLibCommon/TypeDef.h

     
    305305#else
    306306#define JVET_B0039_QP_FIX                                 1  ///< Recalcualtes QP to align with a HM lambda (same relation as for all intra coding is used)
    307307#endif
     308#define FIX_TICKET36                                      1  ///< Fix of ticket #36 (number of possible QP values exceeds the defined value)
     309#if FIX_TICKET36
     310#define JVET_B0039_INC_NUM_QP_PROB                        52 ///< Number of total allowed positive QP values, aligned with HEVC. may need to change if more QP values are allowed
     311#else
    308312#define JVET_B0039_INC_NUM_QP_PROB                        7  ///< Number of context is increased when more QPs are used
    309 
     313#endif
    310314#define FIX_TICKET30                                      1  ///< Fix of ticket #30 (Use of uninitialized Cabac coder for Intra 128x128 blocks)
    311315#define FIX_TICKET33                                      1  ///< Fix of ticket #33 (Block level IC flag is set based on slice level IC flag)
    312316#define FIX_TICKET34                                      1  ///< Fix of ticket #34 (Intra-fast encoder-side decisions based on possibly incorrect obmc pred buffer)