mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Set luma and chroma bit depths in Format from Rtsp
This commit is contained in:
parent
fc61d96d5c
commit
d454bd0601
1 changed files with 8 additions and 0 deletions
|
|
@ -421,6 +421,10 @@ import com.google.common.collect.ImmutableMap;
|
|||
formatBuilder.setPixelWidthHeightRatio(spsData.pixelWidthHeightRatio);
|
||||
formatBuilder.setHeight(spsData.height);
|
||||
formatBuilder.setWidth(spsData.width);
|
||||
int bitdepthLuma = spsData.bitDepthLumaMinus8 + 8;
|
||||
formatBuilder.setLumaBitdepth(bitdepthLuma);
|
||||
int bitdepthChroma = spsData.bitDepthChromaMinus8 + 8;
|
||||
formatBuilder.setChromaBitdepth(bitdepthChroma);
|
||||
|
||||
@Nullable String profileLevel = fmtpAttributes.get(PARAMETER_PROFILE_LEVEL_ID);
|
||||
if (profileLevel != null) {
|
||||
|
|
@ -464,6 +468,10 @@ import com.google.common.collect.ImmutableMap;
|
|||
spsNalDataWithStartCode, NAL_START_CODE.length, spsNalDataWithStartCode.length);
|
||||
formatBuilder.setPixelWidthHeightRatio(spsData.pixelWidthHeightRatio);
|
||||
formatBuilder.setHeight(spsData.height).setWidth(spsData.width);
|
||||
int bitdepthLuma = spsData.bitDepthLumaMinus8 + 8;
|
||||
formatBuilder.setLumaBitdepth(bitdepthLuma);
|
||||
int bitdepthChroma = spsData.bitDepthChromaMinus8 + 8;
|
||||
formatBuilder.setChromaBitdepth(bitdepthChroma);
|
||||
|
||||
formatBuilder.setCodecs(
|
||||
CodecSpecificDataUtil.buildHevcCodecString(
|
||||
|
|
|
|||
Loading…
Reference in a new issue