History

add decoder capability info

huili2 committed 12 years ago

Commit 0b23d0f1 parent 0951c8f5 files · +54 −1Browse files

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

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+17−0
@@ -476,7 +476,24 @@ DECODING_STATE CWelsDecoder::DecodeFrameEx (const unsigned char* kpSrc, · 475 unmodified lines
476476
477477
478478 using namespace WelsDec;
479+/*
480+* WelsGetDecoderCapability
481+* @return: DecCapability information
482+*/
483+int WelsGetDecoderCapability(SDecoderCapability* pDecCapability) {
484+ memset (pDecCapability, 0, sizeof (SDecoderCapability));
485+ pDecCapability->iProfileIdc = 66; //Baseline
486+ pDecCapability->iProfileIop = 0xE0; //11100000b
487+ pDecCapability->iLevelIdc = 32; //level_idc = 3.2
488+ pDecCapability->iMaxMbps = 216000; //from level_idc = 3.2
489+ pDecCapability->iMaxFs = 5120; //from level_idc = 3.2
490+ pDecCapability->iMaxCpb = 20000; //from level_idc = 3.2
491+ pDecCapability->iMaxDpb = 20480; //from level_idc = 3.2
492+ pDecCapability->iMaxBr = 20000; //from level_idc = 3.2
493+ pDecCapability->bRedPicCap = 0; //not support redundant pic
479494
495+ return ERR_NONE;
496+}
480497 /* WINAPI is indeed in prefix due to sync to application layer callings!! */
481498
482499 /*

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