History

Refactoring: Wrap all the operations related to eSpsPpsIdStrategy to class, to improve code readability

sijchen committed 10 years ago

Commit ffb85041 parent c30cc4114 files · +1126 −494Browse files

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

Unified · Split

test/api/encode_options_test.cpp+7−7
@@ -385,7 +385,7 @@ TEST_F (EncodeDecodeTestAPI, ParameterSetStrategy_INCREASING_ID) { · 384 unmodified lines
385385 //prepare output if needed
386386 FILE* fEnc = NULL;
387387 #ifdef DEBUG_FILE_SAVE_INCREASING_ID
388− fEnc = fopen ("enc_i.264", "wb");
388+ fEnc = fopen ("enc_INCREASING_ID.264", "wb");
389389 #endif
390390
391391 // Test part#1
@@ -440,7 +440,7 @@ TEST_F (EncodeDecodeTestAPI, ParameterSetStrategy_INCREASING_ID) { · 48 unmodified lines
440440 ASSERT_TRUE (rv == cmResultSuccess) << "SetOption Failed sParam3: rv = " << rv;
441441
442442 #ifdef DEBUG_FILE_SAVE_INCREASING_ID
443− fEnc = fopen ("enc3.264", "wb");
443+ fEnc = fopen ("enc_INCREASING_ID2.264", "wb");
444444 #endif
445445 iEncFrameNum = 0;
446446 EncDecOneFrame (sParam3.iPicWidth, sParam3.iPicHeight, iEncFrameNum++, fEnc);
@@ -495,7 +495,7 @@ TEST_F (EncodeDecodeTestAPI, ParameterSetStrategy_SPS_LISTING_AND_PPS_INCREASING · 48 unmodified lines
495495 //prepare output if needed
496496 FILE* fEnc = NULL;
497497 #ifdef DEBUG_FILE_SAVE2
498− fEnc = fopen ("enc2.264", "wb");
498+ fEnc = fopen ("enc_SPS_LISTING_AND_PPS_INCREASING1.264", "wb");
499499 #endif
500500
501501 // Test part#1
@@ -550,7 +550,7 @@ TEST_F (EncodeDecodeTestAPI, ParameterSetStrategy_SPS_LISTING_AND_PPS_INCREASING · 48 unmodified lines
550550 ASSERT_TRUE (rv == cmResultSuccess) << "SetOption Failed sParam3: rv = " << rv;
551551
552552 #ifdef DEBUG_FILE_SAVE2
553− fEnc = fopen ("enc3.264", "wb");
553+ fEnc = fopen ("enc_SPS_LISTING_AND_PPS_INCREASING11.264", "wb");
554554 #endif
555555 iEncFrameNum = 0;
556556 EncDecOneFrame (sParam3.iPicWidth, sParam3.iPicHeight, iEncFrameNum++, fEnc);
@@ -598,7 +598,7 @@ TEST_F (EncodeDecodeTestAPI, ParameterSetStrategy_SPS_LISTING_AND_PPS_INCREASING · 41 unmodified lines
598598 //prepare output if needed
599599 FILE* fEnc = NULL;
600600 #ifdef DEBUG_FILE_SAVE5
601− fEnc = fopen ("encID2.264", "wb");
601+ fEnc = fopen ("enc_SPS_LISTING_AND_PPS_INCREASING2.264", "wb");
602602 #endif
603603
604604 // step#1: pParam1
@@ -647,7 +647,7 @@ TEST_F (EncodeDecodeTestAPI, ParameterSetStrategy_SPS_LISTING_AND_PPS_INCREASING · 42 unmodified lines
647647 //prepare output if needed
648648 FILE* fEnc = NULL;
649649 #ifdef DEBUG_FILE_SAVE2
650− fEnc = fopen ("enc4.264", "wb");
650+ fEnc = fopen ("enc_SPS_LISTING_AND_PPS_INCREASING3.264", "wb");
651651 #endif
652652
653653 // step#1: pParam1
@@ -853,7 +853,7 @@ TEST_F (EncodeDecodeTestAPI, ParameterSetStrategy_SPS_PPS_LISTING3) { · 199 unmodified lines
853853 //prepare output if needed
854854 FILE* fEnc = NULL;
855855 #ifdef DEBUG_FILE_SAVE5
856− fEnc = fopen ("enc4.264", "wb");
856+ fEnc = fopen ("enc_LISTING3.264", "wb");
857857 #endif
858858
859859 // step#1: ordinary encoding

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