Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 67 files). Show all
Unified · Split
| @@ -315,7 +315,7 @@ int32_t ParsePredWeightedTable (PBitStringAux pBs, PSliceHeader pSh) { · 314 unmodified lines | ||
| 315 | 315 | } |
| 316 | 316 | |
| 317 | 317 | /* |
| 318 | − * Predeclared function routines .. | |
| 318 | + * Predeclared function routines .. | |
| 319 | 319 | */ |
| 320 | 320 | int32_t ParseRefPicListReordering (PBitStringAux pBs, PSliceHeader pSh) { |
| 321 | 321 | int32_t iList = 0; |
| @@ -538,7 +538,7 @@ int32_t CheckBsBuffer (PWelsDecoderContext pCtx, const int32_t kiSrcLen) { · 216 unmodified lines | ||
| 538 | 538 | * Especially for: |
| 539 | 539 | * rbsp_au_buffer, cur_dq_layer_ptr and ref_dq_layer_ptr in MB info cache. |
| 540 | 540 | * return: |
| 541 | − * 0 - success; otherwise returned error_no defined in error_no.h. | |
| 541 | + * 0 - success; otherwise returned error_no defined in error_no.h. | |
| 542 | 542 | */ |
| 543 | 543 | int32_t WelsInitMemory (PWelsDecoderContext pCtx) { |
| 544 | 544 | if (pCtx == NULL) { |
| @@ -600,11 +600,11 @@ void WelsFreeMemory (PWelsDecoderContext pCtx) { · 55 unmodified lines | ||
| 600 | 600 | } |
| 601 | 601 | } |
| 602 | 602 | /* |
| 603 | − * DecodeNalHeaderExt | |
| 604 | − * Trigger condition: NAL_UNIT_TYPE = NAL_UNIT_PREFIX or NAL_UNIT_CODED_SLICE_EXT | |
| 605 | − * Parameter: | |
| 606 | − * pNal: target NALUnit ptr | |
| 607 | − * pSrc: NAL Unit bitstream | |
| 603 | + * DecodeNalHeaderExt | |
| 604 | + * Trigger condition: NAL_UNIT_TYPE = NAL_UNIT_PREFIX or NAL_UNIT_CODED_SLICE_EXT | |
| 605 | + * Parameter: | |
| 606 | + * pNal: target NALUnit ptr | |
| 607 | + * pSrc: NAL Unit bitstream | |
| 608 | 608 | */ |
| 609 | 609 | void DecodeNalHeaderExt (PNalUnit pNal, uint8_t* pSrc) { |
| 610 | 610 | PNalUnitHeaderExt pHeaderExt = &pNal->sNalHeaderExt; |
| @@ -636,8 +636,8 @@ void DecodeNalHeaderExt (PNalUnit pNal, uint8_t* pSrc) { · 25 unmodified lines | ||
| 636 | 636 | #define MAX_NUM_REF_IDX_L0_ACTIVE_MINUS1 15 |
| 637 | 637 | #define SLICE_HEADER_CABAC_INIT_IDC_MAX 2 |
| 638 | 638 | /* |
| 639 | − * decode_slice_header_avc | |
| 640 | − * Parse slice header of bitstream in avc for storing data structure | |
| 639 | + * decode_slice_header_avc | |
| 640 | + * Parse slice header of bitstream in avc for storing data structure | |
| 641 | 641 | */ |
| 642 | 642 | int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, const bool kbExtensionFlag) { |
| 643 | 643 | PNalUnit const kpCurNal = pCtx->pAccessUnitList->pNalUnitsList[pCtx->pAccessUnitList->uiAvailUnitsNum - 1]; |
| @@ -1108,9 +1108,9 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 464 unmodified lines | ||
| 1108 | 1108 | } |
| 1109 | 1109 | |
| 1110 | 1110 | /* |
| 1111 | − * Copy relative syntax elements of NALUnitHeaderExt, sRefPicBaseMarking and bStoreRefBasePicFlag in prefix nal unit. | |
| 1112 | − * pSrc: mark as decoded prefix NAL | |
| 1113 | − * ppDst: succeeded VCL NAL based AVC (I/P Slice) | |
| 1111 | + * Copy relative syntax elements of NALUnitHeaderExt, sRefPicBaseMarking and bStoreRefBasePicFlag in prefix nal unit. | |
| 1112 | + * pSrc: mark as decoded prefix NAL | |
| 1113 | + * ppDst: succeeded VCL NAL based AVC (I/P Slice) | |
| 1114 | 1114 | */ |
| 1115 | 1115 | bool PrefetchNalHeaderExtSyntax (PWelsDecoderContext pCtx, PNalUnit const kppDst, PNalUnit const kpSrc) { |
| 1116 | 1116 | PNalUnitHeaderExt pNalHdrExtD = NULL, pNalHdrExtS = NULL; |
| @@ -1507,9 +1507,9 @@ void ResetCurrentAccessUnit (PWelsDecoderContext pCtx) { · 390 unmodified lines | ||
| 1507 | 1507 | } |
| 1508 | 1508 | |
| 1509 | 1509 | /*! |
| 1510 | − * \brief Force reset current Acess Unit Nal list in case error parsing/decoding in current AU | |
| 1510 | + * \brief Force reset current Acess Unit Nal list in case error parsing/decoding in current AU | |
| 1511 | 1511 | * \author |
| 1512 | − * \history 11/16/2009 | |
| 1512 | + * \history 11/16/2009 | |
| 1513 | 1513 | */ |
| 1514 | 1514 | void ForceResetCurrentAccessUnit (PAccessUnit pAu) { |
| 1515 | 1515 | uint32_t uiSucAuIdx = pAu->uiEndPos + 1; |
| @@ -1929,12 +1929,12 @@ void DecodeFinishUpdate (PWelsDecoderContext pCtx) { · 413 unmodified lines | ||
| 1929 | 1929 | * construct an access unit for given input bitstream, maybe partial NAL Unit, one or more Units are involved to |
| 1930 | 1930 | * joint a collective access unit. |
| 1931 | 1931 | * parameter\ |
| 1932 | − * buf: bitstream data buffer | |
| 1933 | − * bit_len: size in bit length of data | |
| 1934 | − * buf_len: size in byte length of data | |
| 1935 | − * coded_au: mark an Access Unit decoding finished | |
| 1932 | + * buf: bitstream data buffer | |
| 1933 | + * bit_len: size in bit length of data | |
| 1934 | + * buf_len: size in byte length of data | |
| 1935 | + * coded_au: mark an Access Unit decoding finished | |
| 1936 | 1936 | * return: |
| 1937 | − * 0 - success; otherwise returned error_no defined in error_no.h | |
| 1937 | + * 0 - success; otherwise returned error_no defined in error_no.h | |
| 1938 | 1938 | */ |
| 1939 | 1939 | int32_t ConstructAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferInfo* pDstInfo) { |
| 1940 | 1940 | int32_t iErr; |
| @@ -2152,7 +2152,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 211 unmodified lines | ||
| 2152 | 2152 | memset (&pLayerInfo, 0, sizeof (SLayerInfo)); |
| 2153 | 2153 | |
| 2154 | 2154 | /* |
| 2155 | − * Loop decoding for slices (even FMO and/ multiple slices) within a dq layer | |
| 2155 | + * Loop decoding for slices (even FMO and/ multiple slices) within a dq layer | |
| 2156 | 2156 | */ |
| 2157 | 2157 | while (iIdx <= iEndIdx) { |
| 2158 | 2158 | bool bReconstructSlice; |