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
945945 pParam->iMaxNumRefFrame,
946946 iSpsId, pParam->bEnableFrameCroppingFlag, pParam->iRCMode != RC_OFF_MODE);
947947
948− if (iDlayerCount > 1) {
948+ if (pDlayerParam->uiProfileIdc == PRO_BASELINE) {
949949 pSps->bConstraintSet0Flag = true;
950+ }
951+ if (pDlayerParam->uiProfileIdc <= PRO_MAIN) {
950952 pSps->bConstraintSet1Flag = true;
953+ }
954+ if (iDlayerCount > 1) {
951955 pSps->bConstraintSet2Flag = true;
952956 }
953957 } 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