config.frame_rate_numerator = global_flags.av1_fps_num;
config.frame_rate_denominator = global_flags.av1_fps_den;
config.encoder_bit_depth = global_flags.bit_depth;
config.frame_rate_numerator = global_flags.av1_fps_num;
config.frame_rate_denominator = global_flags.av1_fps_den;
config.encoder_bit_depth = global_flags.bit_depth;
config.target_bit_rate = global_flags.av1_bitrate * 1000;
// NOTE: These should be in sync with the ones in quicksync_encoder.cpp (sps_rbsp()).
config.target_bit_rate = global_flags.av1_bitrate * 1000;
// NOTE: These should be in sync with the ones in quicksync_encoder.cpp (sps_rbsp()).
global_headers = string(reinterpret_cast<const char *>(header->p_buffer), header->n_filled_len);
svt_av1_enc_stream_header_release(header); // Don't care about errors.
global_headers = string(reinterpret_cast<const char *>(header->p_buffer), header->n_filled_len);
svt_av1_enc_stream_header_release(header); // Don't care about errors.
hdr.n_alloc_len = (global_flags.width * global_flags.height * 3 / 2) * bytes_per_pixel;
hdr.n_filled_len = hdr.n_alloc_len;
hdr.n_tick_count = 0;
hdr.n_alloc_len = (global_flags.width * global_flags.height * 3 / 2) * bytes_per_pixel;
hdr.n_filled_len = hdr.n_alloc_len;
hdr.n_tick_count = 0;