History

change sps/pps strategy option name as ENCODER_OPTION_SPS_PPS_ID_STRATEGY to avoid confusion

Karina committed 9 years ago

Commit 7a252731 parent 0724f616 files · +19 −19Browse files

Showing the changes to test/api/encode_options_test.cpp (1 of 6 files). Show all

Unified · Split

test/api/encode_options_test.cpp+3−3
@@ -910,7 +910,7 @@ TEST_F (EncodeDecodeTestAPI, ParameterSetStrategy_SPS_PPS_LISTING3) { · 909 unmodified lines
910910
911911 // step#2: set strategy for success
912912 int32_t iNewStra = SPS_PPS_LISTING;
913− rv = encoder_->SetOption (ENCODER_OPTION_ENABLE_SPS_PPS_ID_ADDITION, &iNewStra);
913+ rv = encoder_->SetOption (ENCODER_OPTION_SPS_PPS_ID_STRATEGY, &iNewStra);
914914 ASSERT_TRUE (rv == cmResultSuccess) << "rv = " << rv << " iNewStra=" << iNewStra;
915915
916916 // step#3: setting new strategy, SHOULD encounter ERROR
@@ -918,7 +918,7 @@ TEST_F (EncodeDecodeTestAPI, ParameterSetStrategy_SPS_PPS_LISTING3) { · 1 unmodified line
918918 rv = encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &TraceLevel);
919919 ASSERT_TRUE (rv == cmResultSuccess);
920920 iNewStra = CONSTANT_ID;
921− rv = encoder_->SetOption (ENCODER_OPTION_ENABLE_SPS_PPS_ID_ADDITION, &iNewStra);
921+ rv = encoder_->SetOption (ENCODER_OPTION_SPS_PPS_ID_STRATEGY, &iNewStra);
922922 ASSERT_TRUE (rv != cmResultSuccess);
923923
924924 EncDecOneFrame (sParam2.iPicWidth, sParam2.iPicHeight, iEncFrameNum++, fEnc);
@@ -1371,7 +1371,7 @@ TEST_P (EncodeTestAPI, SetEncOptionSize) { · 446 unmodified lines
13711371
13721372
13731373 int32_t iSpsPpsIdAddition = 1;
1374− encoder_->SetOption (ENCODER_OPTION_ENABLE_SPS_PPS_ID_ADDITION, &iSpsPpsIdAddition);
1374+ encoder_->SetOption (ENCODER_OPTION_SPS_PPS_ID_STRATEGY, &iSpsPpsIdAddition);
13751375 int32_t iIDRPeriod = (int32_t) pow (2.0f, (param_.iTemporalLayerNum - 1)) * ((rand() % 5) + 1);
13761376 encoder_->SetOption (ENCODER_OPTION_IDR_INTERVAL, &iIDRPeriod);
13771377 int iIdx = 0;

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