History

make the decoder compile and run with treason

Sigrid Solveig Haflínudóttir committed 5 years ago

Commit 37423d41 parent be8e62f71 files · +961 −1217Browse files

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

Unified · Split

codec/decoder/core/src/fmo.cpp+5−9
@@ -42,8 +42,6 @@ · 41 unmodified lines
4242 #include "memory_align.h"
4343 #include "error_code.h"
4444
45−namespace WelsDec {
46−
4745 /*!
4846 * \brief Generate MB allocated map for interleaved slice group (TYPE 0)
4947 *
@@ -53,8 +51,8 @@ namespace WelsDec { · 3 unmodified lines
5351 * \return 0 - successful; none 0 - failed
5452 */
5553 static inline int32_t FmoGenerateMbAllocMapType0 (PFmo pFmo, PPps pPps) {
56− uint32_t uiNumSliceGroups = 0;
57− int32_t iMbNum = 0;
54+ uint32_t uiNumSliceGroups;
55+ int32_t iMbNum;
5856 int32_t i = 0;
5957
6058 WELS_VERIFY_RETURN_IF (ERR_INFO_INVALID_PARAM, (NULL == pFmo || NULL == pPps))
@@ -90,8 +88,8 @@ static inline int32_t FmoGenerateMbAllocMapType0 (PFmo pFmo, PPps pPps) { · 29 unmodified lines
9088 * \return 0 - successful; none 0 - failed
9189 */
9290 static inline int32_t FmoGenerateMbAllocMapType1 (PFmo pFmo, PPps pPps, const int32_t kiMbWidth) {
93− uint32_t uiNumSliceGroups = 0;
94− int32_t iMbNum = 0;
91+ uint32_t uiNumSliceGroups;
92+ int32_t iMbNum;
9593 int32_t i = 0;
9694 WELS_VERIFY_RETURN_IF (ERR_INFO_INVALID_PARAM, (NULL == pFmo || NULL == pPps))
9795 uiNumSliceGroups = pPps->uiNumSliceGroups;
@@ -119,7 +117,7 @@ static inline int32_t FmoGenerateMbAllocMapType1 (PFmo pFmo, PPps pPps, const in · 21 unmodified lines
119117 */
120118 static inline int32_t FmoGenerateSliceGroup (PFmo pFmo, const PPps kpPps, const int32_t kiMbWidth,
121119 const int32_t kiMbHeight, CMemoryAlign* pMa) {
122− int32_t iNumMb = 0;
120+ int32_t iNumMb;
123121 int32_t iErr = 0;
124122 bool bResolutionChanged = false;
125123
@@ -322,5 +320,3 @@ MB_XY_T FmoNextMb (PFmo pFmo, const MB_XY_T kiMbXy) { · 196 unmodified lines
322320 // -1: No further MB in this slice (could be end of picture)
323321 return iNextMb;
324322 }
325−
326−} // 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