Changeset 1213 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 8 Jul 2015, 23:18:57 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibEncoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1212 r1213 2470 2470 Void TEncCavlc::xCode3DAsymLUT( TCom3DAsymLUT * pc3DAsymLUT ) 2471 2471 { 2472 #if R0150_CGS_SIGNAL_CONSTRAINTS2473 2472 UInt uiNumRefLayers = ( UInt )pc3DAsymLUT->getRefLayerNum(); 2474 2473 WRITE_UVLC( uiNumRefLayers - 1 , "num_cm_ref_layers_minus1" ); … … 2477 2476 WRITE_CODE( pc3DAsymLUT->getRefLayerId( i ) , 6 , "cm_ref_layer_id" ); 2478 2477 } 2479 #endif 2478 2480 2479 assert( pc3DAsymLUT->getCurOctantDepth() < 4 ); 2481 2480 WRITE_CODE( pc3DAsymLUT->getCurOctantDepth() , 2 , "cm_octant_depth" ); … … 2483 2482 WRITE_CODE( pc3DAsymLUT->getCurYPartNumLog2() , 2 , "cm_y_part_num_log2" ); 2484 2483 assert( pc3DAsymLUT->getInputBitDepthY() < 16 ); 2485 #if R0150_CGS_SIGNAL_CONSTRAINTS 2484 2486 2485 WRITE_UVLC( pc3DAsymLUT->getInputBitDepthY() - 8 , "cm_input_luma_bit_depth_minus8" ); 2487 2486 WRITE_UVLC( pc3DAsymLUT->getInputBitDepthC() - 8 , "cm_input_chroma_bit_depth_minus8" ); 2488 2487 WRITE_UVLC( pc3DAsymLUT->getOutputBitDepthY() - 8 , "cm_output_luma_bit_depth_minus8" ); 2489 2488 WRITE_UVLC( pc3DAsymLUT->getOutputBitDepthC() - 8 , "cm_output_chroma_bit_depth_minus8" ); 2490 #else 2491 WRITE_CODE( pc3DAsymLUT->getInputBitDepthY() - 8 , 3 , "cm_input_bit_depth_minus8" ); 2492 WRITE_SVLC(pc3DAsymLUT->getInputBitDepthC()-pc3DAsymLUT->getInputBitDepthY(), "cm_input_bit_depth_chroma delta"); 2493 assert( pc3DAsymLUT->getOutputBitDepthY() < 16 ); 2494 WRITE_CODE( pc3DAsymLUT->getOutputBitDepthY() - 8 , 3 , "cm_output_bit_depth_minus8" ); 2495 WRITE_SVLC(pc3DAsymLUT->getOutputBitDepthC()-pc3DAsymLUT->getOutputBitDepthY(), "cm_output_bit_depth_chroma_delta"); 2496 #endif 2489 2497 2490 assert( pc3DAsymLUT->getResQuantBit() < 4 ); 2498 2491 WRITE_CODE( pc3DAsymLUT->getResQuantBit() , 2 , "cm_res_quant_bit" ); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1212 r1213 1398 1398 if( pcSlice->getPPS()->getCGSFlag() ) 1399 1399 { 1400 #if R0150_CGS_SIGNAL_CONSTRAINTS1401 1400 // all reference layers are currently taken as CGS reference layers 1402 1401 m_Enc3DAsymLUTPPS.addRefLayerId( pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc) ); 1403 1402 m_Enc3DAsymLUTPicUpdate.addRefLayerId( pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc) ); 1404 #endif 1405 if( g_posScalingFactor[refLayerIdc][0] < (1<<16) || g_posScalingFactor[refLayerIdc][1] < (1<<16)) //if(pcPic->isSpatialEnhLayer(refLayerIdc))1403 1404 if( g_posScalingFactor[refLayerIdc][0] < (1<<16) || g_posScalingFactor[refLayerIdc][1] < (1<<16) ) //if(pcPic->isSpatialEnhLayer(refLayerIdc)) 1406 1405 { 1407 //downsampling ;1406 //downsampling 1408 1407 downScalePic(pcPic->getPicYuvOrg(), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvOrg()); 1409 //pcSlice->getBaseColPic(refLayerIdc)->getPicYuvOrg()->dump("ds.yuv", true, true);1408 1410 1409 m_Enc3DAsymLUTPPS.setDsOrigPic(pcSlice->getBaseColPic(refLayerIdc)->getPicYuvOrg()); 1411 1410 m_Enc3DAsymLUTPicUpdate.setDsOrigPic(pcSlice->getBaseColPic(refLayerIdc)->getPicYuvOrg());
Note: See TracChangeset for help on using the changeset viewer.