Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
808457f
Add CLI support for vbv
bhavnahariMCW Dec 11, 2018
de97249
Enable vbv for abr mode
bhavnahariMCW Dec 18, 2018
488721b
Added VBV frame level support
dinesh0603 Jan 8, 2019
8f74ea2
1. Fixed Index comparision to compare with current Index + lookAheadD…
dinesh0603 Jan 22, 2019
8f3b2a4
Enforce vbv buffer update to happen in decode order
kirithika7 Jan 23, 2019
f1e1a17
Add new cli -hrd (default 0) + enable flags to signal hrd
kirithika7 Jan 23, 2019
8c2f324
Add support for HRD SEI signalling
kirithika7 Jan 24, 2019
bfd35f2
Add support for Active Parameter Set SEI
kirithika7 Jan 30, 2019
38b744d
Control VBV bufferFill access using mutex
arunaMathes Jan 25, 2019
853a45e
Add cli -vbv-init and remove hard-coded vbv buffer initialization
arunaMathes Jan 31, 2019
87f7729
If rate control is ON, base layer picture will not be processed until…
anaghdin Jan 27, 2019
708bd26
VBV Code clean up and made VBV as function call
dinesh0603 Feb 18, 2019
32dc411
Fix for the deadlock encoding frames fewer than 48
anaghdin Feb 18, 2019
88d1bef
Move vbv algorithm before using picture Qp for other RC context updates
kirithika7 Feb 22, 2019
f4d19b8
Fix Warning: When NAL Unit is non-VCL NAL, TemporalId shall be greate…
kirithika7 Feb 22, 2019
cddec5a
Fix bug:The value of rbsp_stop_one_bit shall be equal to 1 in vps
kirithika7 Feb 25, 2019
96524c4
Fix cbr signalling
kirithika7 Feb 26, 2019
a199b68
Fix Hrd Issue
kirithika7 Feb 27, 2019
e692a04
Fix uninitialized BPnumber value error when hrd is disabled
kirithika7 Feb 28, 2019
c8a7166
Fix Hrd signalling for fixed GOP length
kirithika7 Feb 28, 2019
54eceb4
-Fix 1. encoded bitrate will be within target Bitrate limit 2. previo…
dinesh0603 Mar 5, 2019
429edb5
Add code to copy the pcs context into the Packetization Reorder Queue…
kirithika7 Mar 12, 2019
d857190
Add code to splice the bitstream and insert pic timing SEI
kirithika7 Mar 12, 2019
0d74be5
Fix bugs and cleanup
kirithika7 Mar 12, 2019
22f80ea
Refactor byte shifting code with memcpy+cleanup
kirithika7 Mar 13, 2019
5f52a2f
Add support for strict cbr to prevent hrd buffer overflow
kirithika7 Mar 13, 2019
dd24050
Add code to consider filler bits for RC
kirithika7 Mar 13, 2019
713643e
Merged Master to VBV-DEV branch
dinesh0603 Mar 19, 2019
6311c66
Merge branch 'master' tip into vbv_dev
dinesh0603 Mar 20, 2019
f268574
Update the filler bit error in the packetization feedback to rate con…
kirithika7 Mar 21, 2019
f1cd4c5
Added feedback from packetization to picturemanager to address a dead…
anaghdin Mar 26, 2019
0b1103a
Fix the demux port
anaghdin Mar 27, 2019
494cb24
update the pictureDemuxResultsProducerFifoPtrArray ports
anaghdin Mar 27, 2019
7b70491
Revert the feedback of filler bits error to GOP's virtual Buffer level
kirithika7 Mar 27, 2019
ac9484a
Remove the macro PACK_FEEDBACK
anaghdin Mar 27, 2019
07c3947
Fix for deadlock when vbv is not enabled
kirithika7 Mar 29, 2019
3df55f3
Fix compiler warnings
kirithika7 Mar 29, 2019
707e8fd
Merge branch 'vbv_dev' of https://bitbucket.org/multicoreware/svt-hev…
dinesh0603 Apr 1, 2019
e3b304d
Fix for Final Bitrate is greater than TBR in Strict CBR
dinesh0603 Apr 4, 2019
c009338
Merge branch 'vbv_dev' of https://bitbucket.org/multicoreware/svt-hev…
dinesh0603 Apr 4, 2019
28ae9ae
1.Removed Duplicte code
dinesh0603 Apr 22, 2019
3854916
Merge branch 'master' (Till commit : 2bdfb22) into vbv_dev
dinesh0603 Apr 23, 2019
9db1593
- Updated Sample.cfg for added cli's and Readme
dinesh0603 Apr 24, 2019
0caa1cc
-Modified code as per review comments & coding guidelines
dinesh0603 Apr 25, 2019
5f6db73
Merge branch 'master' into vbv_dev
tianjunwork Apr 30, 2019
5d0af0f
-Modified code as per coding Guidelines
dinesh0603 May 8, 2019
3ad1f46
Merge branch 'master' into vbv_dev
dinesh0603 May 9, 2019
f6482fd
Fix for Deadlock
May 9, 2019
67f68d8
-Modified code as per review comments and coding guidelines
dinesh0603 May 13, 2019
742f9ca
-Removed Duplicate code (encMode) in EbAppConfig.c and Modified code …
dinesh0603 May 13, 2019
a0bceeb
Fixed hrd 1 crash issues caused by writeUvlc long bits, memmove and
Jun 11, 2019
575a4b8
Merge pull request #1 from kelvin412/vbv_dev_crash
dinesh0603 Jun 11, 2019
0acc25b
Fix HRD initialization in packetization
kavithasampath Jun 26, 2019
3b9a0fc
Fix encoder crash with intra period 0
snehaa8 Jun 26, 2019
40bbea8
Merge branch 'master' of https://github.com/OpenVisualCloud/SVT-HEVC …
kirithika7 Jul 19, 2019
2f9c396
Cleanup
kirithika7 Jul 19, 2019
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
Prev Previous commit
Next Next commit
Fix Hrd signalling for fixed GOP length
  • Loading branch information
