- Timestamp:
- 16 Nov 2013, 04:03:11 (11 years ago)
- Location:
- branches/SHM-4.0-dev/source/Lib
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.0-dev/source/Lib/TLibCommon/TComPrediction.cpp
r464 r489 766 766 #if SVC_UPSAMPLING 767 767 #if O0215_PHASE_ALIGNMENT 768 #if O0194_JOINT_US_BITSHIFT 769 Void TComPrediction::upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, bool phaseAlignFlag ) 770 { 771 m_cUsf.upsampleBasePic( currSlice, refLayerIdc, pcUsPic, pcBasePic, pcTempPic, window, phaseAlignFlag ); 772 } 773 #else 768 774 Void TComPrediction::upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, bool phaseAlignFlag ) 769 775 { 770 776 m_cUsf.upsampleBasePic( refLayerIdc, pcUsPic, pcBasePic, pcTempPic, window, phaseAlignFlag ); 777 } 778 #endif 779 #else 780 #if O0194_JOINT_US_BITSHIFT 781 Void TComPrediction::upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window) 782 { 783 m_cUsf.upsampleBasePic( refLayerIdc, pcUsPic, pcBasePic, pcTempPic, window); 771 784 } 772 785 #else … … 775 788 m_cUsf.upsampleBasePic( refLayerIdc, pcUsPic, pcBasePic, pcTempPic, window); 776 789 } 790 #endif 777 791 #endif 778 792 #endif -
branches/SHM-4.0-dev/source/Lib/TLibCommon/TComPrediction.h
r464 r489 121 121 #if SVC_UPSAMPLING 122 122 #if O0215_PHASE_ALIGNMENT 123 #if O0194_JOINT_US_BITSHIFT 124 Void upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, bool phaseAlignFlag ); 125 #else 123 126 Void upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, bool phaseAlignFlag ); 127 #endif 128 #else 129 #if O0194_JOINT_US_BITSHIFT 130 Void upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window ); 124 131 #else 125 132 Void upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window ); 133 #endif 126 134 #endif 127 135 #endif -
branches/SHM-4.0-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp
r468 r489 98 98 99 99 #if O0215_PHASE_ALIGNMENT 100 #if O0194_JOINT_US_BITSHIFT 101 Void TComUpsampleFilter::upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, bool phaseAlignFlag ) 102 #else 100 103 Void TComUpsampleFilter::upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, bool phaseAlignFlag ) 104 #endif 105 #else 106 #if O0194_JOINT_US_BITSHIFT 107 Void TComUpsampleFilter::upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window ) 101 108 #else 102 109 Void TComUpsampleFilter::upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window ) 110 #endif 103 111 #endif 104 112 { … … 141 149 Int scaleX = g_posScalingFactor[refLayerIdc][0]; 142 150 Int scaleY = g_posScalingFactor[refLayerIdc][1]; 151 152 #if O0194_JOINT_US_BITSHIFT 153 UInt currLayerId = currSlice->getLayerId(); 154 UInt refLayerId = currSlice->getVPS()->getRefLayerId( currLayerId, refLayerIdc ); 155 currLayerId = 1; 156 refLayerId = 0; 157 #endif 143 158 144 159 if( scaleX == 65536 && scaleY == 65536 ) // ratio 1x … … 241 256 #if O0194_JOINT_US_BITSHIFT 242 257 // g_bitDepthY was set to EL bit-depth, but shift1 should be calculated using BL bit-depth 243 Int shift1 = g_bitDepthYLayer[ 0] - 8;258 Int shift1 = g_bitDepthYLayer[refLayerId] - 8; 244 259 #else 245 260 Int shift1 = g_bitDepthY - 8; … … 279 294 #if N0214_INTERMEDIATE_BUFFER_16BITS 280 295 #if O0194_JOINT_US_BITSHIFT 281 Int nShift = 20 - g_bitDepthYLayer[ 1];296 Int nShift = 20 - g_bitDepthYLayer[currLayerId]; 282 297 #else 283 298 Int nShift = US_FILTER_PREC*2 - shift1; … … 391 406 #if O0194_JOINT_US_BITSHIFT 392 407 // g_bitDepthC was set to EL bit-depth, but shift1 should be calculated using BL bit-depth 393 shift1 = g_bitDepthCLayer[ 0] - 8;408 shift1 = g_bitDepthCLayer[refLayerId] - 8; 394 409 #else 395 410 shift1 = g_bitDepthC - 8; … … 436 451 #if N0214_INTERMEDIATE_BUFFER_16BITS 437 452 #if O0194_JOINT_US_BITSHIFT 438 nShift = 20 - g_bitDepthCLayer[ 1];453 nShift = 20 - g_bitDepthCLayer[refLayerId]; 439 454 #else 440 455 nShift = US_FILTER_PREC*2 - shift1; -
branches/SHM-4.0-dev/source/Lib/TLibCommon/TComUpsampleFilter.h
r464 r489 44 44 45 45 #if O0215_PHASE_ALIGNMENT 46 #if O0194_JOINT_US_BITSHIFT 47 Void upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, bool phaseAlignFlag ); 48 #else 46 49 Void upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, bool phaseAlignFlag ); 50 #endif 51 #else 52 #if O0194_JOINT_US_BITSHIFT 53 Void upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window ); 47 54 #else 48 55 Void upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window ); 56 #endif 49 57 #endif 50 58 -
branches/SHM-4.0-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r485 r489 2100 2100 #if REPN_FORMAT_IN_VPS 2101 2101 #if O0194_DIFFERENT_BITDEPTH_EL_BL 2102 g_bitDepthYLayer[rpcSlice->getLayerId()] 2103 g_bitDepthCLayer[rpcSlice->getLayerId()] 2102 g_bitDepthYLayer[rpcSlice->getLayerId()] = rpcSlice->getBitDepthY(); 2103 g_bitDepthCLayer[rpcSlice->getLayerId()] = rpcSlice->getBitDepthC(); 2104 2104 #endif 2105 2105 assert( rpcSlice->getSliceQp() >= -rpcSlice->getQpBDOffsetY() ); -
branches/SHM-4.0-dev/source/Lib/TLibDecoder/TDecTop.cpp
r485 r489 1212 1212 { 1213 1213 #if O0215_PHASE_ALIGNMENT 1214 #if O0194_JOINT_US_BITSHIFT 1215 m_cPrediction.upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), pcSlice->getSPS()->getScaledRefLayerWindow(refLayerIdc), pcSlice->getVPS()->getPhaseAlignFlag() ); 1216 #else 1214 1217 m_cPrediction.upsampleBasePic( refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), pcSlice->getSPS()->getScaledRefLayerWindow(refLayerIdc), pcSlice->getVPS()->getPhaseAlignFlag() ); 1218 #endif 1219 #else 1220 #if O0194_JOINT_US_BITSHIFT 1221 m_cPrediction.upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), pcSlice->getSPS()->getScaledRefLayerWindow(refLayerIdc) ); 1215 1222 #else 1216 1223 m_cPrediction.upsampleBasePic( refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), pcSlice->getSPS()->getScaledRefLayerWindow(refLayerIdc) ); 1224 #endif 1217 1225 #endif 1218 1226 } -
branches/SHM-4.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r484 r489 801 801 { 802 802 #if O0215_PHASE_ALIGNMENT 803 #if O0194_JOINT_US_BITSHIFT 804 m_pcPredSearch->upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), pcSlice->getSPS()->getScaledRefLayerWindow(refLayerIdc), pcSlice->getVPS()->getPhaseAlignFlag() ); 805 #else 803 806 m_pcPredSearch->upsampleBasePic( refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), pcSlice->getSPS()->getScaledRefLayerWindow(refLayerIdc), pcSlice->getVPS()->getPhaseAlignFlag() ); 807 #endif 808 #else 809 #if O0194_JOINT_US_BITSHIFT 810 m_pcPredSearch->upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), pcSlice->getSPS()->getScaledRefLayerWindow(refLayerIdc) ); 804 811 #else 805 812 m_pcPredSearch->upsampleBasePic( refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), pcSlice->getSPS()->getScaledRefLayerWindow(refLayerIdc) ); 813 #endif 806 814 #endif 807 815 }
Note: See TracChangeset for help on using the changeset viewer.