History

Convert tabs to spaces in multiline comments

Martin Storsjö committed 11 years ago

Commit b05468b1 parent 853423b67 files · +805 −805Browse files

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

Unified · Split

codec/decoder/core/src/decoder.cpp+31−31
@@ -323,12 +323,12 @@ void WelsDecoderDefaults (PWelsDecoderContext pCtx, SLogContext* pLogCtx) { · 322 unmodified lines
323}323}
324 324
325/*325/*
326 * destory_mb_blocks326 * destory_mb_blocks
327 */327 */
328 328
329 329
330/*330/*
331 * get size of reference picture list in target layer incoming, = (iNumRefFrames331 * get size of reference picture list in target layer incoming, = (iNumRefFrames
332 */332 */
333static inline int32_t GetTargetRefListSize (PWelsDecoderContext pCtx) {333static inline int32_t GetTargetRefListSize (PWelsDecoderContext pCtx) {
334 int32_t iNumRefFrames = 0;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 part353 * request memory blocks for decoder avc part
354 */354 */
355int32_t WelsRequestMem (PWelsDecoderContext pCtx, const int32_t kiMbWidth, const int32_t kiMbHeight) {355int32_t WelsRequestMem (PWelsDecoderContext pCtx, const int32_t kiMbWidth, const int32_t kiMbHeight) {
356 const int32_t kiPicWidth = kiMbWidth << 4;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 avc434 * free memory blocks in avc
435 */435 */
436void WelsFreeMem (PWelsDecoderContext pCtx) {436void WelsFreeMem (PWelsDecoderContext pCtx) {
437 int32_t iListIdx = 0;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 decoder463 * \brief Open decoder
464 */464 */
465int32_t WelsOpenDecoder (PWelsDecoderContext pCtx) {465int32_t WelsOpenDecoder (PWelsDecoderContext pCtx) {
466 // function pointers466 // function pointers
@@ -492,7 +492,7 @@ int32_t WelsOpenDecoder (PWelsDecoderContext pCtx) { · 25 unmodified lines
492}492}
493 493
494/*!494/*!
495 * \brief Close decoder495 * \brief Close decoder
496 */496 */
497void WelsCloseDecoder (PWelsDecoderContext pCtx) {497void WelsCloseDecoder (PWelsDecoderContext pCtx) {
498 WelsFreeMem (pCtx);498 WelsFreeMem (pCtx);
@@ -511,7 +511,7 @@ void WelsCloseDecoder (PWelsDecoderContext pCtx) { · 12 unmodified lines
511}511}
512 512
513/*!513/*!
514 * \brief configure decoder parameters514 * \brief configure decoder parameters
515 */515 */
516int32_t DecoderConfigParam (PWelsDecoderContext pCtx, const SDecodingParam* kpParam) {516int32_t DecoderConfigParam (PWelsDecoderContext pCtx, const SDecodingParam* kpParam) {
517 if (NULL == pCtx || NULL == kpParam)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 memory552 * \brief Initialize Wels decoder parameters and memory
553 *553 *
554 * \param pCtx input context to be initialized at first stage554 * \param pCtx input context to be initialized at first stage
555 *555 *
556 * \return 0 - successed556 * \return 0 - successed
557 * \return 1 - failed557 * \return 1 - failed
558 *558 *
559 * \note N/A559 * \note N/A
560 *************************************************************************************560 *************************************************************************************
561 */561 */
562int32_t WelsInitDecoder (PWelsDecoderContext pCtx, const bool bParseOnly, SLogContext* pLogCtx) {562int32_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 memory577 * \brief Uninitialize Wels decoder parameters and memory
578 *578 *
579 * \param pCtx input context to be uninitialized at release stage579 * \param pCtx input context to be uninitialized at release stage
580 *580 *
581 * \return NONE581 * \return NONE
582 *582 *
583 * \note N/A583 * \note N/A
584 *************************************************************************************584 *************************************************************************************
585 */585 */
586void WelsEndDecoder (PWelsDecoderContext pCtx) {586void 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 context603 * \param pCtx decoder context
604 * \param pBufBs bit streaming buffer604 * \param pBufBs bit streaming buffer
605 * \param kBsLen size in bytes length of bit streaming buffer input605 * \param kBsLen size in bytes length of bit streaming buffer input
606 * \param ppDst picture payload data to be output606 * \param ppDst picture payload data to be output
607 * \param pDstBufInfo buf information of ouput data607 * \param pDstBufInfo buf information of ouput data
608 *608 *
609 * \return 0 - successed609 * \return 0 - successed
610 * \return 1 - failed610 * \return 1 - failed
611 *611 *
612 * \note N/A612 * \note N/A
613 *************************************************************************************613 *************************************************************************************
614 */614 */
615int32_t WelsDecodeBs (PWelsDecoderContext pCtx, const uint8_t* kpBsBuf, const int32_t kiBsLen,615int32_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)810 * \brief make sure synchonozization picture resolution (get from slice header) among different parts (i.e, memory related and so on)
811 * over decoder internal811 * over decoder internal
812 * ( MB coordinate and parts of data within decoder context structure )812 * ( MB coordinate and parts of data within decoder context structure )
813 * \param pCtx Wels decoder context813 * \param pCtx Wels decoder context
814 * \param iMbWidth MB width814 * \param iMbWidth MB width
815 * \pram iMbHeight MB height815 * \pram iMbHeight MB height
816 * \return 0 - successful; none 0 - something wrong816 * \return 0 - successful; none 0 - something wrong
817 */817 */
818int32_t SyncPictureResolutionExt (PWelsDecoderContext pCtx, const int32_t kiMbWidth, const int32_t kiMbHeight) {818int32_t SyncPictureResolutionExt (PWelsDecoderContext pCtx, const int32_t kiMbWidth, const int32_t kiMbHeight) {
819 int32_t iErr = ERR_NONE;819 int32_t iErr = ERR_NONE;

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