ref: c72f0ee35b1de7258b81f9fefb2d990bfdd701d6
parent: df083b266aac1a25044b7d43e630c51614791523
author: Dmitry Kovalev <dkovalev@google.com>
date: Tue Aug 19 14:47:58 EDT 2014
Removing output_pkt_list and pkt_list from config structs. Change-Id: Id21f1e77f1d030fbe3f5f30486d2a7ecb2bccdf5
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -840,8 +840,6 @@
kf_list = fopen("kf_list.stt", "w");
#endif
- cpi->output_pkt_list = oxcf->output_pkt_list;
-
cpi->allow_encode_breakout = ENCODE_BREAKOUT_ENABLED;
if (oxcf->pass == 1) {
--- a/vp9/vp9_cx_iface.c
+++ b/vp9/vp9_cx_iface.c
@@ -21,7 +21,6 @@
#include "vp9/vp9_iface_common.h"
struct vp9_extracfg {
- struct vpx_codec_pkt_list *pkt_list;
int cpu_used; // available cpu percentage in 1/16
unsigned int enable_auto_alt_ref;
unsigned int noise_sensitivity;
@@ -44,7 +43,6 @@
};
static struct vp9_extracfg default_extra_cfg = {
- NULL,
0, // cpu_used
1, // enable_auto_alt_ref
0, // noise_sensitivity
@@ -383,7 +381,6 @@
oxcf->sharpness = extra_cfg->sharpness;
oxcf->two_pass_stats_in = cfg->rc_twopass_stats_in;
- oxcf->output_pkt_list = extra_cfg->pkt_list;
#if CONFIG_FP_MB_STATS
oxcf->firstpass_mb_stats_in = cfg->rc_firstpass_mb_stats_in;
@@ -667,7 +664,6 @@
}
priv->extra_cfg = default_extra_cfg;
- priv->extra_cfg.pkt_list = &priv->pkt_list.head;
vp9_initialize_enc();
@@ -679,10 +675,12 @@
&ctx->priv->alg_priv->cfg,
&ctx->priv->alg_priv->extra_cfg);
cpi = vp9_create_compressor(&ctx->priv->alg_priv->oxcf);
- if (cpi == NULL)
+ if (cpi == NULL) {
res = VPX_CODEC_MEM_ERROR;
- else
+ } else {
+ cpi->output_pkt_list = &priv->pkt_list.head;
ctx->priv->alg_priv->cpi = cpi;
+ }
}
}
--
⑨