Changeset 502 in SHVCSoftware for branches/SHM-4.1-dev/source/Lib/TLibEncoder
- Timestamp:
- 20 Nov 2013, 02:32:16 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r494 r502 1071 1071 Void TEncCavlc::codeRepFormat ( RepFormat *repFormat ) 1072 1072 { 1073 #if REPN_FORMAT_CONTROL_FLAG 1074 WRITE_FLAG ( repFormat->getChromaAndBitDepthVpsPresentFlag(), "chroma_and_bit_depth_vps_presenet_flag"); 1075 1076 WRITE_CODE ( repFormat->getPicWidthVpsInLumaSamples (), 16, "pic_width_in_luma_samples" ); 1077 WRITE_CODE ( repFormat->getPicHeightVpsInLumaSamples(), 16, "pic_height_in_luma_samples" ); 1078 1079 if ( repFormat->getChromaAndBitDepthVpsPresentFlag() ) 1080 { 1081 WRITE_CODE( repFormat->getChromaFormatVpsIdc(), 2, "chroma_format_idc" ); 1082 1083 if( repFormat->getChromaFormatVpsIdc() == 3 ) 1084 { 1085 WRITE_FLAG( repFormat->getSeparateColourPlaneVpsFlag(), "separate_colour_plane_flag"); 1086 } 1087 1088 assert( repFormat->getBitDepthVpsLuma() >= 8 ); 1089 assert( repFormat->getBitDepthVpsChroma() >= 8 ); 1090 WRITE_CODE( repFormat->getBitDepthVpsLuma() - 8, 4, "bit_depth_luma_minus8" ); 1091 WRITE_CODE( repFormat->getBitDepthVpsChroma() - 8, 4, "bit_depth_chroma_minus8" ); 1092 } 1093 #else 1073 1094 WRITE_CODE( repFormat->getChromaFormatVpsIdc(), 2, "chroma_format_idc" ); 1074 1095 … … 1084 1105 assert( repFormat->getBitDepthVpsChroma() >= 8 ); 1085 1106 WRITE_CODE( repFormat->getBitDepthVpsLuma() - 8, 4, "bit_depth_luma_minus8" ); 1086 WRITE_CODE( repFormat->getBitDepthVpsChroma() - 8, 4, "bit_depth_chroma_minus8" ); 1107 WRITE_CODE( repFormat->getBitDepthVpsChroma() - 8, 4, "bit_depth_chroma_minus8" ); 1108 #endif 1087 1109 1088 1110 }
Note: See TracChangeset for help on using the changeset viewer.