History

decode_slice: Rename ComputeColocated

Rename the ComputeColocated method to ComputeColocatedTemporalScaling to make it clearer what it's doing, and add a comment about it. Remove some obsolete comments

Jan Schmidt committed 7 years ago

Commit 8c006e21 parent 579a5bc3 files · +8 −9Browse files

Showing the changes to codec/decoder/core/src/decode_slice.cpp (1 of 3 files). Show all

Unified · Split

codec/decoder/core/src/decode_slice.cpp+5−6
@@ -2855,7 +2855,11 @@ void WelsBlockZero16x16_c (int16_t* pBlock, int32_t iStride) { · 2854 unmodified lines
2855void WelsBlockZero8x8_c (int16_t* pBlock, int32_t iStride) {2855void WelsBlockZero8x8_c (int16_t* pBlock, int32_t iStride) {
2856 WelsBlockInit (pBlock, 8, 8, iStride, 0);2856 WelsBlockInit (pBlock, 8, 8, iStride, 0);
2857}2857}
2858bool ComputeColocated (PWelsDecoderContext pCtx) {2858
2859// Compute the temporal-direct scaling factor that's common
2860// to all direct MBs in this slice, as per clause 8.4.1.2.3
2861// of T-REC H.264 201704
2862bool ComputeColocatedTemporalScaling (PWelsDecoderContext pCtx) {
2859 PDqLayer pCurLayer = pCtx->pCurDqLayer;2863 PDqLayer pCurLayer = pCtx->pCurDqLayer;
2860 PSlice pCurSlice = &pCurLayer->sLayerInfo.sSliceInLayer;2864 PSlice pCurSlice = &pCurLayer->sLayerInfo.sSliceInLayer;
2861 PSliceHeader pSliceHeader = &pCurSlice->sSliceHeaderExt.sSliceHeader;2865 PSliceHeader pSliceHeader = &pCurSlice->sSliceHeaderExt.sSliceHeader;
@@ -2879,11 +2883,6 @@ bool ComputeColocated (PWelsDecoderContext pCtx) { · 17 unmodified lines
2879 }2883 }
2880 }2884 }
2881 }2885 }
2882 //Implement the following
2883 //get Mv_colocated_L1
2884 //and do calculation
2885 //iMvp[LIST_0] = Mv_colocated_L1 * (POC(cur) - POC(L0))/POC(L1) - POC(L0))
2886 //iMvp[LIST_1] = Mv_colocated_L1 * (POC(cur) - POC(L1))/POC(L1) - POC(L0))
2887 return true;2886 return true;
2888}2887}
2889} // namespace WelsDec2888} // namespace WelsDec

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t