History

remove API data format in decoder in 1.6

huili2 committed 11 years ago

Commit dc2cbe41 parent 991b05f12 files · +12 −132Browse files

Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 12 files). Show all

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+2−19
@@ -289,20 +289,7 @@ long CWelsDecoder::SetOption (DECODER_OPTION eOptID, void* pOption) { · 288 unmodified lines
289289 if (m_pDecContext == NULL && eOptID != DECODER_OPTION_TRACE_LEVEL &&
290290 eOptID != DECODER_OPTION_TRACE_CALLBACK && eOptID != DECODER_OPTION_TRACE_CALLBACK_CONTEXT)
291291 return dsInitialOptExpected;
292−
293− if (eOptID == DECODER_OPTION_DATAFORMAT) { // Set color space of decoding output frame
294− if (m_pDecContext->bParseOnly) {
295− WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_WARNING,
296− "CWelsDecoder::SetOption for data format meaningless for parseonly.");
297− return cmResultSuccess;
298− }
299− if (pOption == NULL)
300− return cmInitParaError;
301−
302− iVal = * ((int*)pOption); // is_rgb
303−
304− return DecoderSetCsp (m_pDecContext, iVal);
305− } else if (eOptID == DECODER_OPTION_END_OF_STREAM) { // Indicate bit-stream of the final frame to be decoded
292+ if (eOptID == DECODER_OPTION_END_OF_STREAM) { // Indicate bit-stream of the final frame to be decoded
306293 if (pOption == NULL)
307294 return cmInitParaError;
308295
@@ -371,11 +358,7 @@ long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void* pOption) { · 62 unmodified lines
371358 if (pOption == NULL)
372359 return cmInitParaError;
373360
374− if (DECODER_OPTION_DATAFORMAT == eOptID) {
375− iVal = (int32_t) m_pDecContext->eOutputColorFormat;
376− * ((int*)pOption) = iVal;
377− return cmResultSuccess;
378− } else if (DECODER_OPTION_END_OF_STREAM == eOptID) {
361+ if (DECODER_OPTION_END_OF_STREAM == eOptID) {
379362 iVal = m_pDecContext->bEndOfStreamFlag;
380363 * ((int*)pOption) = iVal;
381364 return cmResultSuccess;

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