History

Remove stub interfaces for hw decoding

There is no implementation available for actually doing decoding in HW.

Martin Storsjö committed 12 years ago

Commit 55d74911 parent 136931c10 files · +6 −215Browse files

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

Unified · Split

codec/decoder/core/src/decoder_core.cpp+0−8
@@ -76,9 +76,6 @@ static inline int32_t DecodeFrameConstruction (PWelsDecoderContext pCtx, uint8_t · 75 unmodified lines
7676 "DecodeFrameConstruction()::::output good I frame, %d x %d, crop_left:%d, crop_right:%d, crop_top:%d, crop_bottom:%d.\n",
7777 kiWidth, kiHeight, pCtx->sFrameCrop.iLeftOffset, pCtx->sFrameCrop.iRightOffset, pCtx->sFrameCrop.iTopOffset,
7878 pCtx->sFrameCrop.iBottomOffset);
79− WelsLog (pCtx, WELS_LOG_INFO, "After decoding, set_mode:[%s], eWorkMode:[%s], eBufferProperty:[%s]\n",
80− DECODER_MODE_NAME (pCtx->iSetMode), DECODER_MODE_NAME (pCtx->iDecoderMode),
81− OUTPUT_PROPERTY_NAME (pDstInfo->eBufferProperty));
8279 }
8380
8481 //////output:::normal path
@@ -99,7 +96,6 @@ static inline int32_t DecodeFrameConstruction (PWelsDecoderContext pCtx, uint8_t · 14 unmodified lines
9996 ppDst[0] = ppDst[0] + pCtx->sFrameCrop.iTopOffset * 2 * pPic->iLinesize[0] + pCtx->sFrameCrop.iLeftOffset * 2;
10097 ppDst[1] = ppDst[1] + pCtx->sFrameCrop.iTopOffset * pPic->iLinesize[1] + pCtx->sFrameCrop.iLeftOffset;
10198 ppDst[2] = ppDst[2] + pCtx->sFrameCrop.iTopOffset * pPic->iLinesize[1] + pCtx->sFrameCrop.iLeftOffset;
102− pDstInfo->eBufferProperty = BUFFER_HOST;
10399 pDstInfo->iBufferStatus = 1;
104100
105101 return 0;
@@ -935,7 +931,6 @@ int32_t InitialDqLayersContext (PWelsDecoderContext pCtx, const int32_t kiMaxWid · 829 unmodified lines
935931 return ERR_INFO_OUT_OF_MEMORY;
936932
937933 memset (pDq, 0, sizeof (SDqLayer));
938− if (pCtx->iDecoderMode == SW_MODE) {
939934
940935 do {
941936 const int32_t kiHshift = iPlaneIdx ? 1 : 0;
@@ -1015,7 +1010,6 @@ int32_t InitialDqLayersContext (PWelsDecoderContext pCtx, const int32_t kiMaxWid · 73 unmodified lines
10151010 (NULL == pCtx->sMb.pInterPredictionDoneFlag[i])
10161011 )
10171012 )
1018− } // end of if(pCtx->iDecoderMode == SW_MODE)
10191013
10201014 pCtx->pDqLayersList[i] = pDq;
10211015 ++ i;
@@ -1580,8 +1574,6 @@ int32_t ConstructAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferI · 558 unmodified lines
15801574 }
15811575
15821576
1583− pDstInfo->eBufferProperty = (EBufferProperty)pCtx->iDecoderOutputProperty;
1584−
15851577 iErr = DecodeCurrentAccessUnit (pCtx, ppDst, iStride, &iWidth, &iHeight, pDstInfo);
15861578
15871579 WelsDecodeAccessUnitEnd (pCtx);

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