21 #include "./vpx_config.h" 22 #include "../vpx_ports/vpx_timer.h" 25 #include "vpx_ports/bitops.h" 27 #include "../tools_common.h" 28 #include "../video_writer.h" 32 #define zero(Dest) memset(&Dest, 0, sizeof(Dest)); 34 static const char *exec_name;
36 void usage_exit(
void) { exit(EXIT_FAILURE); }
39 enum denoiserStateVp8 {
43 kVp8DenoiserOnYUVAggressive,
44 kVp8DenoiserOnAdaptive
48 enum denoiserStateVp9 {
52 kVp9DenoiserOnYTwoSpatialLayers
55 static int mode_to_num_layers[13] = { 1, 2, 2, 3, 3, 3, 3, 5, 2, 3, 3, 3, 3 };
58 struct RateControlMetrics {
77 double avg_st_encoding_bitrate;
79 double variance_st_encoding_bitrate;
93 static void set_rate_control_metrics(
struct RateControlMetrics *rc,
101 1000.0 * rc->layer_target_bitrate[0] / rc->layer_framerate[0];
107 (rc->layer_target_bitrate[i] - rc->layer_target_bitrate[i - 1]) /
108 (rc->layer_framerate[i] - rc->layer_framerate[i - 1]);
110 rc->layer_input_frames[i] = 0;
111 rc->layer_enc_frames[i] = 0;
112 rc->layer_tot_enc_frames[i] = 0;
113 rc->layer_encoding_bitrate[i] = 0.0;
114 rc->layer_avg_frame_size[i] = 0.0;
115 rc->layer_avg_rate_mismatch[i] = 0.0;
117 rc->window_count = 0;
118 rc->window_size = 15;
119 rc->avg_st_encoding_bitrate = 0.0;
120 rc->variance_st_encoding_bitrate = 0.0;
123 static void printout_rate_control_summary(
struct RateControlMetrics *rc,
127 int tot_num_frames = 0;
128 double perc_fluctuation = 0.0;
129 printf(
"Total number of processed frames: %d\n\n", frame_cnt - 1);
130 printf(
"Rate control layer stats for %d layer(s):\n\n",
133 const int num_dropped =
134 (i > 0) ? (rc->layer_input_frames[i] - rc->layer_enc_frames[i])
135 : (rc->layer_input_frames[i] - rc->layer_enc_frames[i] - 1);
136 tot_num_frames += rc->layer_input_frames[i];
137 rc->layer_encoding_bitrate[i] = 0.001 * rc->layer_framerate[i] *
138 rc->layer_encoding_bitrate[i] /
140 rc->layer_avg_frame_size[i] =
141 rc->layer_avg_frame_size[i] / rc->layer_enc_frames[i];
142 rc->layer_avg_rate_mismatch[i] =
143 100.0 * rc->layer_avg_rate_mismatch[i] / rc->layer_enc_frames[i];
144 printf(
"For layer#: %d \n", i);
145 printf(
"Bitrate (target vs actual): %d %f \n", rc->layer_target_bitrate[i],
146 rc->layer_encoding_bitrate[i]);
147 printf(
"Average frame size (target vs actual): %f %f \n", rc->layer_pfb[i],
148 rc->layer_avg_frame_size[i]);
149 printf(
"Average rate_mismatch: %f \n", rc->layer_avg_rate_mismatch[i]);
151 "Number of input frames, encoded (non-key) frames, " 152 "and perc dropped frames: %d %d %f \n",
153 rc->layer_input_frames[i], rc->layer_enc_frames[i],
154 100.0 * num_dropped / rc->layer_input_frames[i]);
157 rc->avg_st_encoding_bitrate = rc->avg_st_encoding_bitrate / rc->window_count;
158 rc->variance_st_encoding_bitrate =
159 rc->variance_st_encoding_bitrate / rc->window_count -
160 (rc->avg_st_encoding_bitrate * rc->avg_st_encoding_bitrate);
161 perc_fluctuation = 100.0 * sqrt(rc->variance_st_encoding_bitrate) /
162 rc->avg_st_encoding_bitrate;
163 printf(
"Short-time stats, for window of %d frames: \n", rc->window_size);
164 printf(
"Average, rms-variance, and percent-fluct: %f %f %f \n",
165 rc->avg_st_encoding_bitrate, sqrt(rc->variance_st_encoding_bitrate),
167 if ((frame_cnt - 1) != tot_num_frames)
168 die(
"Error: Number of input frames not equal to output! \n");
176 uint8_t is_vp8 = strncmp(enc_name,
"vp8", 3) == 0 ? 1 : 0;
177 uint8_t is_vp9 = strncmp(enc_name,
"vp9", 3) == 0 ? 1 : 0;
178 if (!is_vp8 && !is_vp9) {
179 die(
"unsupported codec.");
183 block_size = is_vp9 && !is_vp8 ? 8 : 16;
187 roi->
rows = (cfg->
g_h + block_size - 1) / block_size;
188 roi->
cols = (cfg->
g_w + block_size - 1) / block_size;
229 for (i = 0; i < roi->
rows; ++i) {
230 for (j = 0; j < roi->
cols; ++j) {
231 if (i > (roi->
rows >> 2) && i < ((roi->
rows * 3) >> 2) &&
232 j > (roi->
cols >> 2) && j < ((roi->
cols * 3) >> 2)) {
245 static void set_temporal_layer_pattern(
int layering_mode,
248 int *flag_periodicity) {
249 switch (layering_mode) {
254 *flag_periodicity = 1;
265 int ids[2] = { 0, 1 };
267 *flag_periodicity = 2;
291 int ids[3] = { 0, 1, 1 };
293 *flag_periodicity = 3;
302 layer_flags[1] = layer_flags[2] =
309 int ids[6] = { 0, 2, 2, 1, 2, 2 };
311 *flag_periodicity = 6;
323 layer_flags[1] = layer_flags[2] = layer_flags[4] = layer_flags[5] =
329 int ids[4] = { 0, 2, 1, 2 };
331 *flag_periodicity = 4;
343 layer_flags[1] = layer_flags[3] =
350 int ids[4] = { 0, 2, 1, 2 };
352 *flag_periodicity = 4;
365 layer_flags[1] = layer_flags[3] =
372 int ids[4] = { 0, 2, 1, 2 };
374 *flag_periodicity = 4;
386 layer_flags[1] = layer_flags[3] =
393 int ids[16] = { 0, 4, 3, 4, 2, 4, 3, 4, 1, 4, 3, 4, 2, 4, 3, 4 };
395 *flag_periodicity = 16;
404 layer_flags[1] = layer_flags[3] = layer_flags[5] = layer_flags[7] =
405 layer_flags[9] = layer_flags[11] = layer_flags[13] = layer_flags[15] =
408 layer_flags[2] = layer_flags[6] = layer_flags[10] = layer_flags[14] =
410 layer_flags[4] = layer_flags[12] =
417 int ids[2] = { 0, 1 };
419 *flag_periodicity = 8;
441 layer_flags[4] = layer_flags[2];
443 layer_flags[5] = layer_flags[3];
445 layer_flags[6] = layer_flags[4];
447 layer_flags[7] = layer_flags[5];
452 int ids[4] = { 0, 2, 1, 2 };
454 *flag_periodicity = 8;
468 layer_flags[3] = layer_flags[5] =
483 int ids[4] = { 0, 2, 1, 2 };
485 *flag_periodicity = 8;
509 layer_flags[5] = layer_flags[3];
513 layer_flags[7] = layer_flags[3];
522 int ids[4] = { 0, 2, 1, 2 };
524 *flag_periodicity = 4;
545 int ids[4] = { 0, 2, 1, 2 };
547 *flag_periodicity = 8;
557 layer_flags[4] = layer_flags[0];
560 layer_flags[6] = layer_flags[2];
564 layer_flags[3] = layer_flags[1];
565 layer_flags[5] = layer_flags[1];
566 layer_flags[7] = layer_flags[1];
572 int main(
int argc,
char **argv) {
581 uint32_t error_resilient = 0;
588 int frame_duration = 1;
589 int layering_mode = 0;
591 int flag_periodicity = 1;
596 const VpxInterface *encoder = NULL;
598 struct RateControlMetrics rc;
600 const int min_args_base = 13;
601 #if CONFIG_VP9_HIGHBITDEPTH 603 int input_bit_depth = 8;
604 const int min_args = min_args_base + 1;
606 const int min_args = min_args_base;
607 #endif // CONFIG_VP9_HIGHBITDEPTH 608 double sum_bitrate = 0.0;
609 double sum_bitrate2 = 0.0;
610 double framerate = 30.0;
612 zero(rc.layer_target_bitrate);
616 if (argc < min_args) {
617 #if CONFIG_VP9_HIGHBITDEPTH 618 die(
"Usage: %s <infile> <outfile> <codec_type(vp8/vp9)> <width> <height> " 619 "<rate_num> <rate_den> <speed> <frame_drop_threshold> " 620 "<error_resilient> <threads> <mode> " 621 "<Rate_0> ... <Rate_nlayers-1> <bit-depth> \n",
624 die(
"Usage: %s <infile> <outfile> <codec_type(vp8/vp9)> <width> <height> " 625 "<rate_num> <rate_den> <speed> <frame_drop_threshold> " 626 "<error_resilient> <threads> <mode> " 627 "<Rate_0> ... <Rate_nlayers-1> \n",
629 #endif // CONFIG_VP9_HIGHBITDEPTH 632 encoder = get_vpx_encoder_by_name(argv[3]);
633 if (!encoder) die(
"Unsupported codec.");
637 width = (
unsigned int)strtoul(argv[4], NULL, 0);
638 height = (
unsigned int)strtoul(argv[5], NULL, 0);
639 if (width < 16 || width % 2 || height < 16 || height % 2) {
640 die(
"Invalid resolution: %d x %d", width, height);
643 layering_mode = (int)strtol(argv[12], NULL, 0);
644 if (layering_mode < 0 || layering_mode > 13) {
645 die(
"Invalid layering mode (0..12) %s", argv[12]);
648 if (argc != min_args + mode_to_num_layers[layering_mode]) {
649 die(
"Invalid number of arguments");
652 #if CONFIG_VP9_HIGHBITDEPTH 653 switch (strtol(argv[argc - 1], NULL, 0)) {
660 input_bit_depth = 10;
664 input_bit_depth = 12;
666 default: die(
"Invalid bit depth (8, 10, 12) %s", argv[argc - 1]);
670 width, height, 32)) {
671 die(
"Failed to allocate image", width, height);
675 die(
"Failed to allocate image", width, height);
677 #endif // CONFIG_VP9_HIGHBITDEPTH 690 #if CONFIG_VP9_HIGHBITDEPTH 696 #endif // CONFIG_VP9_HIGHBITDEPTH 702 speed = (int)strtol(argv[8], NULL, 0);
704 die(
"Invalid speed setting: must be positive");
707 for (i = min_args_base;
708 (int)i < min_args_base + mode_to_num_layers[layering_mode]; ++i) {
709 rc.layer_target_bitrate[i - 13] = (int)strtol(argv[i], NULL, 0);
710 if (strncmp(encoder->name,
"vp8", 3) == 0)
712 else if (strncmp(encoder->name,
"vp9", 3) == 0)
732 cfg.
g_threads = (
unsigned int)strtoul(argv[11], NULL, 0);
734 error_resilient = (uint32_t)strtoul(argv[10], NULL, 0);
735 if (error_resilient != 0 && error_resilient != 1) {
736 die(
"Invalid value for error resilient (0, 1): %d.", error_resilient);
748 set_temporal_layer_pattern(layering_mode, &cfg, layer_flags,
751 set_rate_control_metrics(&rc, &cfg);
758 if (!(infile = fopen(argv[1],
"rb"))) {
759 die(
"Failed to open %s for reading", argv[1]);
765 char file_name[PATH_MAX];
767 info.codec_fourcc = encoder->fourcc;
768 info.frame_width = cfg.
g_w;
769 info.frame_height = cfg.
g_h;
773 snprintf(file_name,
sizeof(file_name),
"%s_%d.ivf", argv[2], i);
774 outfile[i] = vpx_video_writer_open(file_name, kContainerIVF, &info);
775 if (!outfile[i]) die(
"Failed to open %s for writing", file_name);
777 assert(outfile[i] != NULL);
783 #if CONFIG_VP9_HIGHBITDEPTH 785 &codec, encoder->codec_interface(), &cfg,
789 #endif // CONFIG_VP9_HIGHBITDEPTH 790 die_codec(&codec,
"Failed to initialize encoder");
792 if (strncmp(encoder->name,
"vp8", 3) == 0) {
798 set_roi_map(encoder->name, &cfg, &roi);
800 die_codec(&codec,
"Failed to set ROI map");
803 }
else if (strncmp(encoder->name,
"vp9", 3) == 0) {
805 memset(&svc_params, 0,
sizeof(svc_params));
816 set_roi_map(encoder->name, &cfg, &roi);
818 die_codec(&codec,
"Failed to set ROI map");
823 if (cfg.
g_threads > 1 && ((cfg.
g_w > 320 && cfg.
g_h > 240) || speed < 7))
828 die_codec(&codec,
"Failed to set SVC");
837 if (strncmp(encoder->name,
"vp8", 3) == 0) {
845 const int max_intra_size_pct = 1000;
851 while (frame_avail || got_data) {
852 struct vpx_usec_timer timer;
860 if (strncmp(encoder->name,
"vp9", 3) == 0) {
862 }
else if (strncmp(encoder->name,
"vp8", 3) == 0) {
866 flags = layer_flags[frame_cnt % flag_periodicity];
867 if (layering_mode == 0) flags = 0;
868 frame_avail = vpx_img_read(&raw, infile);
870 vpx_usec_timer_start(&timer);
873 die_codec(&codec,
"Failed to encode frame");
875 vpx_usec_timer_mark(&timer);
876 cx_time += vpx_usec_timer_elapsed(&timer);
878 if (layering_mode != 7) {
888 vpx_video_writer_write_frame(outfile[i], pkt->
data.
frame.buf,
890 ++rc.layer_tot_enc_frames[i];
891 rc.layer_encoding_bitrate[i] += 8.0 * pkt->
data.
frame.sz;
895 rc.layer_avg_frame_size[i] += 8.0 * pkt->
data.
frame.sz;
896 rc.layer_avg_rate_mismatch[i] +=
897 fabs(8.0 * pkt->
data.
frame.sz - rc.layer_pfb[i]) /
899 ++rc.layer_enc_frames[i];
905 if (frame_cnt > rc.window_size) {
906 sum_bitrate += 0.001 * 8.0 * pkt->
data.
frame.sz * framerate;
907 if (frame_cnt % rc.window_size == 0) {
908 rc.window_count += 1;
909 rc.avg_st_encoding_bitrate += sum_bitrate / rc.window_size;
910 rc.variance_st_encoding_bitrate +=
911 (sum_bitrate / rc.window_size) *
912 (sum_bitrate / rc.window_size);
917 if (frame_cnt > rc.window_size + rc.window_size / 2) {
918 sum_bitrate2 += 0.001 * 8.0 * pkt->
data.
frame.sz * framerate;
919 if (frame_cnt > 2 * rc.window_size &&
920 frame_cnt % rc.window_size == 0) {
921 rc.window_count += 1;
922 rc.avg_st_encoding_bitrate += sum_bitrate2 / rc.window_size;
923 rc.variance_st_encoding_bitrate +=
924 (sum_bitrate2 / rc.window_size) *
925 (sum_bitrate2 / rc.window_size);
934 pts += frame_duration;
937 printout_rate_control_summary(&rc, &cfg, frame_cnt);
939 printf(
"Frame cnt and encoding time/FPS stats for encoding: %d %f %f \n",
940 frame_cnt, 1000 * (
float)cx_time / (
double)(frame_cnt * 1000000),
941 1000000 * (
double)frame_cnt / (
double)cx_time);
946 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:714
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:71
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:718
#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:716
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:787
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
int temporal_layer_id_per_spatial[5]
Definition: vp8cx.h:790
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:42
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:724
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:721
unsigned int g_h
Height of the frame.
Definition: vpx_encoder.h:324
int delta_lf[8]
Definition: vp8cx.h:719
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:786
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:722
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:692
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:789
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:715
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:709
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