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
385 //prepare output if needed385 //prepare output if needed
386 FILE* fEnc = NULL;386 FILE* fEnc = NULL;
387#ifdef DEBUG_FILE_SAVE_INCREASING_ID387#ifdef DEBUG_FILE_SAVE_INCREASING_ID
388 fEnc = fopen ("enc_i.264", "wb");388 fEnc = fopen ("enc_INCREASING_ID.264", "wb");
389#endif389#endif
390 390
391 // Test part#1391 // Test part#1
@@ -440,7 +440,7 @@ TEST_F (EncodeDecodeTestAPI, ParameterSetStrategy_INCREASING_ID) { · 48 unmodified lines
440 ASSERT_TRUE (rv == cmResultSuccess) << "SetOption Failed sParam3: rv = " << rv;440 ASSERT_TRUE (rv == cmResultSuccess) << "SetOption Failed sParam3: rv = " << rv;
441 441
442#ifdef DEBUG_FILE_SAVE_INCREASING_ID442#ifdef DEBUG_FILE_SAVE_INCREASING_ID
443 fEnc = fopen ("enc3.264", "wb");443 fEnc = fopen ("enc_INCREASING_ID2.264", "wb");
444#endif444#endif
445 iEncFrameNum = 0;445 iEncFrameNum = 0;
446 EncDecOneFrame (sParam3.iPicWidth, sParam3.iPicHeight, iEncFrameNum++, fEnc);446 EncDecOneFrame (sParam3.iPicWidth, sParam3.iPicHeight, iEncFrameNum++, fEnc);
@@ -495,7 +495,7 @@ TEST_F (EncodeDecodeTestAPI, ParameterSetStrategy_SPS_LISTING_AND_PPS_INCREASING · 48 unmodified lines
495 //prepare output if needed495 //prepare output if needed
496 FILE* fEnc = NULL;496 FILE* fEnc = NULL;
497#ifdef DEBUG_FILE_SAVE2497#ifdef DEBUG_FILE_SAVE2
498 fEnc = fopen ("enc2.264", "wb");498 fEnc = fopen ("enc_SPS_LISTING_AND_PPS_INCREASING1.264", "wb");
499#endif499#endif
500 500
501 // Test part#1501 // Test part#1
@@ -550,7 +550,7 @@ TEST_F (EncodeDecodeTestAPI, ParameterSetStrategy_SPS_LISTING_AND_PPS_INCREASING · 48 unmodified lines
550 ASSERT_TRUE (rv == cmResultSuccess) << "SetOption Failed sParam3: rv = " << rv;550 ASSERT_TRUE (rv == cmResultSuccess) << "SetOption Failed sParam3: rv = " << rv;
551 551
552#ifdef DEBUG_FILE_SAVE2552#ifdef DEBUG_FILE_SAVE2
553 fEnc = fopen ("enc3.264", "wb");553 fEnc = fopen ("enc_SPS_LISTING_AND_PPS_INCREASING11.264", "wb");
554#endif554#endif
555 iEncFrameNum = 0;555 iEncFrameNum = 0;
556 EncDecOneFrame (sParam3.iPicWidth, sParam3.iPicHeight, iEncFrameNum++, fEnc);556 EncDecOneFrame (sParam3.iPicWidth, sParam3.iPicHeight, iEncFrameNum++, fEnc);
@@ -598,7 +598,7 @@ TEST_F (EncodeDecodeTestAPI, ParameterSetStrategy_SPS_LISTING_AND_PPS_INCREASING · 41 unmodified lines
598 //prepare output if needed598 //prepare output if needed
599 FILE* fEnc = NULL;599 FILE* fEnc = NULL;
600#ifdef DEBUG_FILE_SAVE5600#ifdef DEBUG_FILE_SAVE5
601 fEnc = fopen ("encID2.264", "wb");601 fEnc = fopen ("enc_SPS_LISTING_AND_PPS_INCREASING2.264", "wb");
602#endif602#endif
603 603
604 // step#1: pParam1604 // step#1: pParam1
@@ -647,7 +647,7 @@ TEST_F (EncodeDecodeTestAPI, ParameterSetStrategy_SPS_LISTING_AND_PPS_INCREASING · 42 unmodified lines
647 //prepare output if needed647 //prepare output if needed
648 FILE* fEnc = NULL;648 FILE* fEnc = NULL;
649#ifdef DEBUG_FILE_SAVE2649#ifdef DEBUG_FILE_SAVE2
650 fEnc = fopen ("enc4.264", "wb");650 fEnc = fopen ("enc_SPS_LISTING_AND_PPS_INCREASING3.264", "wb");
651#endif651#endif
652 652
653 // step#1: pParam1653 // step#1: pParam1
@@ -853,7 +853,7 @@ TEST_F (EncodeDecodeTestAPI, ParameterSetStrategy_SPS_PPS_LISTING3) { · 199 unmodified lines
853 //prepare output if needed853 //prepare output if needed
854 FILE* fEnc = NULL;854 FILE* fEnc = NULL;
855#ifdef DEBUG_FILE_SAVE5855#ifdef DEBUG_FILE_SAVE5
856 fEnc = fopen ("enc4.264", "wb");856 fEnc = fopen ("enc_LISTING3.264", "wb");
857#endif857#endif
858 858
859 // step#1: ordinary encoding859 // 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