Changeset 294 in 3DVCSoftware for branches/HTM-5.1-dev0/source/Lib/TLibEncoder/NALwrite.cpp
- Timestamp:
- 19 Feb 2013, 20:33:52 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-5.1-dev0/source/Lib/TLibEncoder/NALwrite.cpp
r210 r294 56 56 57 57 bsNALUHeader.write(0,1); // forbidden_zero_flag 58 #if NAL_REF_FLAG59 58 bsNALUHeader.write(nalu.m_nalRefFlag? 1 : 0, 1); // nal_ref_flag 60 59 bsNALUHeader.write(nalu.m_nalUnitType, 6); // nal_unit_type 61 #else62 bsNALUHeader.write(nalu.m_nalRefIDC, 2); // nal_ref_idc63 bsNALUHeader.write(nalu.m_nalUnitType, 5); // nal_unit_type64 #endif65 60 66 61 #if QC_MVHEVC_B0046 … … 72 67 bsNALUHeader.write(nalu.m_layerId + 1, 5); // layer_id_plus1 73 68 #else 74 #if H038875 69 bsNALUHeader.write(nalu.m_temporalId, 3); // temporal_id 76 70 // bsNALUHeader.write(1, 5); // reserved_one_5bits 77 71 bsNALUHeader.write(nalu.m_viewId+1,4); 78 72 bsNALUHeader.write(nalu.m_isDepth,1); 79 #else80 switch (nalu.m_nalUnitType)81 {82 case NAL_UNIT_CODED_SLICE:83 case NAL_UNIT_CODED_SLICE_IDR:84 #if H0566_TLA85 #if !QC_REM_IDV_B004686 case NAL_UNIT_CODED_SLICE_IDV:87 #endif88 case NAL_UNIT_CODED_SLICE_CRA:89 case NAL_UNIT_CODED_SLICE_TLA:90 #else91 case NAL_UNIT_CODED_SLICE_CDR:92 #endif93 bsNALUHeader.write(nalu.m_temporalId, 3); // temporal_id94 bsNALUHeader.write(nalu.m_OutputFlag, 1); // output_flag95 // bsNALUHeader.write(1, 4); // reserved_one_4bits96 bsNALUHeader.write(nalu.m_viewId+1,3);97 bsNALUHeader.write(nalu.m_isDepth,1);98 break;99 default: break;100 }101 #endif102 73 #endif 103 74 #endif … … 209 180 { 210 181 naluDest.m_nalUnitType = naluSrc.m_nalUnitType; 211 #if NAL_REF_FLAG212 182 naluDest.m_nalRefFlag = naluSrc.m_nalRefFlag; 213 #else214 naluDest.m_nalRefIDC = naluSrc.m_nalRefIDC;215 #endif216 183 #if !VIDYO_VPS_INTEGRATION 217 184 naluDest.m_viewId = naluSrc.m_viewId; … … 223 190 #else 224 191 225 #if !H0388226 naluDest.m_OutputFlag = naluSrc.m_OutputFlag;227 #endif228 192 #endif 229 193 naluDest.m_Bitstream = naluSrc.m_Bitstream;
Note: See TracChangeset for help on using the changeset viewer.