kirithika7 authored and dinesh0603 committed Mar 19, 2019
commit c8a7166e3f899bc3a66f0aaa345434c8e8aa2326
2 changes: 1 addition & 1 deletion Source/Lib/Codec/EbEncodeContext.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ EB_ERRORTYPE EncodeContextCtor(
encodeContextPtr->initialPicture = EB_TRUE;

encodeContextPtr->lastIdrPicture = 0;

encodeContextPtr->lastIdrPictureOrder = 0;
// Sequence Termination Flags
encodeContextPtr->terminatingPictureNumber = ~0u;
encodeContextPtr->terminatingSequenceFlagReceived = EB_FALSE;
Expand Down
2 changes: 1 addition & 1 deletion Source/Lib/Codec/EbEncodeContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ typedef struct EncodeContext_s
EB_BOOL initialPicture;

EB_U64 lastIdrPicture; // the most recently occured IDR picture (in decode order)

EB_U64 lastIdrPictureOrder;
// Sequence Termination Flags
EB_U64 terminatingPictureNumber;
EB_BOOL terminatingSequenceFlagReceived;
Expand Down
22 changes: 16 additions & 6 deletions Source/Lib/Codec/EbPacketizationProcess.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,8 @@ void* PacketizationKernel(void *inputPtr)
EB_U32 packetizationQp;

EB_PICTURE sliceType;

EB_U64 prevBPpictureNumber;
EB_U64 lastBpnumber=0;
EB_U32 refDecOrder;

for(;;) {

// Get EntropyCoding Results
Expand Down Expand Up @@ -518,7 +517,6 @@ void* PacketizationKernel(void *inputPtr)

// Parsing the linked list and find the user data SEI msgs and code them
sequenceControlSetPtr->picTimingSei.picStruct = 0;
prevBPpictureNumber = pictureControlSetPtr->pictureNumber == 0 ? 0 : lastBpnumber;
if( sequenceControlSetPtr->staticConfig.bufferingPeriodSEI &&
pictureControlSetPtr->sliceType == EB_I_PICTURE &&
sequenceControlSetPtr->staticConfig.videoUsabilityInfo &&
Expand All @@ -528,7 +526,6 @@ void* PacketizationKernel(void *inputPtr)
if (sequenceControlSetPtr->staticConfig.hrdFlag == 1)
{
HrdFullness(sequenceControlSetPtr, pictureControlSetPtr, &sequenceControlSetPtr->bufferingPeriod);
lastBpnumber= pictureControlSetPtr->ParentPcsPtr->decodeOrder;
}
EncodeBufferingPeriodSEI(
pictureControlSetPtr->bitstreamPtr,
Expand All @@ -546,7 +543,20 @@ void* PacketizationKernel(void *inputPtr)
// buffering period SEI message
const AppVideoUsabilityInfo_t* vui = sequenceControlSetPtr->videoUsabilityInfoPtr;
const AppHrdParameters_t* hrd = vui->hrdParametersPtr;
sequenceControlSetPtr->picTimingSei.auCpbRemovalDelayMinus1 = (EB_U32)((MIN(MAX(1, (EB_S32)pictureControlSetPtr->ParentPcsPtr->decodeOrder - (EB_S32)prevBPpictureNumber), (1 << hrd->auCpbRemovalDelayLengthMinus1)))-1);
if (sequenceControlSetPtr->intraRefreshType == CRA_REFRESH)
{
if (pictureControlSetPtr->sliceType == EB_I_PICTURE)
refDecOrder = (EB_S64)((pictureControlSetPtr->pictureNumber - (sequenceControlSetPtr->intraPeriodLength + 1) - ((1 << sequenceControlSetPtr->staticConfig.hierarchicalLevels) - 1))) < 0 ?
0 : (EB_U32)((pictureControlSetPtr->pictureNumber - (sequenceControlSetPtr->intraPeriodLength + 1) - ((1 << sequenceControlSetPtr->staticConfig.hierarchicalLevels) - 1)));
else
refDecOrder = (EB_S64)((((pictureControlSetPtr->pictureNumber + ((1 << sequenceControlSetPtr->staticConfig.hierarchicalLevels) - 1)) / (sequenceControlSetPtr->intraPeriodLength + 1) * (sequenceControlSetPtr->intraPeriodLength + 1))) - ((1 << sequenceControlSetPtr->staticConfig.hierarchicalLevels) - 1)) < 0 ?
0: (EB_U32)((((pictureControlSetPtr->pictureNumber + ((1 << sequenceControlSetPtr->staticConfig.hierarchicalLevels) - 1)) / (sequenceControlSetPtr->intraPeriodLength + 1) * (sequenceControlSetPtr->intraPeriodLength + 1))) - ((1 << sequenceControlSetPtr->staticConfig.hierarchicalLevels) - 1));
}
else
{
refDecOrder = (EB_U32)pictureControlSetPtr->ParentPcsPtr->lastIdrPictureOrder;
}
sequenceControlSetPtr->picTimingSei.auCpbRemovalDelayMinus1 = (EB_U32)((MIN(MAX(1, (EB_S32)(pictureControlSetPtr->ParentPcsPtr->decodeOrder - refDecOrder)), (1 << hrd->auCpbRemovalDelayLengthMinus1)))-1);
sequenceControlSetPtr->picTimingSei.picDpbOutputDelay = (EB_U32)((sequenceControlSetPtr->maxDpbSize-1) + pictureControlSetPtr->pictureNumber - pictureControlSetPtr->ParentPcsPtr->decodeOrder);
}

Expand Down
1 change: 1 addition & 0 deletions Source/Lib/Codec/EbPictureControlSet.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ EB_ERRORTYPE PictureParentControlSetCtor(
objectPtr->totalNumBits = 0;

objectPtr->lastIdrPicture = 0;
objectPtr->lastIdrPictureOrder = 0;

objectPtr->lcuTotalCount = pictureLcuWidth * pictureLcuHeight;

Expand Down
1 change: 1 addition & 0 deletions Source/Lib/Codec/EbPictureControlSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ typedef struct PictureParentControlSet_s
EB_U64 averageQp;

EB_U64 lastIdrPicture;
EB_U64 lastIdrPictureOrder;

EB_U64 startTimeSeconds;
EB_U64 startTimeuSeconds;
Expand Down
7 changes: 6 additions & 1 deletion Source/Lib/Codec/EbPictureDecisionProcess.c
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,12 @@ void* PictureDecisionKernel(void *inputPtr)
else {
pictureControlSetPtr->decodeOrder = pictureControlSetPtr->pictureNumber;
}

if (sequenceControlSetPtr->intraRefreshType == IDR_REFRESH)
{
pictureControlSetPtr->lastIdrPictureOrder = encodeContextPtr->lastIdrPictureOrder;
if (pictureControlSetPtr->sliceType == EB_I_PICTURE)
encodeContextPtr->lastIdrPictureOrder = pictureControlSetPtr->decodeOrder;
}
EbBlockOnMutex(encodeContextPtr->terminatingConditionsMutex);

encodeContextPtr->terminatingSequenceFlagReceived = (pictureControlSetPtr->endOfSequenceFlag == EB_TRUE) ?
Expand Down