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
28552855 void WelsBlockZero8x8_c (int16_t* pBlock, int32_t iStride) {
28562856 WelsBlockInit (pBlock, 8, 8, iStride, 0);
28572857 }
2858−bool 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
2862+bool ComputeColocatedTemporalScaling (PWelsDecoderContext pCtx) {
28592863 PDqLayer pCurLayer = pCtx->pCurDqLayer;
28602864 PSlice pCurSlice = &pCurLayer->sLayerInfo.sSliceInLayer;
28612865 PSliceHeader pSliceHeader = &pCurSlice->sSliceHeaderExt.sSliceHeader;
@@ -2879,11 +2883,6 @@ bool ComputeColocated (PWelsDecoderContext pCtx) { · 17 unmodified lines
28792883 }
28802884 }
28812885 }
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))
28872886 return true;
28882887 }
28892888 } // 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