@@ -85,17 +85,26 @@ const int64_t g_testTimestamp = 42;
8585// unsigned delay;
8686// };
8787struct sv_setting settings [NUM_SETTINGS ] = {
88- {SV_CODEC_H264 , SV_AUTHENTICITY_LEVEL_GOP , true, true, false, 0 , NULL , 0 , 1 , false, 0 , 0 },
89- {SV_CODEC_H265 , SV_AUTHENTICITY_LEVEL_GOP , true, true, false, 0 , NULL , 0 , 1 , false, 0 , 0 },
90- {SV_CODEC_H264 , SV_AUTHENTICITY_LEVEL_FRAME , true, true, false, 0 , NULL , 0 , 1 , false, 0 , 0 },
91- {SV_CODEC_H265 , SV_AUTHENTICITY_LEVEL_FRAME , true, true, false, 0 , NULL , 0 , 1 , false, 0 , 0 },
88+ {SV_CODEC_H264 , SV_AUTHENTICITY_LEVEL_GOP , true, true, false, 0 , NULL , 0 , 1 , false, 0 , 0 ,
89+ false},
90+ {SV_CODEC_H265 , SV_AUTHENTICITY_LEVEL_GOP , true, true, false, 0 , NULL , 0 , 1 , false, 0 , 0 ,
91+ false},
92+ {SV_CODEC_H264 , SV_AUTHENTICITY_LEVEL_FRAME , true, true, false, 0 , NULL , 0 , 1 , false, 0 , 0 ,
93+ false},
94+ {SV_CODEC_H265 , SV_AUTHENTICITY_LEVEL_FRAME , true, true, false, 0 , NULL , 0 , 1 , false, 0 , 0 ,
95+ false},
9296 // Special cases
93- {SV_CODEC_H265 , SV_AUTHENTICITY_LEVEL_GOP , false, true, false, 0 , NULL , 0 , 1 , false, 0 , 0 },
94- {SV_CODEC_H264 , SV_AUTHENTICITY_LEVEL_FRAME , false, true, false, 0 , NULL , 0 , 1 , false, 0 , 0 },
95- {SV_CODEC_H264 , SV_AUTHENTICITY_LEVEL_FRAME , true, true, false, 0 , "sha512" , 0 , 1 , false, 0 , 0 },
97+ {SV_CODEC_H265 , SV_AUTHENTICITY_LEVEL_GOP , false, true, false, 0 , NULL , 0 , 1 , false, 0 , 0 ,
98+ false},
99+ {SV_CODEC_H264 , SV_AUTHENTICITY_LEVEL_FRAME , false, true, false, 0 , NULL , 0 , 1 , false, 0 , 0 ,
100+ false},
101+ {SV_CODEC_H264 , SV_AUTHENTICITY_LEVEL_FRAME , true, true, false, 0 , "sha512" , 0 , 1 , false, 0 , 0 ,
102+ false},
96103 // AV1 tests
97- {SV_CODEC_AV1 , SV_AUTHENTICITY_LEVEL_GOP , true, false, false, 0 , NULL , 0 , 1 , false, 0 , 0 },
98- {SV_CODEC_AV1 , SV_AUTHENTICITY_LEVEL_FRAME , true, false, false, 0 , NULL , 0 , 1 , false, 0 , 0 },
104+ {SV_CODEC_AV1 , SV_AUTHENTICITY_LEVEL_GOP , true, false, false, 0 , NULL , 0 , 1 , false, 0 , 0 ,
105+ false},
106+ {SV_CODEC_AV1 , SV_AUTHENTICITY_LEVEL_FRAME , true, false, false, 0 , NULL , 0 , 1 , false, 0 , 0 ,
107+ false},
99108};
100109
101110static char private_key_rsa [RSA_PRIVATE_KEY_ALLOC_BYTES ];
@@ -360,7 +369,11 @@ pull_seis(signed_video_t *sv, test_stream_item_t **item, bool apply_ep, unsigned
360369 * generates Bitstream Unit data for these. Then adds these Bitstream Units to the input session.
361370 * The generated SEIs are added to the stream. */
362371test_stream_t *
363- create_signed_stream_with_sv (signed_video_t * sv , const char * str , bool split_bu , int delay )
372+ create_signed_stream_with_sv (signed_video_t * sv ,
373+ const char * str ,
374+ bool split_bu ,
375+ int delay ,
376+ bool with_fh )
364377{
365378 SignedVideoReturnCode rc = SV_UNKNOWN_FAILURE ;
366379 ck_assert (sv );
@@ -369,7 +382,7 @@ create_signed_stream_with_sv(signed_video_t *sv, const char *str, bool split_bu,
369382 const bool apply_ep = false; // Apply emulation prevention on generated SEI afterwards.
370383 const bool get_seis_at_end = false; // Fetch all SEIs at once at the end of the stream.
371384 // Create a test stream given the input string.
372- test_stream_t * list = test_stream_create (str , sv -> codec , false );
385+ test_stream_t * list = test_stream_create (str , sv -> codec , with_fh );
373386 test_stream_item_t * item = list -> first_item ;
374387 int64_t timestamp = g_testTimestamp ;
375388 num_gops_until_signing = sv -> signing_frequency - 1 ;
@@ -454,7 +467,8 @@ create_signed_stream_splitted_bu_int(const char *str,
454467 ck_assert (sv );
455468
456469 // Create a test stream of Bitstream Units given the input string.
457- test_stream_t * list = create_signed_stream_with_sv (sv , str , split_bu , settings .delay );
470+ test_stream_t * list =
471+ create_signed_stream_with_sv (sv , str , split_bu , settings .delay , settings .with_fh );
458472 signed_video_free (sv );
459473
460474 return list ;
0 commit comments