History

add win 64 warnings remove

Haibo Zhu committed 12 years ago

Commit daf67d61 parent 0dcb75814 files · +54 −38Browse files

Showing the changes to codec/decoder (5 of 14 files). Show all

Unified · Split

5 files
  1. codec/decoder/core/inc/bit_stream.h +1 −1
  2. codec/decoder/core/inc/dec_golomb.h +5 −5
  3. codec/decoder/core/src/au_parser.cpp +1 −1
  4. codec/decoder/core/src/decode_slice.cpp +3 −2
  5. codec/decoder/core/src/parse_mb_syn_cavlc.cpp +1 −1
codec/decoder/core/inc/bit_stream.h+1−1
@@ -46,7 +46,7 @@ typedef struct TagBitStringAux { · 45 unmodified lines
4646 uint8_t* pEndBuf; // buffer + length
4747 int32_t iBits; // count bits of overall bitstreaming input
4848
49− int32_t iIndex; //only for cavlc usage
49+ intX_t iIndex; //only for cavlc usage
5050 uint8_t* pCurBuf; // current reading position
5151 uint32_t uiCurBits;
5252 int32_t iLeftBits; // count number of available bits left ([1, 8]),
codec/decoder/core/inc/dec_golomb.h+5−5
@@ -75,11 +75,11 @@ namespace WelsDec { · 74 unmodified lines
7575 }
7676
7777 static inline int32_t BsGetBits (PBitStringAux pBs, int32_t iNumBits, uint32_t* pCode) {
78− int32_t iRc = UBITS (pBs->uiCurBits, iNumBits);
79− int32_t iAllowedBytes = pBs->pEndBuf - pBs->pStartBuf; //actual stream bytes
80− int32_t iReadBytes = pBs->pCurBuf - pBs->pStartBuf;
78+ intX_t iRc = UBITS (pBs->uiCurBits, iNumBits);
79+ intX_t iAllowedBytes = pBs->pEndBuf - pBs->pStartBuf; //actual stream bytes
80+ intX_t iReadBytes = pBs->pCurBuf - pBs->pStartBuf;
8181 DUMP_BITS (pBs->uiCurBits, pBs->pCurBuf, pBs->iLeftBits, iNumBits, iAllowedBytes, iReadBytes);
82− *pCode = iRc;
82+ *pCode = (uint32_t)iRc;
8383 return ERR_NONE;
8484 }
8585
@@ -155,7 +155,7 @@ static inline int32_t GetLeadingZeroBits (uint32_t iCurBits) { //<=32 bits · 69 unmodified lines
155155 static inline uint32_t BsGetUe (PBitStringAux pBs, uint32_t* pCode) {
156156 uint32_t iValue = 0;
157157 int32_t iLeadingZeroBits = GetLeadingZeroBits (pBs->uiCurBits);
158− int32_t iAllowedBytes, iReadBytes;
158+ intX_t iAllowedBytes, iReadBytes;
159159 iAllowedBytes = pBs->pEndBuf - pBs->pStartBuf; //actual stream bytes
160160
161161 if (iLeadingZeroBits == -1) { //bistream error
codec/decoder/core/src/au_parser.cpp+1−1
@@ -75,7 +75,7 @@ uint8_t* DetectStartCodePrefix (const uint8_t* kpBuf, int32_t* pOffset, int32_t · 74 unmodified lines
7575 ++ pBits;
7676
7777 if ((iIdx >= 3) && ((* (pBits - 1)) == 0x1)) {
78− *pOffset = ((uintptr_t)pBits) - ((uintptr_t)kpBuf);
78+ *pOffset = (int32_t) (((uintptr_t)pBits) - ((uintptr_t)kpBuf));
7979 return pBits;
8080 }
8181
codec/decoder/core/src/decode_slice.cpp+3−2
@@ -183,7 +183,8 @@ int32_t WelsMbInterConstruction (PWelsDecoderContext pCtx, PDqLayer pCurLayer) { · 182 unmodified lines
183183 GetInterPred (pDstY, pDstCb, pDstCr, pCtx);
184184 WelsMbInterSampleConstruction (pCtx, pCurLayer, pDstY, pDstCb, pDstCr, iLumaStride, iChromaStride);
185185
186− pCtx->sBlockFunc.pWelsSetNonZeroCountFunc (pCurLayer->pNzc[pCurLayer->iMbXyIndex]); // set all none-zero nzc to 1; dbk can be opti!
186+ pCtx->sBlockFunc.pWelsSetNonZeroCountFunc (
187+ pCurLayer->pNzc[pCurLayer->iMbXyIndex]); // set all none-zero nzc to 1; dbk can be opti!
187188 return 0;
188189 }
189190
@@ -322,7 +323,7 @@ int32_t WelsDecodeSlice (PWelsDecoderContext pCtx, bool bFirstSliceInLayer, PNal · 132 unmodified lines
322323 int32_t iMbX, iMbY;
323324 const int32_t kiCountNumMb = pSliceHeader->pSps->uiTotalMbCount; //need to be correct when fmo or multi slice
324325 PBitStringAux pBs = pCurLayer->pBitStringAux;
325− int32_t iUsedBits = 0;
326+ intX_t iUsedBits = 0;
326327
327328 PWelsDecMbCavlcFunc pDecMbCavlcFunc;
328329
codec/decoder/core/src/parse_mb_syn_cavlc.cpp+1−1
@@ -674,7 +674,7 @@ int32_t WelsResidualBlockCavlc (SVlcTable* pVlcTable, uint8_t* pNonZeroCountCach · 673 unmodified lines
674674 int8_t nA, nB, nC;
675675 uint8_t uiTotalCoeff, uiTrailingOnes;
676676 int32_t iUsedBits = 0;
677− int32_t iCurIdx = pBs->iIndex;
677+ intX_t iCurIdx = pBs->iIndex;
678678 uint8_t* pBuf = ((uint8_t*)pBs->pStartBuf) + (iCurIdx >> 3);
679679 bool bChromaDc = (CHROMA_DC == iResidualProperty);
680680 uint8_t bChroma = (bChromaDc || CHROMA_AC == iResidualProperty);

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