Changeset 1567 in SHVCSoftware for branches/SHM-dev/source/App
- Timestamp:
- 20 Jun 2016, 18:05:58 (9 years ago)
- Location:
- branches/SHM-dev/source/App/TAppEncoder
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r1563 r1567 799 799 800 800 #if PER_LAYER_LOSSLESS 801 Bool* cfg_TransquantBypassEnable Flag[MAX_LAYERS];801 Bool* cfg_TransquantBypassEnabledFlag[MAX_LAYERS]; 802 802 Bool* cfg_CUTransquantBypassFlagForce[MAX_LAYERS]; 803 803 CostMode* cfg_costMode[MAX_LAYERS]; … … 910 910 911 911 #if PER_LAYER_LOSSLESS 912 cfg_TransquantBypassEnable Flag[layer] = &m_apcLayerCfg[layer]->m_TransquantBypassEnableFlag;912 cfg_TransquantBypassEnabledFlag[layer] = &m_apcLayerCfg[layer]->m_TransquantBypassEnabledFlag; 913 913 cfg_CUTransquantBypassFlagForce[layer] = &m_apcLayerCfg[layer]->m_CUTransquantBypassFlagForce; 914 914 cfg_costMode[layer] = &m_apcLayerCfg[layer]->m_costMode; … … 1461 1461 1462 1462 #if PER_LAYER_LOSSLESS 1463 ("TransquantBypassEnableFlag%d", cfg_TransquantBypassEnableFlag, false, m_numLayers, "transquant_bypass_enable_flag indicator in PPS") 1464 ("CUTransquantBypassFlagForce%d", cfg_CUTransquantBypassFlagForce, false, m_numLayers, "Force transquant bypass mode, when transquant_bypass_enable_flag is enabled") 1465 ("CostMode%d", cfg_costMode, COST_STANDARD_LOSSY, m_numLayers, "Use alternative cost functions: choose between 'lossy', 'sequence_level_lossless', 'lossless' (which forces QP to " MACRO_TO_STRING(LOSSLESS_AND_MIXED_LOSSLESS_RD_COST_TEST_QP) ") and 'mixed_lossless_lossy' (which used QP'=" MACRO_TO_STRING(LOSSLESS_AND_MIXED_LOSSLESS_RD_COST_TEST_QP_PRIME) " for pre-estimates of transquant-bypass blocks).") 1463 ("TransquantBypassEnable%d", cfg_TransquantBypassEnabledFlag, false, m_numLayers, "transquant_bypass_enabled_flag indicator in PPS") 1464 ("TransquantBypassEnableFlag%d", cfg_TransquantBypassEnabledFlag, false, m_numLayers, "deprecated alias for TransquantBypassEnable") 1465 ("CUTransquantBypassFlagForce%d", cfg_CUTransquantBypassFlagForce, false, m_numLayers, "Force transquant bypass mode, when transquant_bypass_enabled_flag is enabled") 1466 ("CostMode%d", cfg_costMode, COST_STANDARD_LOSSY, m_numLayers, "Use alternative cost functions: choose between 'lossy', 'sequence_level_lossless', 'lossless' (which forces QP to " MACRO_TO_STRING(LOSSLESS_AND_MIXED_LOSSLESS_RD_COST_TEST_QP) ") and 'mixed_lossless_lossy' (which used QP'=" MACRO_TO_STRING(LOSSLESS_AND_MIXED_LOSSLESS_RD_COST_TEST_QP_PRIME) " for pre-estimates of transquant-bypass blocks).") 1466 1467 #else 1467 ("TransquantBypassEnableFlag", m_TransquantBypassEnableFlag, false, "transquant_bypass_enable_flag indicator in PPS") 1468 ("CUTransquantBypassFlagForce", m_CUTransquantBypassFlagForce, false, "Force transquant bypass mode, when transquant_bypass_enable_flag is enabled") 1468 ("TransquantBypassEnable", m_TransquantBypassEnabledFlag, false, "transquant_bypass_enabled_flag indicator in PPS") 1469 ("TransquantBypassEnableFlag", m_TransquantBypassEnabledFlag, false, "deprecated alias for TransquantBypassEnable") 1470 ("CUTransquantBypassFlagForce", m_CUTransquantBypassFlagForce, false, "Force transquant bypass mode, when transquant_bypass_enabled_flag is enabled") 1469 1471 ("CostMode", m_costMode, COST_STANDARD_LOSSY, "Use alternative cost functions: choose between 'lossy', 'sequence_level_lossless', 'lossless' (which forces QP to " MACRO_TO_STRING(LOSSLESS_AND_MIXED_LOSSLESS_RD_COST_TEST_QP) ") and 'mixed_lossless_lossy' (which used QP'=" MACRO_TO_STRING(LOSSLESS_AND_MIXED_LOSSLESS_RD_COST_TEST_QP_PRIME) " for pre-estimates of transquant-bypass blocks).") 1470 1472 #endif … … 4076 4078 4077 4079 #if PER_LAYER_LOSSLESS 4078 xConfirmPara(!m_apcLayerCfg[layerIdx]->m_TransquantBypassEnable Flag && m_apcLayerCfg[layerIdx]->m_CUTransquantBypassFlagForce, "CUTransquantBypassFlagForce cannot be 1 when TransquantBypassEnableFlag is 0");4080 xConfirmPara(!m_apcLayerCfg[layerIdx]->m_TransquantBypassEnabledFlag && m_apcLayerCfg[layerIdx]->m_CUTransquantBypassFlagForce, "CUTransquantBypassFlagForce cannot be 1 when TransquantBypassEnableFlag is 0"); 4079 4081 #else 4080 xConfirmPara(!m_TransquantBypassEnable Flag && m_CUTransquantBypassFlagForce, "CUTransquantBypassFlagForce cannot be 1 when TransquantBypassEnableFlag is 0");4082 xConfirmPara(!m_TransquantBypassEnabledFlag && m_CUTransquantBypassFlagForce, "CUTransquantBypassFlagForce cannot be 1 when TransquantBypassEnableFlag is 0"); 4081 4083 #endif 4082 4084 … … 4606 4608 4607 4609 #if PER_LAYER_LOSSLESS 4608 if (m_apcLayerCfg[layer]->m_TransquantBypassEnable Flag && m_apcLayerCfg[layer]->m_CUTransquantBypassFlagForce)4610 if (m_apcLayerCfg[layer]->m_TransquantBypassEnabledFlag && m_apcLayerCfg[layer]->m_CUTransquantBypassFlagForce) 4609 4611 { 4610 4612 printf("TransQuantBypassEnabled: =1"); … … 4612 4614 else 4613 4615 { 4614 printf("TransQuantBypassEnabled:%d ", (m_apcLayerCfg[layer]->m_TransquantBypassEnable Flag)? 1:0 );4616 printf("TransQuantBypassEnabled:%d ", (m_apcLayerCfg[layer]->m_TransquantBypassEnabledFlag)? 1:0 ); 4615 4617 } 4616 4618 #else 4617 if (m_TransquantBypassEnable Flag && m_CUTransquantBypassFlagForce)4619 if (m_TransquantBypassEnabledFlag && m_CUTransquantBypassFlagForce) 4618 4620 { 4619 4621 printf("TransQuantBypassEnabled: =1"); … … 4621 4623 else 4622 4624 { 4623 printf("TransQuantBypassEnabled:%d ", (m_TransquantBypassEnable Flag)? 1:0 );4625 printf("TransQuantBypassEnabled:%d ", (m_TransquantBypassEnabledFlag)? 1:0 ); 4624 4626 } 4625 4627 #endif -
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h
r1549 r1567 485 485 486 486 #if !PER_LAYER_LOSSLESS 487 Bool m_TransquantBypassEnable Flag; ///< transquant_bypass_enable_flag setting in PPS.488 Bool m_CUTransquantBypassFlagForce; ///< if transquant_bypass_enable _flag, then, if true, all CU transquant bypass flags will be set to true.487 Bool m_TransquantBypassEnabledFlag; ///< transquant_bypass_enabled_flag setting in PPS. 488 Bool m_CUTransquantBypassFlagForce; ///< if transquant_bypass_enabled_flag, then, if true, all CU transquant bypass flags will be set to true. 489 489 CostMode m_costMode; ///< Cost mode to use 490 490 #endif -
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.h
r1534 r1567 105 105 106 106 #if PER_LAYER_LOSSLESS 107 Bool m_TransquantBypassEnable Flag;108 Bool m_CUTransquantBypassFlagForce; 107 Bool m_TransquantBypassEnabledFlag; ///< transquant_bypass_enable_flag setting in PPS. 108 Bool m_CUTransquantBypassFlagForce; ///< if transquant_bypass_enable_flag, then, if true, all CU transquant bypass flags will be set to true. 109 109 CostMode m_costMode; 110 110 #endif -
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1554 r1567 538 538 string& m_colourRemapSEIFileRoot = m_apcLayerCfg[layer]->m_colourRemapSEIFileRoot; 539 539 #if PER_LAYER_LOSSLESS 540 Bool& m_TransquantBypassEnable Flag = m_apcLayerCfg[layer]->m_TransquantBypassEnableFlag;540 Bool& m_TransquantBypassEnabledFlag = m_apcLayerCfg[layer]->m_TransquantBypassEnabledFlag; 541 541 Bool& m_CUTransquantBypassFlagForce = m_apcLayerCfg[layer]->m_CUTransquantBypassFlagForce; 542 542 CostMode& m_costMode = m_apcLayerCfg[layer]->m_costMode; … … 845 845 m_cTEncTop.setInitialCpbFullness ( m_RCInitialCpbFullness ); 846 846 #endif 847 m_cTEncTop.setTransquantBypassEnable Flag ( m_TransquantBypassEnableFlag );847 m_cTEncTop.setTransquantBypassEnabledFlag ( m_TransquantBypassEnabledFlag ); 848 848 m_cTEncTop.setCUTransquantBypassFlagForceValue ( m_CUTransquantBypassFlagForce ); 849 849 m_cTEncTop.setCostMode ( m_costMode );
Note: See TracChangeset for help on using the changeset viewer.