-
Notifications
You must be signed in to change notification settings - Fork 168
Vbv dev #155
Vbv dev #155
Changes from 1 commit
808457f
de97249
488721b
8f74ea2
8f3b2a4
f1e1a17
8c2f324
bfd35f2
38b744d
853a45e
87f7729
708bd26
32dc411
88d1bef
f4d19b8
cddec5a
96524c4
a199b68
e692a04
c8a7166
54eceb4
429edb5
d857190
0d74be5
22f80ea
5f52a2f
dd24050
713643e
6311c66
f268574
f1cd4c5
0b1103a
494cb24
7b70491
ac9484a
07c3947
3df55f3
707e8fd
e3b304d
c009338
28ae9ae
3854916
9db1593
0caa1cc
5f6db73
5d0af0f
3ad1f46
f6482fd
67f68d8
742f9ca
a0bceeb
575a4b8
0acc25b
3b9a0fc
40bbea8
2f9c396
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -208,10 +208,10 @@ static void SetEnableConstrainedIntra (const char *value, EbConfig_t * | |
| static void SetCfgTune (const char *value, EbConfig_t *cfg) {cfg->tune = (uint8_t)strtoul(value, NULL, 0); }; | ||
| static void SetBitRateReduction (const char *value, EbConfig_t *cfg) {cfg->bitRateReduction = (EB_BOOL)strtol(value, NULL, 0); }; | ||
| static void SetImproveSharpness (const char *value, EbConfig_t *cfg) {cfg->improveSharpness = (EB_BOOL)strtol(value, NULL, 0);}; | ||
| static void SetVbvMaxrate (const char *value, EbConfig_t *cfg) { cfg->vbvMaxRate = strtoul(value, NULL, 0); }; | ||
| static void SetVbvBufsize (const char *value, EbConfig_t *cfg) { cfg->vbvBufsize = strtoul(value, NULL, 0); }; | ||
| static void SetVbvBufInit (const char *value, EbConfig_t *cfg) { cfg->vbvBufInit = strtoul(value, NULL, 0); }; | ||
| static void SetHrdFlag (const char *value, EbConfig_t *cfg) { cfg->hrdFlag = strtoul(value, NULL, 0); }; | ||
| static void SetVbvMaxrate (const char *value, EbConfig_t *cfg) { cfg->vbvMaxRate = strtoul(value, NULL, 0);}; | ||
| static void SetVbvBufsize (const char *value, EbConfig_t *cfg) { cfg->vbvBufsize = strtoul(value, NULL, 0);}; | ||
| static void SetVbvBufInit (const char *value, EbConfig_t *cfg) { cfg->vbvBufInit = strtoul(value, NULL, 0);}; | ||
| static void SetHrdFlag (const char *value, EbConfig_t *cfg) { cfg->hrdFlag = strtoul(value, NULL, 0);}; | ||
| static void SetVideoUsabilityInfo (const char *value, EbConfig_t *cfg) {cfg->videoUsabilityInfo = strtol(value, NULL, 0);}; | ||
| static void SetHighDynamicRangeInput (const char *value, EbConfig_t *cfg) {cfg->highDynamicRangeInput = strtol(value, NULL, 0);}; | ||
| static void SetAccessUnitDelimiter (const char *value, EbConfig_t *cfg) {cfg->accessUnitDelimiter = strtol(value, NULL, 0);}; | ||
|
|
@@ -329,12 +329,9 @@ config_entry_t config_entry[] = { | |
|
|
||
| // Quantization | ||
| { SINGLE_INPUT, QP_TOKEN, "QP", SetCfgQp }, | ||
|
|
||
|
|
||
| { SINGLE_INPUT, USE_QP_FILE_TOKEN, "UseQpFile", SetCfgUseQpFile }, | ||
|
||
|
|
||
| { SINGLE_INPUT, RATE_CONTROL_ENABLE_TOKEN, "RateControlMode", SetRateControlMode }, | ||
| { SINGLE_INPUT, LOOK_AHEAD_DIST_TOKEN, "LookAheadDistance", SetLookAheadDistance}, | ||
| { SINGLE_INPUT, LOOK_AHEAD_DIST_TOKEN, "LookAheadDistance", SetLookAheadDistance}, | ||
| { SINGLE_INPUT, TARGET_BIT_RATE_TOKEN, "TargetBitRate", SetTargetBitRate }, | ||
|
||
| { SINGLE_INPUT, MAX_QP_TOKEN, "MaxQpAllowed", SetMaxQpAllowed }, | ||
| { SINGLE_INPUT, MIN_QP_TOKEN, "MinQpAllowed", SetMinQpAllowed }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2224,9 +2224,8 @@ void CopyApiFromApp( | |
| } | ||
|
|
||
| //Set required flags to signal vbv status when hrd is enabled | ||
| if (sequenceControlSetPtr->staticConfig.hrdFlag == 1) | ||
| { | ||
| sequenceControlSetPtr->staticConfig.videoUsabilityInfo = 1; | ||
| if (sequenceControlSetPtr->staticConfig.hrdFlag == 1) { | ||
| sequenceControlSetPtr->staticConfig.videoUsabilityInfo = 1; | ||
|
||
| sequenceControlSetPtr->videoUsabilityInfoPtr->vuiHrdParametersPresentFlag = 1; | ||
| sequenceControlSetPtr->staticConfig.bufferingPeriodSEI = 1; | ||
| sequenceControlSetPtr->staticConfig.pictureTimingSEI = 1; | ||
|
|
@@ -2521,13 +2520,13 @@ static EB_ERRORTYPE VerifySettings(\ | |
|
|
||
| if (config->hrdFlag > 1) | ||
| { | ||
| printf("Error Instance %u: hrdFlag must be [0 - 1]\n", channelNumber + 1); | ||
| printf("SVT [Error]: Instance %u: hrdFlag must be [0 - 1]\n", channelNumber + 1); | ||
| return_error = EB_ErrorBadParameter; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please use "SVT_LOG("SVT [Error]:"
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please follow the coding style here.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Modified and pushed (Commit: 9db1593) |
||
| } | ||
|
|
||
| if (config->hrdFlag == 1 && ((config->vbvBufsize <= 0) || (config->vbvMaxrate <= 0))) | ||
| { | ||
| printf("Error instance %u: hrd requires vbv max rate and vbv bufsize to be greater than 0 ", channelNumber + 1); | ||
| printf("SVT [Error]: Instance %u: hrd requires vbv max rate and vbv bufsize to be greater than 0 ", channelNumber + 1); | ||
|
||
| return_error = EB_ErrorBadParameter; | ||
| } | ||
|
|
||
|
|
@@ -2546,13 +2545,11 @@ static EB_ERRORTYPE VerifySettings(\ | |
| if ((config->searchAreaWidth > 256) || (config->searchAreaWidth == 0)){ | ||
| SVT_LOG("SVT [Error]: Instance %u: Invalid SearchAreaWidth. SearchAreaWidth must be [1 - 256]\n",channelNumber+1); | ||
| return_error = EB_ErrorBadParameter; | ||
|
|
||
| } | ||
|
|
||
| if((config->searchAreaHeight > 256) || (config->searchAreaHeight == 0)) { | ||
| SVT_LOG("SVT [Error]: Instance %u: Invalid SearchAreaHeight. SearchAreaHeight must be [1 - 256]\n",channelNumber+1); | ||
| return_error = EB_ErrorBadParameter; | ||
|
|
||
| } | ||
|
|
||
| if (levelIdx < 13) { | ||
|
|
@@ -2724,27 +2721,27 @@ static EB_ERRORTYPE VerifySettings(\ | |
| } | ||
|
|
||
| if ((config->maxCLL && !config->highDynamicRangeInput) || (config->maxFALL && !config->highDynamicRangeInput)) { | ||
| SVT_LOG("Error Instance %u: maxCLL or maxFALL should be used only with high dynamic range input; set highDynamicRangeInput to 1\n", channelNumber); | ||
| SVT_LOG("SVT [Error]: Instance %u: maxCLL or maxFALL should be used only with high dynamic range input; set highDynamicRangeInput to 1\n", channelNumber); | ||
| return_error = EB_ErrorBadParameter; | ||
| } | ||
|
|
||
| if (config->useMasteringDisplayColorVolume && !config->highDynamicRangeInput) { | ||
| SVT_LOG("Error Instance %u: MasterDisplay should be used only with high dynamic range input; set highDynamicRangeInput to 1\n", channelNumber); | ||
| SVT_LOG("SVT [Error]: Instance %u: MasterDisplay should be used only with high dynamic range input; set highDynamicRangeInput to 1\n", channelNumber); | ||
| return_error = EB_ErrorBadParameter; | ||
| } | ||
|
|
||
| if (config->dolbyVisionProfile != 0 && config->dolbyVisionProfile != 81) { | ||
| SVT_LOG("Error Instance %u: Only Dolby Vision Profile 8.1 is supported \n", channelNumber); | ||
| SVT_LOG("SVT [Error]: Instance %u: Only Dolby Vision Profile 8.1 is supported \n", channelNumber); | ||
| return_error = EB_ErrorBadParameter; | ||
| } | ||
|
|
||
| if (config->dolbyVisionProfile == 81 && config->encoderBitDepth != 10) { | ||
| SVT_LOG("Error Instance %u: Dolby Vision Profile 8.1 work only with main10 input \n", channelNumber); | ||
| SVT_LOG("SVT [Error]: Instance %u: Dolby Vision Profile 8.1 work only with main10 input \n", channelNumber); | ||
| return_error = EB_ErrorBadParameter; | ||
| } | ||
|
|
||
| if (config->dolbyVisionProfile == 81 && !config->useMasteringDisplayColorVolume) { | ||
| SVT_LOG("Error Instance %u: Dolby Vision Profile 8.1 requires mastering display color volume information \n", channelNumber); | ||
| SVT_LOG("SVT [Error]: Instance %u: Dolby Vision Profile 8.1 requires mastering display color volume information \n", channelNumber); | ||
| return_error = EB_ErrorBadParameter; | ||
| } | ||
|
|
||
|
|
@@ -2807,7 +2804,7 @@ static EB_ERRORTYPE VerifySettings(\ | |
| } | ||
|
|
||
| if (config->vbvBufInit > 100) { | ||
| printf("Error instance %u: Invalid vbvBufInit [0 - 100]\n", channelNumber + 1); | ||
| printf("SVT [Error]: Instance %u: Invalid vbvBufInit [0 - 100]\n", channelNumber + 1); | ||
| return_error = EB_ErrorBadParameter; | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove extra empty line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed empty line and pushed patch (Commit : 9db1593)