History

Set constraint set 0 and 1 flags for non-scalable as well

This allows decoders to know that a baseline stream doesn't contain any of the features that aren't in the constrained baseline subset. Set the flags based on what profile we target.

Martin Storsjö committed 12 years ago

Commit 53e2f671 parent 3abd54c6 files · +8468 −8464Browse files

Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 6 files). Show all

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+5−1
@@ -945,9 +945,13 @@ static inline int32_t InitDqLayers (sWelsEncCtx** ppCtx) { · 944 unmodified lines
945 pParam->iMaxNumRefFrame,945 pParam->iMaxNumRefFrame,
946 iSpsId, pParam->bEnableFrameCroppingFlag, pParam->iRCMode != RC_OFF_MODE);946 iSpsId, pParam->bEnableFrameCroppingFlag, pParam->iRCMode != RC_OFF_MODE);
947 947
948 if (iDlayerCount > 1) {948 if (pDlayerParam->uiProfileIdc == PRO_BASELINE) {
949 pSps->bConstraintSet0Flag = true;949 pSps->bConstraintSet0Flag = true;
950 }
951 if (pDlayerParam->uiProfileIdc <= PRO_MAIN) {
950 pSps->bConstraintSet1Flag = true;952 pSps->bConstraintSet1Flag = true;
953 }
954 if (iDlayerCount > 1) {
951 pSps->bConstraintSet2Flag = true;955 pSps->bConstraintSet2Flag = true;
952 }956 }
953 } else {957 } else {

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