Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HEVCe] Add general_max_14bit_constraint_flag in SPS for SCC profile #272

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ namespace Base
mfxU32 intra : 1;
mfxU32 one_picture_only : 1;
mfxU32 lower_bit_rate : 1;
mfxU32 : 23;
mfxU32 max_14bit : 1;
mfxU32 : 22;
} constraint;
};
mfxU32 rext_constraint_flags_32_42 : 11;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,8 @@ void Packer::PackPTL(BitstreamWriter& bs, LayersInfo const & profile_tier_level,
bs.PutBit(profile_tier_level.general.constraint.intra );
bs.PutBit(profile_tier_level.general.constraint.one_picture_only);
bs.PutBit(profile_tier_level.general.constraint.lower_bit_rate );
bs.PutBits(23, 0);
bs.PutBit(profile_tier_level.general.constraint.max_14bit );
bs.PutBits(22, 0);
bs.PutBits(11, 0);
bs.PutBit(profile_tier_level.general.inbld_flag);
bs.PutBits(8, profile_tier_level.general.level_idc);
Expand Down Expand Up @@ -536,7 +537,8 @@ void Packer::PackPTL(BitstreamWriter& bs, LayersInfo const & profile_tier_level,
bs.PutBit(profile_tier_level.general.constraint.intra);
bs.PutBit(profile_tier_level.general.constraint.one_picture_only);
bs.PutBit(profile_tier_level.general.constraint.lower_bit_rate);
bs.PutBits(23, 0);
bs.PutBit(profile_tier_level.general.constraint.max_14bit);
bs.PutBits(22, 0);
bs.PutBits(11, 0);
bs.PutBit(sl.inbld_flag);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ void SCC::Query1NoCaps(const FeatureBlocks& /*blocks*/, TPushQ1 Push)
vps.general.constraint.max_422chroma = (defpar.mvp.mfx.FrameInfo.ChromaFormat != MFX_CHROMAFORMAT_YUV444);
vps.general.constraint.max_420chroma = (defpar.mvp.mfx.FrameInfo.ChromaFormat != MFX_CHROMAFORMAT_YUV444);
vps.general.constraint.lower_bit_rate = 1;
vps.general.constraint.max_14bit = 1;

return sts;
});
Expand Down