Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 67 files). Show all
Unified · Split
| @@ -323,12 +323,12 @@ void WelsDecoderDefaults (PWelsDecoderContext pCtx, SLogContext* pLogCtx) { · 322 unmodified lines | ||
| 323 | 323 | } |
| 324 | 324 | |
| 325 | 325 | /* |
| 326 | − * destory_mb_blocks | |
| 326 | + * destory_mb_blocks | |
| 327 | 327 | */ |
| 328 | 328 | |
| 329 | 329 | |
| 330 | 330 | /* |
| 331 | − * get size of reference picture list in target layer incoming, = (iNumRefFrames | |
| 331 | + * get size of reference picture list in target layer incoming, = (iNumRefFrames | |
| 332 | 332 | */ |
| 333 | 333 | static inline int32_t GetTargetRefListSize (PWelsDecoderContext pCtx) { |
| 334 | 334 | int32_t iNumRefFrames = 0; |
| @@ -350,7 +350,7 @@ static inline int32_t GetTargetRefListSize (PWelsDecoderContext pCtx) { · 15 unmodified lines | ||
| 350 | 350 | } |
| 351 | 351 | |
| 352 | 352 | /* |
| 353 | − * request memory blocks for decoder avc part | |
| 353 | + * request memory blocks for decoder avc part | |
| 354 | 354 | */ |
| 355 | 355 | int32_t WelsRequestMem (PWelsDecoderContext pCtx, const int32_t kiMbWidth, const int32_t kiMbHeight) { |
| 356 | 356 | const int32_t kiPicWidth = kiMbWidth << 4; |
| @@ -431,7 +431,7 @@ int32_t WelsRequestMem (PWelsDecoderContext pCtx, const int32_t kiMbWidth, const · 74 unmodified lines | ||
| 431 | 431 | } |
| 432 | 432 | |
| 433 | 433 | /* |
| 434 | − * free memory blocks in avc | |
| 434 | + * free memory blocks in avc | |
| 435 | 435 | */ |
| 436 | 436 | void WelsFreeMem (PWelsDecoderContext pCtx) { |
| 437 | 437 | int32_t iListIdx = 0; |
| @@ -460,7 +460,7 @@ void WelsFreeMem (PWelsDecoderContext pCtx) { · 22 unmodified lines | ||
| 460 | 460 | } |
| 461 | 461 | |
| 462 | 462 | /*! |
| 463 | − * \brief Open decoder | |
| 463 | + * \brief Open decoder | |
| 464 | 464 | */ |
| 465 | 465 | int32_t WelsOpenDecoder (PWelsDecoderContext pCtx) { |
| 466 | 466 | // function pointers |
| @@ -492,7 +492,7 @@ int32_t WelsOpenDecoder (PWelsDecoderContext pCtx) { · 25 unmodified lines | ||
| 492 | 492 | } |
| 493 | 493 | |
| 494 | 494 | /*! |
| 495 | − * \brief Close decoder | |
| 495 | + * \brief Close decoder | |
| 496 | 496 | */ |
| 497 | 497 | void WelsCloseDecoder (PWelsDecoderContext pCtx) { |
| 498 | 498 | WelsFreeMem (pCtx); |
| @@ -511,7 +511,7 @@ void WelsCloseDecoder (PWelsDecoderContext pCtx) { · 12 unmodified lines | ||
| 511 | 511 | } |
| 512 | 512 | |
| 513 | 513 | /*! |
| 514 | − * \brief configure decoder parameters | |
| 514 | + * \brief configure decoder parameters | |
| 515 | 515 | */ |
| 516 | 516 | int32_t DecoderConfigParam (PWelsDecoderContext pCtx, const SDecodingParam* kpParam) { |
| 517 | 517 | if (NULL == pCtx || NULL == kpParam) |
| @@ -549,14 +549,14 @@ int32_t DecoderConfigParam (PWelsDecoderContext pCtx, const SDecodingParam* kpPa · 31 unmodified lines | ||
| 549 | 549 | |
| 550 | 550 | /*! |
| 551 | 551 | ************************************************************************************* |
| 552 | − * \brief Initialize Wels decoder parameters and memory | |
| 552 | + * \brief Initialize Wels decoder parameters and memory | |
| 553 | 553 | * |
| 554 | − * \param pCtx input context to be initialized at first stage | |
| 554 | + * \param pCtx input context to be initialized at first stage | |
| 555 | 555 | * |
| 556 | − * \return 0 - successed | |
| 557 | − * \return 1 - failed | |
| 556 | + * \return 0 - successed | |
| 557 | + * \return 1 - failed | |
| 558 | 558 | * |
| 559 | − * \note N/A | |
| 559 | + * \note N/A | |
| 560 | 560 | ************************************************************************************* |
| 561 | 561 | */ |
| 562 | 562 | int32_t WelsInitDecoder (PWelsDecoderContext pCtx, const bool bParseOnly, SLogContext* pLogCtx) { |
| @@ -574,13 +574,13 @@ int32_t WelsInitDecoder (PWelsDecoderContext pCtx, const bool bParseOnly, SLogCo · 11 unmodified lines | ||
| 574 | 574 | |
| 575 | 575 | /*! |
| 576 | 576 | ************************************************************************************* |
| 577 | − * \brief Uninitialize Wels decoder parameters and memory | |
| 577 | + * \brief Uninitialize Wels decoder parameters and memory | |
| 578 | 578 | * |
| 579 | − * \param pCtx input context to be uninitialized at release stage | |
| 579 | + * \param pCtx input context to be uninitialized at release stage | |
| 580 | 580 | * |
| 581 | − * \return NONE | |
| 581 | + * \return NONE | |
| 582 | 582 | * |
| 583 | − * \note N/A | |
| 583 | + * \note N/A | |
| 584 | 584 | ************************************************************************************* |
| 585 | 585 | */ |
| 586 | 586 | void WelsEndDecoder (PWelsDecoderContext pCtx) { |
| @@ -598,18 +598,18 @@ void GetVclNalTemporalId (PWelsDecoderContext pCtx) { · 11 unmodified lines | ||
| 598 | 598 | |
| 599 | 599 | /*! |
| 600 | 600 | ************************************************************************************* |
| 601 | − * \brief First entrance to decoding core interface. | |
| 601 | + * \brief First entrance to decoding core interface. | |
| 602 | 602 | * |
| 603 | − * \param pCtx decoder context | |
| 604 | − * \param pBufBs bit streaming buffer | |
| 605 | − * \param kBsLen size in bytes length of bit streaming buffer input | |
| 606 | − * \param ppDst picture payload data to be output | |
| 607 | − * \param pDstBufInfo buf information of ouput data | |
| 603 | + * \param pCtx decoder context | |
| 604 | + * \param pBufBs bit streaming buffer | |
| 605 | + * \param kBsLen size in bytes length of bit streaming buffer input | |
| 606 | + * \param ppDst picture payload data to be output | |
| 607 | + * \param pDstBufInfo buf information of ouput data | |
| 608 | 608 | * |
| 609 | − * \return 0 - successed | |
| 610 | − * \return 1 - failed | |
| 609 | + * \return 0 - successed | |
| 610 | + * \return 1 - failed | |
| 611 | 611 | * |
| 612 | − * \note N/A | |
| 612 | + * \note N/A | |
| 613 | 613 | ************************************************************************************* |
| 614 | 614 | */ |
| 615 | 615 | int32_t WelsDecodeBs (PWelsDecoderContext pCtx, const uint8_t* kpBsBuf, const int32_t kiBsLen, |
| @@ -807,13 +807,13 @@ int32_t DecoderSetCsp (PWelsDecoderContext pCtx, const int32_t kiColorFormat) { · 191 unmodified lines | ||
| 807 | 807 | } |
| 808 | 808 | |
| 809 | 809 | /*! |
| 810 | − * \brief make sure synchonozization picture resolution (get from slice header) among different parts (i.e, memory related and so on) | |
| 811 | − * over decoder internal | |
| 810 | + * \brief make sure synchonozization picture resolution (get from slice header) among different parts (i.e, memory related and so on) | |
| 811 | + * over decoder internal | |
| 812 | 812 | * ( MB coordinate and parts of data within decoder context structure ) |
| 813 | − * \param pCtx Wels decoder context | |
| 814 | − * \param iMbWidth MB width | |
| 815 | − * \pram iMbHeight MB height | |
| 816 | − * \return 0 - successful; none 0 - something wrong | |
| 813 | + * \param pCtx Wels decoder context | |
| 814 | + * \param iMbWidth MB width | |
| 815 | + * \pram iMbHeight MB height | |
| 816 | + * \return 0 - successful; none 0 - something wrong | |
| 817 | 817 | */ |
| 818 | 818 | int32_t SyncPictureResolutionExt (PWelsDecoderContext pCtx, const int32_t kiMbWidth, const int32_t kiMbHeight) { |
| 819 | 819 | int32_t iErr = ERR_NONE; |