Changeset 659 in SHVCSoftware for branches/SHM-6-dev/source/Lib/TLibEncoder
- Timestamp:
- 9 Apr 2014, 21:42:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r653 r659 1238 1238 #endif 1239 1239 #if REPN_FORMAT_IN_VPS 1240 Void TEncCavlc::codeRepFormat 1240 Void TEncCavlc::codeRepFormat( RepFormat *repFormat ) 1241 1241 { 1242 1242 #if REPN_FORMAT_CONTROL_FLAG 1243 WRITE_FLAG ( repFormat->getChromaAndBitDepthVpsPresentFlag(), "chroma_and_bit_depth_vps_presenet_flag"); 1244 1245 WRITE_CODE ( repFormat->getPicWidthVpsInLumaSamples (), 16, "pic_width_in_luma_samples" ); 1246 WRITE_CODE ( repFormat->getPicHeightVpsInLumaSamples(), 16, "pic_height_in_luma_samples" ); 1247 1248 if ( repFormat->getChromaAndBitDepthVpsPresentFlag() ) 1249 { 1250 WRITE_CODE( repFormat->getChromaFormatVpsIdc(), 2, "chroma_format_idc" ); 1251 1252 if( repFormat->getChromaFormatVpsIdc() == 3 ) 1253 { 1254 WRITE_FLAG( repFormat->getSeparateColourPlaneVpsFlag(), "separate_colour_plane_flag"); 1255 } 1256 1257 assert( repFormat->getBitDepthVpsLuma() >= 8 ); 1258 assert( repFormat->getBitDepthVpsChroma() >= 8 ); 1259 WRITE_CODE( repFormat->getBitDepthVpsLuma() - 8, 4, "bit_depth_luma_minus8" ); 1260 WRITE_CODE( repFormat->getBitDepthVpsChroma() - 8, 4, "bit_depth_chroma_minus8" ); 1261 } 1243 WRITE_CODE( repFormat->getPicWidthVpsInLumaSamples (), 16, "pic_width_vps_in_luma_samples" ); 1244 WRITE_CODE( repFormat->getPicHeightVpsInLumaSamples(), 16, "pic_height_vps_in_luma_samples" ); 1245 WRITE_FLAG( repFormat->getChromaAndBitDepthVpsPresentFlag(), "chroma_and_bit_depth_vps_present_flag" ); 1246 1247 if( repFormat->getChromaAndBitDepthVpsPresentFlag() ) 1248 { 1249 WRITE_CODE( repFormat->getChromaFormatVpsIdc(), 2, "chroma_format_vps_idc" ); 1250 1251 if( repFormat->getChromaFormatVpsIdc() == 3 ) 1252 { 1253 WRITE_FLAG( repFormat->getSeparateColourPlaneVpsFlag(), "separate_colour_plane_vps_flag" ); 1254 } 1255 1256 assert( repFormat->getBitDepthVpsLuma() >= 8 ); 1257 assert( repFormat->getBitDepthVpsChroma() >= 8 ); 1258 WRITE_CODE( repFormat->getBitDepthVpsLuma() - 8, 4, "bit_depth_vps_luma_minus8" ); 1259 WRITE_CODE( repFormat->getBitDepthVpsChroma() - 8, 4, "bit_depth_vps_chroma_minus8" ); 1260 } 1262 1261 #else 1263 1262 WRITE_CODE( repFormat->getChromaFormatVpsIdc(), 2, "chroma_format_idc" ); … … 1275 1274 WRITE_CODE( repFormat->getBitDepthVpsLuma() - 8, 4, "bit_depth_luma_minus8" ); 1276 1275 WRITE_CODE( repFormat->getBitDepthVpsChroma() - 8, 4, "bit_depth_chroma_minus8" ); 1277 #endif 1278 1276 #endif 1279 1277 } 1280 1278 #endif
Note: See TracChangeset for help on using the changeset viewer.