Changeset 1417 in SHVCSoftware for branches/SHM-dev
- Timestamp:
- 4 Aug 2015, 19:41:12 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1415 r1417 1787 1787 Int data; 1788 1788 const Int *src = scalingList->getScalingListAddress(sizeId, listId); 1789 if( sizeId > SCALING_LIST_8x8 ) 1790 { 1791 WRITE_SVLC( scalingList->getScalingListDC(sizeId,listId) - 8, "scaling_list_dc_coef_minus8"); 1792 nextCoef = scalingList->getScalingListDC(sizeId,listId); 1793 } 1794 for(Int i=0;i<coefNum;i++) 1795 { 1796 data = src[scan[i]] - nextCoef; 1797 nextCoef = src[scan[i]]; 1798 if(data > 127) 1799 { 1800 data = data - 256; 1801 } 1802 if(data < -128) 1803 { 1804 data = data + 256; 1805 } 1806 1807 WRITE_SVLC( data, "scaling_list_delta_coef"); 1808 } 1809 } 1789 if( sizeId > SCALING_LIST_8x8 ) 1790 { 1791 WRITE_SVLC( scalingList->getScalingListDC(sizeId,listId) - 8, "scaling_list_dc_coef_minus8"); 1792 nextCoef = scalingList->getScalingListDC(sizeId,listId); 1793 } 1794 for(Int i=0;i<coefNum;i++) 1795 { 1796 data = src[scan[i]] - nextCoef; 1797 nextCoef = src[scan[i]]; 1798 if(data > 127) 1799 { 1800 data = data - 256; 1801 } 1802 if(data < -128) 1803 { 1804 data = data + 256; 1805 } 1806 1807 WRITE_SVLC( data, "scaling_list_delta_coef"); 1808 } 1809 } 1810 1810 1811 Bool TEncCavlc::findMatchingLTRP ( TComSlice* pcSlice, UInt *ltrpsIndex, Int ltrpPOC, Bool usedFlag ) 1811 1812 {
Note: See TracChangeset for help on using the changeset viewer.