21 #include "./vpx_config.h" 22 #include "../vpx_ports/vpx_timer.h" 26 #include "../tools_common.h" 27 #include "../video_writer.h" 31 #define zero(Dest) memset(&Dest, 0, sizeof(Dest)); 33 static const char *exec_name;
35 void usage_exit(
void) { exit(EXIT_FAILURE); }
38 enum denoiserStateVp8 {
42 kVp8DenoiserOnYUVAggressive,
43 kVp8DenoiserOnAdaptive
47 enum denoiserStateVp9 {
51 kVp9DenoiserOnYTwoSpatialLayers
54 static int mode_to_num_layers[13] = { 1, 2, 2, 3, 3, 3, 3, 5, 2, 3, 3, 3, 3 };
57 struct RateControlMetrics {
76 double avg_st_encoding_bitrate;
78 double variance_st_encoding_bitrate;
92 static void set_rate_control_metrics(
struct RateControlMetrics *rc,
100 1000.0 * rc->layer_target_bitrate[0] / rc->layer_framerate[0];
106 (rc->layer_target_bitrate[i] - rc->layer_target_bitrate[i - 1]) /
107 (rc->layer_framerate[i] - rc->layer_framerate[i - 1]);
109 rc->layer_input_frames[i] = 0;
110 rc->layer_enc_frames[i] = 0;
111 rc->layer_tot_enc_frames[i] = 0;
112 rc->layer_encoding_bitrate[i] = 0.0;
113 rc->layer_avg_frame_size[i] = 0.0;
114 rc->layer_avg_rate_mismatch[i] = 0.0;
116 rc->window_count = 0;
117 rc->window_size = 15;
118 rc->avg_st_encoding_bitrate = 0.0;
119 rc->variance_st_encoding_bitrate = 0.0;
122 static void printout_rate_control_summary(
struct RateControlMetrics *rc,
126 int tot_num_frames = 0;
127 double perc_fluctuation = 0.0;
128 printf(
"Total number of processed frames: %d\n\n", frame_cnt - 1);
129 printf(
"Rate control layer stats for %d layer(s):\n\n",
132 const int num_dropped =
133 (i > 0) ? (rc->layer_input_frames[i] - rc->layer_enc_frames[i])
134 : (rc->layer_input_frames[i] - rc->layer_enc_frames[i] - 1);
135 tot_num_frames += rc->layer_input_frames[i];
136 rc->layer_encoding_bitrate[i] = 0.001 * rc->layer_framerate[i] *
137 rc->layer_encoding_bitrate[i] /
139 rc->layer_avg_frame_size[i] =
140 rc->layer_avg_frame_size[i] / rc->layer_enc_frames[i];
141 rc->layer_avg_rate_mismatch[i] =
142 100.0 * rc->layer_avg_rate_mismatch[i] / rc->layer_enc_frames[i];
143 printf(
"For layer#: %d \n", i);
144 printf(
"Bitrate (target vs actual): %d %f \n", rc->layer_target_bitrate[i],
145 rc->layer_encoding_bitrate[i]);
146 printf(
"Average frame size (target vs actual): %f %f \n", rc->layer_pfb[i],
147 rc->layer_avg_frame_size[i]);
148 printf(
"Average rate_mismatch: %f \n", rc->layer_avg_rate_mismatch[i]);
150 "Number of input frames, encoded (non-key) frames, " 151 "and perc dropped frames: %d %d %f \n",
152 rc->layer_input_frames[i], rc->layer_enc_frames[i],
153 100.0 * num_dropped / rc->layer_input_frames[i]);
156 rc->avg_st_encoding_bitrate = rc->avg_st_encoding_bitrate / rc->window_count;
157 rc->variance_st_encoding_bitrate =
158 rc->variance_st_encoding_bitrate / rc->window_count -
159 (rc->avg_st_encoding_bitrate * rc->avg_st_encoding_bitrate);
160 perc_fluctuation = 100.0 * sqrt(rc->variance_st_encoding_bitrate) /
161 rc->avg_st_encoding_bitrate;
162 printf(
"Short-time stats, for window of %d frames: \n", rc->window_size);
163 printf(
"Average, rms-variance, and percent-fluct: %f %f %f \n",
164 rc->avg_st_encoding_bitrate, sqrt(rc->variance_st_encoding_bitrate),
166 if ((frame_cnt - 1) != tot_num_frames)
167 die(
"Error: Number of input frames not equal to output! \n");
175 uint8_t is_vp8 = strncmp(enc_name,
"vp8", 3) == 0 ? 1 : 0;
176 uint8_t is_vp9 = strncmp(enc_name,
"vp9", 3) == 0 ? 1 : 0;
177 if (!is_vp8 && !is_vp9) {
178 die(
"unsupported codec.");
182 block_size = is_vp9 && !is_vp8 ? 8 : 16;
186 roi->
rows = (cfg->
g_h + block_size - 1) / block_size;
187 roi->
cols = (cfg->
g_w + block_size - 1) / block_size;
228 for (i = 0; i < roi->
rows; ++i) {
229 for (j = 0; j < roi->
cols; ++j) {
230 if (i > (roi->
rows >> 2) && i < ((roi->
rows * 3) >> 2) &&
231 j > (roi->
cols >> 2) && j < ((roi->
cols * 3) >> 2)) {
244 static void set_temporal_layer_pattern(
int layering_mode,
247 int *flag_periodicity) {
248 switch (layering_mode) {
253 *flag_periodicity = 1;
264 int ids[2] = { 0, 1 };
266 *flag_periodicity = 2;
290 int ids[3] = { 0, 1, 1 };
292 *flag_periodicity = 3;
301 layer_flags[1] = layer_flags[2] =
308 int ids[6] = { 0, 2, 2, 1, 2, 2 };
310 *flag_periodicity = 6;
322 layer_flags[1] = layer_flags[2] = layer_flags[4] = layer_flags[5] =
328 int ids[4] = { 0, 2, 1, 2 };
330 *flag_periodicity = 4;
342 layer_flags[1] = layer_flags[3] =
349 int ids[4] = { 0, 2, 1, 2 };
351 *flag_periodicity = 4;
364 layer_flags[1] = layer_flags[3] =
371 int ids[4] = { 0, 2, 1, 2 };
373 *flag_periodicity = 4;
385 layer_flags[1] = layer_flags[3] =
392 int ids[16] = { 0, 4, 3, 4, 2, 4, 3, 4, 1, 4, 3, 4, 2, 4, 3, 4 };
394 *flag_periodicity = 16;
403 layer_flags[1] = layer_flags[3] = layer_flags[5] = layer_flags[7] =
404 layer_flags[9] = layer_flags[11] = layer_flags[13] = layer_flags[15] =
407 layer_flags[2] = layer_flags[6] = layer_flags[10] = layer_flags[14] =
409 layer_flags[4] = layer_flags[12] =
416 int ids[2] = { 0, 1 };
418 *flag_periodicity = 8;
440 layer_flags[4] = layer_flags[2];
442 layer_flags[5] = layer_flags[3];
444 layer_flags[6] = layer_flags[4];
446 layer_flags[7] = layer_flags[5];
451 int ids[4] = { 0, 2, 1, 2 };
453 *flag_periodicity = 8;
467 layer_flags[3] = layer_flags[5] =
482 int ids[4] = { 0, 2, 1, 2 };
484 *flag_periodicity = 8;
508 layer_flags[5] = layer_flags[3];
512 layer_flags[7] = layer_flags[3];
521 int ids[4] = { 0, 2, 1, 2 };
523 *flag_periodicity = 4;
544 int ids[4] = { 0, 2, 1, 2 };
546 *flag_periodicity = 8;
556 layer_flags[4] = layer_flags[0];
559 layer_flags[6] = layer_flags[2];
563 layer_flags[3] = layer_flags[1];
564 layer_flags[5] = layer_flags[1];
565 layer_flags[7] = layer_flags[1];
571 int main(
int argc,
char **argv) {
580 uint32_t error_resilient = 0;
587 int frame_duration = 1;
588 int layering_mode = 0;
590 int flag_periodicity = 1;
595 const VpxInterface *encoder = NULL;
597 struct RateControlMetrics rc;
599 const int min_args_base = 13;
600 #if CONFIG_VP9_HIGHBITDEPTH 602 int input_bit_depth = 8;
603 const int min_args = min_args_base + 1;
605 const int min_args = min_args_base;
606 #endif // CONFIG_VP9_HIGHBITDEPTH 607 double sum_bitrate = 0.0;
608 double sum_bitrate2 = 0.0;
609 double framerate = 30.0;
611 zero(rc.layer_target_bitrate);
615 if (argc < min_args) {
616 #if CONFIG_VP9_HIGHBITDEPTH 617 die(
"Usage: %s <infile> <outfile> <codec_type(vp8/vp9)> <width> <height> " 618 "<rate_num> <rate_den> <speed> <frame_drop_threshold> " 619 "<error_resilient> <threads> <mode> " 620 "<Rate_0> ... <Rate_nlayers-1> <bit-depth> \n",
623 die(
"Usage: %s <infile> <outfile> <codec_type(vp8/vp9)> <width> <height> " 624 "<rate_num> <rate_den> <speed> <frame_drop_threshold> " 625 "<error_resilient> <threads> <mode> " 626 "<Rate_0> ... <Rate_nlayers-1> \n",
628 #endif // CONFIG_VP9_HIGHBITDEPTH 631 encoder = get_vpx_encoder_by_name(argv[3]);
632 if (!encoder) die(
"Unsupported codec.");
636 width = (
unsigned int)strtoul(argv[4], NULL, 0);
637 height = (
unsigned int)strtoul(argv[5], NULL, 0);
638 if (width < 16 || width % 2 || height < 16 || height % 2) {
639 die(
"Invalid resolution: %d x %d", width, height);
642 layering_mode = (int)strtol(argv[12], NULL, 0);
643 if (layering_mode < 0 || layering_mode > 13) {
644 die(
"Invalid layering mode (0..12) %s", argv[12]);
647 if (argc != min_args + mode_to_num_layers[layering_mode]) {
648 die(
"Invalid number of arguments");
651 #if CONFIG_VP9_HIGHBITDEPTH 652 switch (strtol(argv[argc - 1], NULL, 0)) {
659 input_bit_depth = 10;
663 input_bit_depth = 12;
665 default: die(
"Invalid bit depth (8, 10, 12) %s", argv[argc - 1]);
669 width, height, 32)) {
670 die(
"Failed to allocate image", width, height);
674 die(
"Failed to allocate image", width, height);
676 #endif // CONFIG_VP9_HIGHBITDEPTH 689 #if CONFIG_VP9_HIGHBITDEPTH 695 #endif // CONFIG_VP9_HIGHBITDEPTH 701 speed = (int)strtol(argv[8], NULL, 0);
703 die(
"Invalid speed setting: must be positive");
706 for (i = min_args_base;
707 (int)i < min_args_base + mode_to_num_layers[layering_mode]; ++i) {
708 rc.layer_target_bitrate[i - 13] = (int)strtol(argv[i], NULL, 0);
709 if (strncmp(encoder->name,
"vp8", 3) == 0)
711 else if (strncmp(encoder->name,
"vp9", 3) == 0)
731 cfg.
g_threads = (
unsigned int)strtoul(argv[11], NULL, 0);
733 error_resilient = (uint32_t)strtoul(argv[10], NULL, 0);
734 if (error_resilient != 0 && error_resilient != 1) {
735 die(
"Invalid value for error resilient (0, 1): %d.", error_resilient);
747 set_temporal_layer_pattern(layering_mode, &cfg, layer_flags,
750 set_rate_control_metrics(&rc, &cfg);
757 if (!(infile = fopen(argv[1],
"rb"))) {
758 die(
"Failed to open %s for reading", argv[1]);
764 char file_name[PATH_MAX];
766 info.codec_fourcc = encoder->fourcc;
767 info.frame_width = cfg.
g_w;
768 info.frame_height = cfg.
g_h;
772 snprintf(file_name,
sizeof(file_name),
"%s_%d.ivf", argv[2], i);
773 outfile[i] = vpx_video_writer_open(file_name, kContainerIVF, &info);
774 if (!outfile[i]) die(
"Failed to open %s for writing", file_name);
776 assert(outfile[i] != NULL);
782 #if CONFIG_VP9_HIGHBITDEPTH 784 &codec, encoder->codec_interface(), &cfg,
788 #endif // CONFIG_VP9_HIGHBITDEPTH 789 die_codec(&codec,
"Failed to initialize encoder");
791 if (strncmp(encoder->name,
"vp8", 3) == 0) {
797 set_roi_map(encoder->name, &cfg, &roi);
799 die_codec(&codec,
"Failed to set ROI map");
802 }
else if (strncmp(encoder->name,
"vp9", 3) == 0) {
804 memset(&svc_params, 0,
sizeof(svc_params));
815 set_roi_map(encoder->name, &cfg, &roi);
817 die_codec(&codec,
"Failed to set ROI map");
822 if (cfg.
g_threads > 1 && ((cfg.
g_w > 320 && cfg.
g_h > 240) || speed < 7))
827 die_codec(&codec,
"Failed to set SVC");
836 if (strncmp(encoder->name,
"vp8", 3) == 0) {
844 const int max_intra_size_pct = 1000;
850 while (frame_avail || got_data) {
851 struct vpx_usec_timer timer;
858 if (strncmp(encoder->name,
"vp9", 3) == 0) {
860 }
else if (strncmp(encoder->name,
"vp8", 3) == 0) {
864 flags = layer_flags[frame_cnt % flag_periodicity];
865 if (layering_mode == 0) flags = 0;
866 frame_avail = vpx_img_read(&raw, infile);
868 vpx_usec_timer_start(&timer);
871 die_codec(&codec,
"Failed to encode frame");
873 vpx_usec_timer_mark(&timer);
874 cx_time += vpx_usec_timer_elapsed(&timer);
876 if (layering_mode != 7) {
886 vpx_video_writer_write_frame(outfile[i], pkt->
data.
frame.buf,
888 ++rc.layer_tot_enc_frames[i];
889 rc.layer_encoding_bitrate[i] += 8.0 * pkt->
data.
frame.sz;
893 rc.layer_avg_frame_size[i] += 8.0 * pkt->
data.
frame.sz;
894 rc.layer_avg_rate_mismatch[i] +=
895 fabs(8.0 * pkt->
data.
frame.sz - rc.layer_pfb[i]) /
897 ++rc.layer_enc_frames[i];
903 if (frame_cnt > rc.window_size) {
904 sum_bitrate += 0.001 * 8.0 * pkt->
data.
frame.sz * framerate;
905 if (frame_cnt % rc.window_size == 0) {
906 rc.window_count += 1;
907 rc.avg_st_encoding_bitrate += sum_bitrate / rc.window_size;
908 rc.variance_st_encoding_bitrate +=
909 (sum_bitrate / rc.window_size) *
910 (sum_bitrate / rc.window_size);
915 if (frame_cnt > rc.window_size + rc.window_size / 2) {
916 sum_bitrate2 += 0.001 * 8.0 * pkt->
data.
frame.sz * framerate;
917 if (frame_cnt > 2 * rc.window_size &&
918 frame_cnt % rc.window_size == 0) {
919 rc.window_count += 1;
920 rc.avg_st_encoding_bitrate += sum_bitrate2 / rc.window_size;
921 rc.variance_st_encoding_bitrate +=
922 (sum_bitrate2 / rc.window_size) *
923 (sum_bitrate2 / rc.window_size);
932 pts += frame_duration;
935 printout_rate_control_summary(&rc, &cfg, frame_cnt);
937 printf(
"Frame cnt and encoding time/FPS stats for encoding: %d %f %f \n",
938 frame_cnt, 1000 * (
float)cx_time / (
double)(frame_cnt * 1000000),
939 1000000 * (
double)frame_cnt / (
double)cx_time);
944 for (i = 0; i < cfg.
ts_number_layers; ++i) vpx_video_writer_close(outfile[i]);
unsigned int rc_buf_initial_sz
Decoder Buffer Initial Size.
Definition: vpx_encoder.h:556
int min_quantizers[12]
Definition: vpx_encoder.h:719
unsigned char * roi_map
Definition: vp8cx.h:674
unsigned int ts_number_layers
Number of temporal coding layers.
Definition: vpx_encoder.h:660
Codec control function to set encoder internal speed settings.
Definition: vp8cx.h:155
#define VPX_MAX_LAYERS
Definition: vpx_encoder.h:46
#define VP8_EFLAG_NO_REF_LAST
Don't reference the last frame.
Definition: vp8cx.h:58
#define VP8_EFLAG_NO_UPD_GF
Don't update the golden frame.
Definition: vp8cx.h:88
Image Descriptor.
Definition: vpx_image.h:88
Describes the encoder algorithm interface to applications.
const char * vpx_codec_iface_name(vpx_codec_iface_t *iface)
Return the name for a given interface.
const char * vpx_codec_err_to_string(vpx_codec_err_t err)
Convert error number to printable string.
int delta_q[8]
Definition: vp8cx.h:678
#define VPX_TS_MAX_LAYERS
Definition: vpx_encoder.h:40
Codec control function to set content type.
Definition: vp8cx.h:457
struct vpx_rational g_timebase
Stream timebase units.
Definition: vpx_encoder.h:354
Definition: vpx_encoder.h:241
Codec control function to set noise sensitivity.
Definition: vp8cx.h:415
unsigned int layer_target_bitrate[12]
Target bitrate for each spatial/temporal layer.
Definition: vpx_encoder.h:700
unsigned int cols
Definition: vp8cx.h:676
unsigned int rc_buf_sz
Decoder Buffer Size.
Definition: vpx_encoder.h:547
#define VP8_EFLAG_NO_REF_GF
Don't reference the golden frame.
Definition: vp8cx.h:66
unsigned int g_input_bit_depth
Bit-depth of the input frames.
Definition: vpx_encoder.h:340
enum vpx_kf_mode kf_mode
Keyframe placement mode.
Definition: vpx_encoder.h:612
int den
Definition: vpx_encoder.h:228
vpx_codec_err_t vpx_codec_encode(vpx_codec_ctx_t *ctx, const vpx_image_t *img, vpx_codec_pts_t pts, unsigned long duration, vpx_enc_frame_flags_t flags, unsigned long deadline)
Encode a frame.
unsigned int rc_max_quantizer
Maximum (Worst Quality) Quantizer.
Definition: vpx_encoder.h:498
Codec control function to pass an ROI map to encoder.
Definition: vp8cx.h:130
unsigned int rc_min_quantizer
Minimum (Best Quality) Quantizer.
Definition: vpx_encoder.h:488
unsigned int kf_max_dist
Keyframe maximum interval.
Definition: vpx_encoder.h:630
unsigned int g_lag_in_frames
Allow lagged encoding.
Definition: vpx_encoder.h:383
Encoder configuration structure.
Definition: vpx_encoder.h:276
Definition: vpx_encoder.h:256
Codec control function to set row level multi-threading.
Definition: vp8cx.h:564
int spatial_layer_id
Definition: vp8cx.h:747
Codec control function to set Max data rate for Intra frames.
Definition: vp8cx.h:251
#define VPX_CODEC_USE_HIGHBITDEPTH
Definition: vpx_encoder.h:96
Encoder output packet.
Definition: vpx_encoder.h:165
unsigned int rc_overshoot_pct
Rate control adaptation overshoot control.
Definition: vpx_encoder.h:532
Codec control function to set parameters for SVC.
Definition: vp8cx.h:438
unsigned int ts_rate_decimator[5]
Frame rate decimation factor for each temporal layer.
Definition: vpx_encoder.h:674
unsigned int rc_buf_optimal_sz
Decoder Buffer Optimal Size.
Definition: vpx_encoder.h:565
unsigned int kf_min_dist
Keyframe minimum interval.
Definition: vpx_encoder.h:621
unsigned int g_profile
Bitstream profile to use.
Definition: vpx_encoder.h:306
Codec control function to set number of tile columns.
Definition: vp8cx.h:345
unsigned int ts_layer_id[16]
Template defining the membership of frames to temporal layers.
Definition: vpx_encoder.h:692
struct vpx_codec_cx_pkt::@1::@2 frame
vpx_image_t * vpx_img_alloc(vpx_image_t *img, vpx_img_fmt_t fmt, unsigned int d_w, unsigned int d_h, unsigned int align)
Open a descriptor, allocating storage for the underlying image.
Definition: vpx_image.h:55
int scaling_factor_num[12]
Definition: vpx_encoder.h:720
unsigned int g_w
Width of the frame.
Definition: vpx_encoder.h:315
unsigned int static_threshold[4]
Definition: vp8cx.h:684
unsigned int ts_target_bitrate[5]
Target bitrate for each temporal layer.
Definition: vpx_encoder.h:667
enum vpx_bit_depth vpx_bit_depth_t
Bit depth for codecThis enumeration determines the bit depth of the codec.
unsigned int rc_undershoot_pct
Rate control adaptation undershoot control.
Definition: vpx_encoder.h:517
Codec control function to set adaptive quantization mode.
Definition: vp8cx.h:392
int skip[8]
Definition: vp8cx.h:681
unsigned int g_h
Height of the frame.
Definition: vpx_encoder.h:324
int delta_lf[8]
Definition: vp8cx.h:679
enum vpx_codec_cx_pkt_kind kind
Definition: vpx_encoder.h:166
unsigned int rc_dropframe_thresh
Temporal resampling configuration, if supported by the codec.
Definition: vpx_encoder.h:405
Boost percentage for Golden Frame in CBR mode.
Definition: vp8cx.h:595
vp9 svc layer parameters
Definition: vp8cx.h:746
Codec control function to set the temporal layer id.
Definition: vp8cx.h:298
#define VP8_EFLAG_NO_UPD_LAST
Don't update the last frame.
Definition: vp8cx.h:81
void vpx_img_free(vpx_image_t *img)
Close an image descriptor.
Codec control function to set the number of token partitions.
Definition: vp8cx.h:188
unsigned int rc_target_bitrate
Target data rate.
Definition: vpx_encoder.h:474
#define VPX_DL_REALTIME
deadline parameter analogous to VPx REALTIME mode.
Definition: vpx_encoder.h:846
int num
Definition: vpx_encoder.h:227
control function to set noise sensitivity
Definition: vp8cx.h:170
Definition: vpx_codec.h:220
int ref_frame[8]
Definition: vp8cx.h:682
Boost percentage for Golden Frame in CBR mode.
Definition: vp8cx.h:287
unsigned int g_threads
Maximum number of threads to use.
Definition: vpx_encoder.h:296
unsigned int ss_number_layers
Number of spatial coding layers.
Definition: vpx_encoder.h:640
Codec control function to pass an ROI map to encoder.
Definition: vp8cx.h:430
vpx_bit_depth_t g_bit_depth
Bit-depth of the codec.
Definition: vpx_encoder.h:332
Provides definitions for using VP8 or VP9 encoder algorithm within the vpx Codec Interface.
#define vpx_codec_enc_init(ctx, iface, cfg, flags)
Convenience macro for vpx_codec_enc_init_ver()
Definition: vpx_encoder.h:757
Codec control function to set encoder screen content mode.
Definition: vp8cx.h:306
unsigned int rc_resize_allowed
Enable/disable spatial resampling, if supported by the codec.
Definition: vpx_encoder.h:414
Bypass mode. Used when application needs to control temporal layering. This will only work when the n...
Definition: vp8cx.h:652
vpx_codec_err_t
Algorithm return codes.
Definition: vpx_codec.h:90
const vpx_codec_cx_pkt_t * vpx_codec_get_cx_data(vpx_codec_ctx_t *ctx, vpx_codec_iter_t *iter)
Encoded data iterator.
union vpx_codec_cx_pkt::@1 data
int temporal_layering_mode
Temporal layering mode indicating which temporal layering scheme to use.
Definition: vpx_encoder.h:709
int temporal_layer_id
Definition: vp8cx.h:748
Definition: vpx_image.h:63
Codec control function to enable/disable periodic Q boost.
Definition: vp8cx.h:407
vpx_codec_err_t vpx_codec_enc_config_default(vpx_codec_iface_t *iface, vpx_codec_enc_cfg_t *cfg, unsigned int reserved)
Get a default configuration.
#define VPX_TS_MAX_PERIODICITY
Definition: vpx_encoder.h:37
Codec control function to turn on/off SVC in encoder.
Definition: vp8cx.h:424
#define vpx_codec_control(ctx, id, data)
vpx_codec_control wrapper macro
Definition: vpx_codec.h:404
unsigned int ts_periodicity
Length of the sequence defining frame temporal layer membership.
Definition: vpx_encoder.h:683
#define VP8_EFLAG_NO_REF_ARF
Don't reference the alternate reference frame.
Definition: vp8cx.h:74
vpx_codec_err_t vpx_codec_destroy(vpx_codec_ctx_t *ctx)
Destroy a codec instance.
unsigned int rows
Definition: vp8cx.h:675
Codec control function to enable frame parallel decoding feature.
Definition: vp8cx.h:379
Definition: vpx_codec.h:218
int scaling_factor_den[12]
Definition: vpx_encoder.h:721
Codec control function to set the threshold for MBs treated static.
Definition: vp8cx.h:182
#define VPX_FRAME_IS_KEY
Definition: vpx_encoder.h:122
Definition: vpx_codec.h:219
#define VPX_EFLAG_FORCE_KF
Definition: vpx_encoder.h:268
const void * vpx_codec_iter_t
Iterator.
Definition: vpx_codec.h:187
vpx region of interest map
Definition: vp8cx.h:669
Definition: vpx_encoder.h:153
int max_quantizers[12]
Definition: vpx_encoder.h:718
vp9 svc extra configure parameters
Definition: vpx_encoder.h:717
vpx_codec_er_flags_t g_error_resilient
Enable error resilient modes.
Definition: vpx_encoder.h:362
#define VP8_EFLAG_NO_UPD_ARF
Don't update the alternate reference frame.
Definition: vp8cx.h:95
#define VP8_EFLAG_NO_UPD_ENTROPY
Disable entropy update.
Definition: vp8cx.h:116
Codec control function to set svc layer for spatial and temporal.
Definition: vp8cx.h:447
enum vpx_rc_mode rc_end_usage
Rate control algorithm to use.
Definition: vpx_encoder.h:454
Codec context structure.
Definition: vpx_codec.h:197