Changeset 1260 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon
- Timestamp:
- 14 Jul 2015, 03:24:13 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibCommon
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/ContextModel3DBuffer.cpp
r1259 r1260 60 60 61 61 /** 62 * Initialize 3D buffer with respect to slice type, QP and given initial probability table62 * Initialize 3D buffer with respect to slice type, QP and given initial probability table 63 63 * 64 * \param eSliceType slice type65 * \param iQp input QP value66 * \param psCtxModelgiven probability table64 * \param sliceType slice type 65 * \param qp input QP value 66 * \param ctxModel given probability table 67 67 */ 68 68 Void ContextModel3DBuffer::initBuffer( SliceType sliceType, Int qp, UChar* ctxModel ) -
branches/SHM-dev/source/Lib/TLibCommon/NAL.h
r1259 r1260 107 107 108 108 /** 109 * convert the OutputNALUnit #nalu#into EBSP format by writing out109 * convert the OutputNALUnit nalu into EBSP format by writing out 110 110 * the NALUnit header, then the rbsp_bytes including any 111 111 * emulation_prevention_three_byte symbols. -
branches/SHM-dev/source/Lib/TLibCommon/TComBitStream.cpp
r1259 r1260 215 215 216 216 /** 217 * read #uiNumberOfBits#from bitstream without updating the bitstream218 * state, storing the result in #ruiBits#.219 * 220 * If reading #uiNumberOfBits#would overrun the bitstream buffer,221 * the bits ream is effectively padded with sufficient zero-bits to217 * read uiNumberOfBits from bitstream without updating the bitstream 218 * state, storing the result in ruiBits. 219 * 220 * If reading uiNumberOfBits would overrun the bitstream buffer, 221 * the bitstream is effectively padded with sufficient zero-bits to 222 222 * avoid the overrun. 223 223 */ … … 344 344 345 345 /** 346 - extract substream from the current bitstream 347 . 348 \param pcBitstream bitstream which contains substreams 346 Extract substream from the current bitstream. 347 349 348 \param uiNumBits number of bits to transfer 350 349 */ -
branches/SHM-dev/source/Lib/TLibCommon/TComBitStream.h
r1259 r1260 176 176 public: 177 177 /** 178 * Create a new bitstream reader object that reads from #buf#. Ownership179 * of #buf#remains with the callee, although the constructed object180 * will hold a reference to #buf#178 * Create a new bitstream reader object that reads from buf. Ownership 179 * of buf remains with the callee, although the constructed object 180 * will hold a reference to buf 181 181 */ 182 182 TComInputBitstream(std::vector<uint8_t>* buf); -
branches/SHM-dev/source/Lib/TLibCommon/TComDataCU.cpp
r1259 r1260 1533 1533 *\param uiAbsPartIdx partition index 1534 1534 *\param uiIntraDirPred pointer to the array for MPM storage 1535 *\param compID colo r component ID1535 *\param compID colour component ID 1536 1536 *\param piMode it is set with MPM mode in case both MPM are equal. It is used to restrict RD search at encode side. 1537 1537 *\returns Number of MPM … … 1726 1726 1727 1727 /** Sets a coded block flag for all sub-partitions of a partition 1728 * \param uiCbf The value of the coded block flag to be set1729 * \param eTType1728 * \param uiCbf The value of the coded block flag to be set 1729 * \param compID 1730 1730 * \param uiAbsPartIdx 1731 1731 * \param uiPartIdx 1732 1732 * \param uiDepth 1733 * \returns Void1734 1733 */ 1735 1734 Void TComDataCU::setCbfSubParts ( UInt uiCbf, ComponentID compID, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth ) -
branches/SHM-dev/source/Lib/TLibCommon/TComInterpolationFilter.cpp
r1259 r1260 288 288 * 289 289 * \tparam N Number of taps 290 * \param bitDepth Bit depth 290 291 * \param src Pointer to source samples 291 292 * \param srcStride Stride of source samples … … 326 327 * \brief Filter a block of Luma/Chroma samples (horizontal) 327 328 * 329 * \param compID Chroma component ID 328 330 * \param src Pointer to source samples 329 331 * \param srcStride Stride of source samples … … 334 336 * \param frac Fractional sample offset 335 337 * \param isLast Flag indicating whether it is the last filtering operation 338 * \param fmt Chroma format 336 339 */ 337 340 Void TComInterpolationFilter::filterHor(const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac, Bool isLast, const ChromaFormat fmt ) … … 358 361 * \brief Filter a block of Luma/Chroma samples (vertical) 359 362 * 363 * \param compID Colour component ID 360 364 * \param src Pointer to source samples 361 365 * \param srcStride Stride of source samples … … 367 371 * \param isFirst Flag indicating whether it is the first filtering operation 368 372 * \param isLast Flag indicating whether it is the last filtering operation 373 * \param fmt Chroma format 369 374 */ 370 375 Void TComInterpolationFilter::filterVer(const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac, Bool isFirst, Bool isLast, const ChromaFormat fmt ) -
branches/SHM-dev/source/Lib/TLibCommon/TComLoopFilter.cpp
r1259 r1260 161 161 162 162 /** 163 - Deblocking filter process in CU-based (the same function as conventional's) 164 . 165 \param Edge the direction of the edge in block boundary (horizonta/vertical), which is added newly 163 Deblocking filter process in CU-based (the same function as conventional's) 164 165 \param pcCU Pointer to CTU/CU structure 166 \param uiAbsZorderIdx Position in CU 167 \param uiDepth Depth in CU 168 \param edgeDir the direction of the edge in block boundary (horizontal/vertical), which is added newly 166 169 */ 167 170 Void TComLoopFilter::xDeblockCU( TComDataCU* pcCU, UInt uiAbsZorderIdx, UInt uiDepth, DeblockEdgeDir edgeDir ) -
branches/SHM-dev/source/Lib/TLibCommon/TComPattern.cpp
r1259 r1260 70 70 // ==================================================================================================================== 71 71 72 /** \param piTexture pixel data 72 /** 73 \param piTexture pixel data 73 74 \param iRoiWidth pattern width 74 75 \param iRoiHeight pattern height 75 76 \param iStride buffer stride 76 \param iOffsetLeft neighbour offset (left)77 \param iOffsetRight neighbour offset (right)78 \param iOffsetAbove neighbour offset (above)79 \param iOffsetBottom neighbour offset (bottom)80 77 */ 81 78 Void TComPatternParam::setPatternParamPel ( Pel* piTexture, … … 524 521 } 525 522 526 /** Get pointer to reference samples for intra prediction527 * \param uiDirMode prediction mode index528 * \param log2BlkSize size of block (2 = 4x4, 3 = 8x8, 4 = 16x16, 5 = 32x32, 6 = 64x64)529 * \param piAdiBuf pointer to unfiltered reference samples530 * \return pointer to (possibly filtered) reference samples531 *532 * The prediction mode index is used to determine whether a smoothed reference sample buffer is returned.533 */534 535 523 Bool TComPrediction::filteringIntraReferenceSamples(const ComponentID compID, UInt uiDirMode, UInt uiTuChWidth, UInt uiTuChHeight, const ChromaFormat chFmt, const Bool intraReferenceSmoothingDisabled) 536 524 { -
branches/SHM-dev/source/Lib/TLibCommon/TComPrediction.cpp
r1259 r1260 224 224 225 225 /** Function for deriving the simplified angular intra predictions. 226 * \param pSrc pointer to reconstructed sample array 227 * \param srcStride the stride of the reconstructed sample array 228 * \param rpDst reference to pointer for the prediction sample array 229 * \param dstStride the stride of the prediction sample array 230 * \param width the width of the block 231 * \param height the height of the block 232 * \param dirMode the intra prediction mode index 233 * \param blkAboveAvailable boolean indication if the block above is available 234 * \param blkLeftAvailable boolean indication if the block to the left is available 226 * \param bitDepth bit depth 227 * \param pSrc pointer to reconstructed sample array 228 * \param srcStride the stride of the reconstructed sample array 229 * \param pTrueDst reference to pointer for the prediction sample array 230 * \param dstStrideTrue the stride of the prediction sample array 231 * \param uiWidth the width of the block 232 * \param uiHeight the height of the block 233 * \param channelType type of pel array (luma/chroma) 234 * \param format chroma format 235 * \param dirMode the intra prediction mode index 236 * \param blkAboveAvailable boolean indication if the block above is available 237 * \param blkLeftAvailable boolean indication if the block to the left is available 238 * \param bEnableEdgeFilters indication whether to enable edge filters 235 239 * 236 240 * This function derives the prediction samples for the angular mode based on the prediction direction indicated by … … 491 495 } 492 496 493 /** Function for checking identical motion. 494 * \param TComDataCU* pcCU 495 * \param UInt PartAddr 497 /** Check for identical motion in both motion vector direction of a bi-directional predicted CU 498 * \returns true, if motion vectors and reference pictures match 496 499 */ 497 500 Bool TComPrediction::xCheckIdenticalMotion ( TComDataCU* pcCU, UInt PartAddr ) … … 669 672 * \brief Generate motion-compensated block 670 673 * 674 * \param compID Colour component ID 671 675 * \param cu Pointer to current CU 672 676 * \param refPic Pointer to reference picture … … 756 760 757 761 /** Function for deriving planar intra prediction. 758 * \param pSrc pointer to reconstructed sample array 759 * \param srcStride the stride of the reconstructed sample array 760 * \param rpDst reference to pointer for the prediction sample array 761 * \param dstStride the stride of the prediction sample array 762 * \param width the width of the block 763 * \param height the height of the block 762 * \param pSrc pointer to reconstructed sample array 763 * \param srcStride the stride of the reconstructed sample array 764 * \param rpDst reference to pointer for the prediction sample array 765 * \param dstStride the stride of the prediction sample array 766 * \param width the width of the block 767 * \param height the height of the block 768 * \param channelType type of pel array (luma, chroma) 769 * \param format chroma format 764 770 * 765 771 * This function derives the prediction samples for planar mode (intra coding). … … 821 827 * \param pSrc pointer to reconstructed sample array 822 828 * \param iSrcStride the stride of the reconstructed sample array 823 * \param rpDst reference to pointer for the prediction sample array829 * \param pDst reference to pointer for the prediction sample array 824 830 * \param iDstStride the stride of the prediction sample array 825 831 * \param iWidth the width of the block 826 832 * \param iHeight the height of the block 833 * \param channelType type of pel array (luma, chroma) 827 834 * 828 835 * This function performs filtering left and top edges of the prediction samples for DC mode (intra coding). -
branches/SHM-dev/source/Lib/TLibCommon/TComSampleAdaptiveOffset.cpp
r1259 r1260 649 649 /** PCM LF disable process. 650 650 * \param pcPic picture (TComPic) pointer 651 * \returns Void652 651 * 653 652 * \note Replace filtered sample values of PCM mode blocks with the transmitted and reconstructed ones. … … 660 659 /** Picture-level PCM restoration. 661 660 * \param pcPic picture (TComPic) pointer 662 * \returns Void663 661 */ 664 662 Void TComSampleAdaptiveOffset::xPCMRestoration(TComPic* pcPic) … … 678 676 679 677 /** PCM CU restoration. 680 * \param pcCU pointer to current CU 681 * \param uiAbsPartIdx part index 682 * \param uiDepth CU depth 683 * \returns Void 678 * \param pcCU pointer to current CU 679 * \param uiAbsZorderIdx part index 680 * \param uiDepth CU depth 684 681 */ 685 682 Void TComSampleAdaptiveOffset::xPCMCURestoration ( TComDataCU* pcCU, UInt uiAbsZorderIdx, UInt uiDepth ) … … 720 717 721 718 /** PCM sample restoration. 722 * \param pcCU pointer to current CU 723 * \param uiAbsPartIdx part index 724 * \param uiDepth CU depth 725 * \param ttText texture component type 726 * \returns Void 719 * \param pcCU pointer to current CU 720 * \param uiAbsZorderIdx part index 721 * \param uiDepth CU depth 722 * \param compID texture component type 727 723 */ 728 724 Void TComSampleAdaptiveOffset::xPCMSampleRestoration (TComDataCU* pcCU, UInt uiAbsZorderIdx, UInt uiDepth, const ComponentID compID) -
branches/SHM-dev/source/Lib/TLibCommon/TComSampleAdaptiveOffset.h
r1259 r1260 86 86 Void xPCMRestoration(TComPic* pcPic); 87 87 Void xPCMCURestoration ( TComDataCU* pcCU, UInt uiAbsZorderIdx, UInt uiDepth ); 88 Void xPCMSampleRestoration (TComDataCU* pcCU, UInt uiAbsZorderIdx, UInt uiDepth, ComponentID component);88 Void xPCMSampleRestoration (TComDataCU* pcCU, UInt uiAbsZorderIdx, UInt uiDepth, const ComponentID compID); 89 89 protected: 90 90 UInt m_offsetStepLog2[MAX_NUM_COMPONENT]; //offset step -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1259 r1260 1821 1821 } 1822 1822 1823 /** get AC and DC values for weighted pred 1824 * \param *wp 1825 * \returns Void 1826 */ 1823 //! get AC and DC values for weighted pred 1827 1824 Void TComSlice::getWpAcDcParam(WPACDCParam *&wp) 1828 1825 { … … 1830 1827 } 1831 1828 1832 /** init AC and DC values for weighted pred 1833 * \returns Void 1834 */ 1829 //! init AC and DC values for weighted pred 1835 1830 Void TComSlice::initWpAcDcParam() 1836 1831 { … … 1842 1837 } 1843 1838 1844 /** get WP tables for weighted pred 1845 * \param RefPicList 1846 * \param iRefIdx 1847 * \param *&WPScalingParam 1848 * \returns Void 1849 */ 1839 //! get tables for weighted prediction 1850 1840 Void TComSlice::getWpScaling( RefPicList e, Int iRefIdx, WPScalingParam *&wp ) 1851 1841 { … … 1854 1844 } 1855 1845 1856 /** reset Default WP tables settings : no weight. 1857 * \param WPScalingParam 1858 * \returns Void 1859 */ 1846 //! reset Default WP tables settings : no weight. 1860 1847 Void TComSlice::resetWpScaling() 1861 1848 { … … 1877 1864 } 1878 1865 1879 /** init WP table 1880 * \returns Void 1881 */ 1866 //! init WP table 1882 1867 Void TComSlice::initWpScaling(const TComSPS *sps) 1883 1868 { … … 2397 2382 } 2398 2383 2399 /** set the reference idc value at uiBufferNum entry to the value of iRefIdc 2400 * \param uiBufferNum 2401 * \param iRefIdc 2402 * \returns Void 2403 */ 2384 //! set the reference idc value at uiBufferNum entry to the value of iRefIdc 2404 2385 Void TComReferencePictureSet::setRefIdc(Int bufferNum, Int refIdc) 2405 2386 { … … 2407 2388 } 2408 2389 2409 /** get the reference idc value at uiBufferNum 2410 * \param uiBufferNum 2411 * \returns Int 2412 */ 2390 //! get the reference idc value at uiBufferNum 2413 2391 Int TComReferencePictureSet::getRefIdc(Int bufferNum) const 2414 2392 { … … 2533 2511 2534 2512 /** get scaling matrix from RefMatrixID 2535 * \param sizeId size index2536 * \param Index of input matrix2537 * \param Index of reference matrix2513 * \param sizeId size index 2514 * \param listId index of input matrix 2515 * \param refListId index of reference matrix 2538 2516 */ 2539 2517 Void TComScalingList::processRefMatrix( UInt sizeId, UInt listId , UInt refListId ) … … 2771 2749 /** process of default matrix 2772 2750 * \param sizeId size index 2773 * \param Index of input matrix2751 * \param listId index of input matrix 2774 2752 */ 2775 2753 Void TComScalingList::processDefaultMatrix(UInt sizeId, UInt listId) -
branches/SHM-dev/source/Lib/TLibCommon/TComTrQuant.cpp
r1259 r1260 392 392 * \param dst output data (transform coefficients) 393 393 * \param shift specifies right shift after 1D transform 394 * \param line 394 395 */ 395 396 Void partialButterfly4(TCoeff *src, TCoeff *dst, Int shift, Int line) … … 477 478 * \param dst output data (residual) 478 479 * \param shift specifies right shift after 1D transform 480 * \param line 481 * \param outputMinimum minimum for clipping 482 * \param outputMaximum maximum for clipping 479 483 */ 480 484 Void partialButterflyInverse4(TCoeff *src, TCoeff *dst, Int shift, Int line, const TCoeff outputMinimum, const TCoeff outputMaximum) … … 507 511 * \param dst output data (transform coefficients) 508 512 * \param shift specifies right shift after 1D transform 513 * \param line 509 514 */ 510 515 Void partialButterfly8(TCoeff *src, TCoeff *dst, Int shift, Int line) … … 548 553 * \param dst output data (residual) 549 554 * \param shift specifies right shift after 1D transform 555 * \param line 556 * \param outputMinimum minimum for clipping 557 * \param outputMaximum maximum for clipping 550 558 */ 551 559 Void partialButterflyInverse8(TCoeff *src, TCoeff *dst, Int shift, Int line, const TCoeff outputMinimum, const TCoeff outputMaximum) … … 589 597 * \param dst output data (transform coefficients) 590 598 * \param shift specifies right shift after 1D transform 599 * \param line 591 600 */ 592 601 Void partialButterfly16(TCoeff *src, TCoeff *dst, Int shift, Int line) … … 644 653 645 654 /** 16x16 inverse transform implemented using partial butterfly structure (1D) 646 * \param src input data (transform coefficients) 647 * \param dst output data (residual) 648 * \param shift specifies right shift after 1D transform 655 * \param src input data (transform coefficients) 656 * \param dst output data (residual) 657 * \param shift specifies right shift after 1D transform 658 * \param line 659 * \param outputMinimum minimum for clipping 660 * \param outputMaximum maximum for clipping 649 661 */ 650 662 Void partialButterflyInverse16(TCoeff *src, TCoeff *dst, Int shift, Int line, const TCoeff outputMinimum, const TCoeff outputMaximum) … … 701 713 * \param dst output data (transform coefficients) 702 714 * \param shift specifies right shift after 1D transform 715 * \param line 703 716 */ 704 717 Void partialButterfly32(TCoeff *src, TCoeff *dst, Int shift, Int line) … … 774 787 * \param dst output data (residual) 775 788 * \param shift specifies right shift after 1D transform 789 * \param line 790 * \param outputMinimum minimum for clipping 791 * \param outputMaximum maximum for clipping 776 792 */ 777 793 Void partialButterflyInverse32(TCoeff *src, TCoeff *dst, Int shift, Int line, const TCoeff outputMinimum, const TCoeff outputMaximum) … … 841 857 842 858 /** MxN forward transform (2D) 843 * \param block input data (residual) 844 * \param coeff output data (transform coefficients) 845 * \param iWidth input data (width of transform) 846 * \param iHeight input data (height of transform) 859 * \param bitDepth [in] bit depth 860 * \param block [in] residual block 861 * \param coeff [out] transform coefficients 862 * \param iWidth [in] width of transform 863 * \param iHeight [in] height of transform 864 * \param useDST [in] 865 * \param maxTrDynamicRange [in] 866 847 867 */ 848 868 Void xTrMxN(Int bitDepth, TCoeff *block, TCoeff *coeff, Int iWidth, Int iHeight, Bool useDST, const Int maxTrDynamicRange) … … 905 925 906 926 /** MxN inverse transform (2D) 907 * \param coeff input data (transform coefficients) 908 * \param block output data (residual) 909 * \param iWidth input data (width of transform) 910 * \param iHeight input data (height of transform) 927 * \param bitDepth [in] bit depth 928 * \param coeff [in] transform coefficients 929 * \param block [out] residual block 930 * \param iWidth [in] width of transform 931 * \param iHeight [in] height of transform 932 * \param useDST [in] 933 * \param maxTrDynamicRange [in] 911 934 */ 912 935 Void xITrMxN(Int bitDepth, TCoeff *coeff, TCoeff *block, Int iWidth, Int iHeight, Bool useDST, const Int maxTrDynamicRange) … … 1832 1855 1833 1856 /** Wrapper function between HM interface and core NxN forward transform (2D) 1857 * \param compID colour component ID 1858 * \param useDST 1834 1859 * \param piBlkResi input data (residual) 1860 * \param uiStride stride of input residual data 1835 1861 * \param psCoeff output data (transform coefficients) 1836 * \param uiStride stride of input residual data 1837 * \param iSize transform size (iSize x iSize) 1838 * \param uiMode is Intra Prediction mode used in Mode-Dependent DCT/DST only 1862 * \param iWidth transform width 1863 * \param iHeight transform height 1839 1864 */ 1840 1865 Void TComTrQuant::xT( const ComponentID compID, Bool useDST, Pel* piBlkResi, UInt uiStride, TCoeff* psCoeff, Int iWidth, Int iHeight ) … … 1865 1890 1866 1891 /** Wrapper function between HM interface and core NxN inverse transform (2D) 1892 * \param compID colour component ID 1893 * \param useDST 1867 1894 * \param plCoef input data (transform coefficients) 1868 1895 * \param pResidual output data (residual) 1869 1896 * \param uiStride stride of input residual data 1870 * \param i Size transform size (iSize x iSize)1871 * \param uiMode is Intra Prediction mode used in Mode-Dependent DCT/DST only1897 * \param iWidth transform width 1898 * \param iHeight transform height 1872 1899 */ 1873 1900 Void TComTrQuant::xIT( const ComponentID compID, Bool useDST, TCoeff* plCoef, Pel* pResidual, UInt uiStride, Int iWidth, Int iHeight ) … … 1907 1934 /** Wrapper function between HM interface and core 4x4 transform skipping 1908 1935 * \param piBlkResi input data (residual) 1936 * \param uiStride stride of input residual data 1909 1937 * \param psCoeff output data (transform coefficients) 1910 * \param uiStride stride of input residualdata1911 * \param iSize transform size (iSize x iSize)1938 * \param rTu reference to transform data 1939 * \param component colour component 1912 1940 */ 1913 1941 Void TComTrQuant::xTransformSkip( Pel* piBlkResi, UInt uiStride, TCoeff* psCoeff, TComTU &rTu, const ComponentID component ) … … 1955 1983 * \param pResidual output data (residual) 1956 1984 * \param uiStride stride of input residual data 1957 * \param iSize transform size (iSize x iSize) 1985 * \param rTu reference to transform data 1986 * \param component colour component ID 1958 1987 */ 1959 1988 Void TComTrQuant::xITransformSkip( TCoeff* plCoef, Pel* pResidual, UInt uiStride, TComTU &rTu, const ComponentID component ) … … 1999 2028 2000 2029 /** RDOQ with CABAC 2001 * \param pcCU pointer to coding unit structure2030 * \param rTu reference to transform data 2002 2031 * \param plSrcCoeff pointer to input buffer 2003 2032 * \param piDstCoeff reference to pointer to output buffer 2004 * \param uiWidth block width 2005 * \param uiHeight block height 2033 * \param piArlDstCoeff 2006 2034 * \param uiAbsSum reference to absolute sum of quantized transform coefficient 2007 * \param eTType plane type / luminance or chrominance2008 * \param uiAbsPartIdx absolute partition index2009 * \returns Void 2035 * \param compID colour component ID 2036 * \param cQP reference to quantization parameters 2037 2010 2038 * Rate distortion optimized quantization for entropy 2011 2039 * coding engines using probability models like CABAC … … 2558 2586 * \param uiCGPosX column of current coefficient group 2559 2587 * \param uiCGPosY row of current coefficient group 2560 * \param width width of the block2561 * \param height height of the block2588 * \param widthInGroups width of the block 2589 * \param heightInGroups height of the block 2562 2590 * \returns pattern for current coefficient group 2563 2591 */ … … 2590 2618 /** Context derivation process of coeff_abs_significant_flag 2591 2619 * \param patternSigCtx pattern for current coefficient group 2592 * \param codingParameters coding par meters for the TU (includes the scan)2620 * \param codingParameters coding parameters for the TU (includes the scan) 2593 2621 * \param scanPosition current position in scan order 2594 2622 * \param log2BlockWidth log2 width of the block 2595 2623 * \param log2BlockHeight log2 height of the block 2596 * \param ChannelType channel type (CHANNEL_TYPE_LUMA/CHROMA)2624 * \param chanType channel type (CHANNEL_TYPE_LUMA/CHROMA) 2597 2625 * \returns ctxInc for current scan position 2598 2626 */ … … 2706 2734 * \param ui16CtxNumAbs current ctxInc for coeff_abs_level_greater2 (remaining bins of coeff_abs_level_minus1 in AVC) 2707 2735 * \param ui16AbsGoRice current Rice parameter for coeff_abs_level_minus3 2736 * \param c1Idx 2737 * \param c2Idx 2708 2738 * \param iQBits quantization step size 2709 * \param dTemp correction factor2739 * \param errorScale 2710 2740 * \param bLast indicates if the coefficient is the last significant 2741 * \param useLimitedPrefixLength 2742 * \param channelType texture channel type (luma/chroma) 2711 2743 * \returns best quantized transform level for given scan position 2712 2744 * This method calculates the best quantized transform level for a given scan position. … … 2775 2807 * \param ui16CtxNumAbs current ctxInc for coeff_abs_level_greater2 (remaining bins of coeff_abs_level_minus1 in AVC) 2776 2808 * \param ui16AbsGoRice Rice parameter for coeff_abs_level_minus3 2809 * \param c1Idx 2810 * \param c2Idx 2811 * \param useLimitedPrefixLength 2812 * \param channelType texture channel type (luma/chroma) 2777 2813 * \returns cost of given absolute transform level 2778 2814 */ … … 2862 2898 * \param uiPosX X coordinate of the last significant coefficient 2863 2899 * \param uiPosY Y coordinate of the last significant coefficient 2900 * \param component colour component ID 2864 2901 * \returns cost of last significant coefficient 2865 2902 */ … … 2887 2924 } 2888 2925 2889 /** Calculates the cost for specific absolute transform level2890 * \param uiAbsLevel scaled quantized level2891 * \param ui16CtxNumOne current ctxInc for coeff_abs_level_greater1 (1st bin of coeff_abs_level_minus1 in AVC)2892 * \param ui16CtxNumAbs current ctxInc for coeff_abs_level_greater2 (remaining bins of coeff_abs_level_minus1 in AVC)2893 * \param ui16CtxBase current global offset for coeff_abs_level_greater1 and coeff_abs_level_greater22894 * \returns cost of given absolute transform level2895 */2896 2926 __inline Double TComTrQuant::xGetRateSigCoef ( UShort uiSignificance, 2897 2927 UShort ui16CtxNumSig ) const … … 2919 2949 /** Context derivation process of coeff_abs_significant_flag 2920 2950 * \param uiSigCoeffGroupFlag significance map of L1 2921 * \param uiBlkX column of current scan position 2922 * \param uiBlkY row of current scan position 2923 * \param uiLog2BlkSize log2 value of block size 2951 * \param uiCGPosX column of current scan position 2952 * \param uiCGPosY row of current scan position 2953 * \param widthInGroups width of the block 2954 * \param heightInGroups height of the block 2924 2955 * \returns ctxInc for current scan position 2925 2956 */ … … 2947 2978 2948 2979 /** set quantized matrix coefficient for encode 2949 * \param scalingList quantaized matrix address 2980 * \param scalingList quantized matrix address 2981 * \param format chroma format 2950 2982 */ 2951 2983 Void TComTrQuant::setScalingList(TComScalingList *scalingList, const ChromaFormat format) … … 2968 3000 } 2969 3001 /** set quantized matrix coefficient for decode 2970 * \param scalingList quantaized matrix address 3002 * \param scalingList quantized matrix address 3003 * \param format chroma format 2971 3004 */ 2972 3005 Void TComTrQuant::setScalingListDec(const TComScalingList &scalingList, const ChromaFormat format) … … 2988 3021 /** set error scale coefficients 2989 3022 * \param list List ID 2990 * \param uiSize Size2991 * \param uiQPQuantization parameter3023 * \param size Size 3024 * \param qp Quantization parameter 2992 3025 */ 2993 3026 Void TComTrQuant::setErrScaleCoeff(UInt list, UInt size, Int qp) … … 3016 3049 3017 3050 /** set quantized matrix coefficient for encode 3018 * \param scalingList quant aized matrix address3051 * \param scalingList quantized matrix address 3019 3052 * \param listId List index 3020 3053 * \param sizeId size index 3021 * \param uiQP Quantization parameter 3054 * \param qp Quantization parameter 3055 * \param format chroma format 3022 3056 */ 3023 3057 Void TComTrQuant::xSetScalingListEnc(TComScalingList *scalingList, UInt listId, UInt sizeId, Int qp, const ChromaFormat format) … … 3042 3076 /** set quantized matrix coefficient for decode 3043 3077 * \param scalingList quantaized matrix address 3044 * \param list List index 3045 * \param size size index 3046 * \param uiQP Quantization parameter 3078 * \param listId List index 3079 * \param sizeId size index 3080 * \param qp Quantization parameter 3081 * \param format chroma format 3047 3082 */ 3048 3083 Void TComTrQuant::xSetScalingListDec(const TComScalingList &scalingList, UInt listId, UInt sizeId, Int qp, const ChromaFormat format) … … 3088 3123 /** set flat matrix value to quantized coefficient 3089 3124 * \param list List ID 3090 * \param uiQP Quantization parameter 3091 * \param uiSize Size 3125 * \param size size index 3126 * \param qp Quantization parameter 3127 * \param format chroma format 3092 3128 */ 3093 3129 Void TComTrQuant::xsetFlatScalingList(UInt list, UInt size, Int qp, const ChromaFormat format) -
branches/SHM-dev/source/Lib/TLibCommon/TComWeightPrediction.cpp
r1259 r1260 62 62 63 63 64 /** weighted averaging for bi-pred 65 * \param TComYuv* pcYuvSrc0 66 * \param TComYuv* pcYuvSrc1 67 * \param iPartUnitIdx 68 * \param iWidth 69 * \param iHeight 70 * \param WPScalingParam *wp0 71 * \param WPScalingParam *wp1 72 * \param TComYuv* rpcYuvDst 73 * \returns Void 74 */ 64 //! weighted averaging for bi-pred 75 65 Void TComWeightPrediction::addWeightBi( const TComYuv *pcYuvSrc0, 76 66 const TComYuv *pcYuvSrc1, … … 137 127 138 128 139 /** weighted averaging for uni-pred 140 * \param TComYuv* pcYuvSrc0 141 * \param iPartUnitIdx 142 * \param iWidth 143 * \param iHeight 144 * \param WPScalingParam *wp0 145 * \param TComYuv* rpcYuvDst 146 * \returns Void 147 */ 129 //! weighted averaging for uni-pred 148 130 Void TComWeightPrediction::addWeightUni( const TComYuv *const pcYuvSrc0, 149 131 const UInt iPartUnitIdx, … … 200 182 // getWpScaling() 201 183 //======================================================= 202 /** derivation of wp tables 203 * \param TComDataCU* pcCU 204 * \param iRefIdx0 205 * \param iRefIdx1 206 * \param WPScalingParam *&wp0 207 * \param WPScalingParam *&wp1 208 * \param ibdi 209 * \returns Void 210 */ 184 //! derivation of wp tables 211 185 Void TComWeightPrediction::getWpScaling( TComDataCU *const pcCU, 212 186 const Int iRefIdx0, … … 287 261 288 262 289 /** weighted prediction for bi-pred 290 * \param TComDataCU* pcCU 291 * \param TComYuv* pcYuvSrc0 292 * \param TComYuv* pcYuvSrc1 293 * \param iRefIdx0 294 * \param iRefIdx1 295 * \param uiPartIdx 296 * \param iWidth 297 * \param iHeight 298 * \param TComYuv* rpcYuvDst 299 * \returns Void 300 */ 263 //! weighted prediction for bi-pred 301 264 Void TComWeightPrediction::xWeightedPredictionBi( TComDataCU *const pcCU, 302 265 const TComYuv *const pcYuvSrc0, … … 335 298 336 299 337 /** weighted prediction for uni-pred 338 * \param TComDataCU* pcCU 339 * \param TComYuv* pcYuvSrc 340 * \param uiPartAddr 341 * \param iWidth 342 * \param iHeight 343 * \param eRefPicList 344 * \param TComYuv* pcYuvPred 345 * \param iPartIdx 346 * \param iRefIdx 347 * \returns Void 348 */ 300 //! weighted prediction for uni-pred 349 301 Void TComWeightPrediction::xWeightedPredictionUni( TComDataCU *const pcCU, 350 302 const TComYuv *const pcYuvSrc,
Note: See TracChangeset for help on using the changeset viewer.