Changeset 506 in SHVCSoftware for branches/SHM-4.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
- Timestamp:
- 22 Nov 2013, 00:13:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r502 r506 471 471 WRITE_FLAG( pcSPS->getUpdateRepFormatFlag(), "update_rep_format_flag" ); 472 472 } 473 #if O0096_REP_FORMAT_INDEX 474 if( pcSPS->getLayerId() == 0 ) 475 #else 473 476 if( pcSPS->getLayerId() == 0 || pcSPS->getUpdateRepFormatFlag() ) 477 #endif 474 478 { 475 479 #endif … … 486 490 #if REPN_FORMAT_IN_VPS 487 491 } 492 #if O0096_REP_FORMAT_INDEX 493 else if (pcSPS->getUpdateRepFormatFlag()) 494 { 495 WRITE_CODE( pcSPS->getUpdateRepFormatIndex(), 8, "update_rep_format_index"); 496 } 497 #endif 488 498 #endif 489 499 Window conf = pcSPS->getConformanceWindow(); … … 499 509 500 510 #if REPN_FORMAT_IN_VPS 511 #if O0096_REP_FORMAT_INDEX 512 if( pcSPS->getLayerId() == 0 ) 513 #else 501 514 if( pcSPS->getLayerId() == 0 || pcSPS->getUpdateRepFormatFlag() ) 515 #endif 502 516 { 503 517 assert( pcSPS->getBitDepthY() >= 8 ); … … 987 1001 if( vps->getRepFormatIdxPresentFlag() ) 988 1002 { 1003 #if O0096_REP_FORMAT_INDEX 1004 WRITE_CODE( vps->getVpsNumRepFormats() - 1, 8, "vps_num_rep_formats_minus1" ); 1005 #else 989 1006 WRITE_CODE( vps->getVpsNumRepFormats() - 1, 4, "vps_num_rep_formats_minus1" ); 1007 #endif 990 1008 } 991 1009 for(i = 0; i < vps->getVpsNumRepFormats(); i++) … … 1001 1019 if( vps->getVpsNumRepFormats() > 1 ) 1002 1020 { 1021 #if O0096_REP_FORMAT_INDEX 1022 WRITE_CODE( vps->getVpsRepFormatIdx(i), 8, "vps_rep_format_idx[i]" ); 1023 #else 1003 1024 WRITE_CODE( vps->getVpsRepFormatIdx(i), 4, "vps_rep_format_idx[i]" ); 1025 #endif 1004 1026 } 1005 1027 } … … 1027 1049 #if VPS_EXTN_DIRECT_REF_LAYERS && M0457_PREDICTION_INDICATIONS 1028 1050 WRITE_UVLC( vps->getDirectDepTypeLen()-2, "direct_dep_type_len_minus2"); 1051 #if O0096_DEFAULT_DEPENDENCY_TYPE 1052 WRITE_FLAG(vps->getDefaultDirectDependencyTypeFlag(), "default_direct_dependency_flag"); 1053 if (vps->getDefaultDirectDependencyTypeFlag()) 1054 { 1055 WRITE_CODE( vps->getDefaultDirectDependencyType(), vps->getDirectDepTypeLen(), "default_direct_dependency_type" ); 1056 } 1057 else 1058 { 1059 for(i = 1; i < vps->getMaxLayers(); i++) 1060 { 1061 for(j = 0; j < i; j++) 1062 { 1063 if (vps->getDirectDependencyFlag(i, j)) 1064 { 1065 WRITE_CODE( vps->getDirectDependencyType(i, j), vps->getDirectDepTypeLen(), "direct_dependency_type[i][j]" ); 1066 } 1067 } 1068 } 1069 } 1070 #else 1029 1071 for(i = 1; i < vps->getMaxLayers(); i++) 1030 1072 { … … 1037 1079 } 1038 1080 } 1081 #endif 1039 1082 1040 1083 #if IL_SL_SIGNALLING_N0371
Note: See TracChangeset for help on using the changeset viewer.