Changeset 755 in 3DVCSoftware for branches/HTM-9.1-dev0-MediaTek/source/Lib/TLibEncoder/TEncCavlc.cpp
- Timestamp:
- 27 Dec 2013, 10:54:03 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-9.1-dev0-MediaTek/source/Lib/TLibEncoder/TEncCavlc.cpp
r753 r755 861 861 } 862 862 #endif 863 if (!depthFlag ) 864 { 865 WRITE_UVLC( pcSPS->getCamParPrecision(), "cp_precision" ); 866 WRITE_FLAG( pcSPS->hasCamParInSliceHeader() ? 1 : 0, "cp_in_slice_header_flag" ); 867 if( !pcSPS->hasCamParInSliceHeader() ) 868 { 869 for( UInt uiIndex = 0; uiIndex < viewIndex; uiIndex++ ) 870 { 871 WRITE_SVLC( pcSPS->getCodedScale ()[ uiIndex ], "cp_scale" ); 872 WRITE_SVLC( pcSPS->getCodedOffset ()[ uiIndex ], "cp_off" ); 873 WRITE_SVLC( pcSPS->getInvCodedScale ()[ uiIndex ] + pcSPS->getCodedScale ()[ uiIndex ], "cp_inv_scale_plus_scale" ); 874 WRITE_SVLC( pcSPS->getInvCodedOffset()[ uiIndex ] + pcSPS->getCodedOffset()[ uiIndex ], "cp_inv_off_plus_off" ); 875 } 876 } 877 } 863 #if !CAM_HLS_F0136_F0045_F0082 864 if (!depthFlag ) 865 { 866 WRITE_UVLC( pcSPS->getCamParPrecision(), "cp_precision" ); 867 WRITE_FLAG( pcSPS->hasCamParInSliceHeader() ? 1 : 0, "cp_in_slice_header_flag" ); 868 if( !pcSPS->hasCamParInSliceHeader() ) 869 { 870 for( UInt uiIndex = 0; uiIndex < viewIndex; uiIndex++ ) 871 { 872 WRITE_SVLC( pcSPS->getCodedScale ()[ uiIndex ], "cp_scale" ); 873 WRITE_SVLC( pcSPS->getCodedOffset ()[ uiIndex ], "cp_off" ); 874 WRITE_SVLC( pcSPS->getInvCodedScale ()[ uiIndex ] + pcSPS->getCodedScale ()[ uiIndex ], "cp_inv_scale_plus_scale" ); 875 WRITE_SVLC( pcSPS->getInvCodedOffset()[ uiIndex ] + pcSPS->getCodedOffset()[ uiIndex ], "cp_inv_off_plus_off" ); 876 } 877 } 878 } 879 #endif 878 880 } 879 881 #endif … … 1675 1677 } 1676 1678 } 1679 #if CAM_HLS_F0136_F0045_F0082 1680 WRITE_UVLC( pcVPS->getCamParPrecision(), "cp_precision" ); 1681 for (UInt viewIndex=0; viewIndex<pcVPS->getNumViews(); viewIndex++) 1682 { 1683 WRITE_FLAG( pcVPS->getCamParPresent(viewIndex) ? 1 : 0, "cp_present_flag[i]" ); 1684 if ( pcVPS->getCamParPresent(viewIndex) ) 1685 { 1686 WRITE_FLAG( pcVPS->hasCamParInSliceHeader(viewIndex) ? 1 : 0, "cp_in_slice_segment_header_flag[i]" ); 1687 if ( !pcVPS->hasCamParInSliceHeader(viewIndex) ) 1688 { 1689 for( UInt uiIndex = 0; uiIndex < viewIndex; uiIndex++ ) 1690 { 1691 WRITE_SVLC( pcVPS->getCodedScale (viewIndex)[ uiIndex ], "vps_cp_scale" ); 1692 WRITE_SVLC( pcVPS->getCodedOffset (viewIndex)[ uiIndex ], "vps_cp_off" ); 1693 WRITE_SVLC( pcVPS->getInvCodedScale (viewIndex)[ uiIndex ] + pcVPS->getCodedScale (viewIndex)[ uiIndex ], "vps_cp_inv_scale_plus_scale" ); 1694 WRITE_SVLC( pcVPS->getInvCodedOffset(viewIndex)[ uiIndex ] + pcVPS->getCodedOffset(viewIndex)[ uiIndex ], "vps_cp_inv_off_plus_off" ); 1695 } 1696 } 1697 } 1698 } 1699 #endif 1677 1700 #if H_3D_TMVP 1678 1701 WRITE_FLAG( pcVPS->getIvMvScalingFlag( ) ? 1 : 0 , "iv_mv_scaling_flag" ); … … 2139 2162 } 2140 2163 } 2164 #if CAM_HLS_F0044 2165 #if QC_DEPTH_IV_MRG_F0125 2166 #if CAM_HLS_F0136_F0045_F0082 2167 if( pcSlice->getVPS()->hasCamParInSliceHeader( pcSlice->getViewIndex() ) && !pcSlice->getIsDepth() ) 2168 #else 2169 if( pcSlice->getSPS()->hasCamParInSliceHeader() && !pcSlice->getIsDepth() ) 2170 #endif 2171 #else 2172 if( pcSlice->getSPS()->hasCamParInSliceHeader() ) 2173 #endif 2174 { 2175 for( UInt uiId = 0; uiId < pcSlice->getViewIndex(); uiId++ ) 2176 { 2177 WRITE_SVLC( pcSlice->getCodedScale ()[ uiId ], "cp_scale" ); 2178 WRITE_SVLC( pcSlice->getCodedOffset ()[ uiId ], "cp_off" ); 2179 WRITE_SVLC( pcSlice->getInvCodedScale ()[ uiId ] + pcSlice->getCodedScale ()[ uiId ], "cp_inv_scale_plus_scale" ); 2180 WRITE_SVLC( pcSlice->getInvCodedOffset()[ uiId ] + pcSlice->getCodedOffset()[ uiId ], "cp_inv_off_plus_off" ); 2181 } 2182 } 2183 #endif 2184 2141 2185 if(pcSlice->getPPS()->getSliceHeaderExtensionPresentFlag()) 2142 2186 { 2143 #if !H_3D 2187 #if !H_3D || CAM_HLS_F0044 2144 2188 WRITE_UVLC(0,"slice_header_extension_length"); 2145 2189 #else 2146 2190 WRITE_UVLC(0,"slice_header_extension_length"); //<- this element needs to be set to the correct value!! 2147 2148 2191 #if QC_DEPTH_IV_MRG_F0125 2192 #if CAM_HLS_F0136_F0045_F0082 2193 if( pcSlice->getVPS()->hasCamParInSliceHeader( pcSlice->getViewIndex() ) && !pcSlice->getIsDepth() ) 2194 #else 2149 2195 if( pcSlice->getSPS()->hasCamParInSliceHeader() && !pcSlice->getIsDepth() ) 2196 #endif 2150 2197 #else 2151 2198 if( pcSlice->getSPS()->hasCamParInSliceHeader() )
Note: See TracChangeset for help on using the changeset viewer.