Removing vpx_codec_vp9x_cx and internal experimental flag.
vpx_codec_vp9x_cx is not used internally. Experimental flag from vp9_extracfg is also not really used. YUV 4:4:4 just works after these changes (you have to specify --profile=1 for the encoder). Change-Id: Ib1c8461d0d19d159827e005efe868f891eea0140
This commit is contained in:
parent
f3beca079c
commit
116e0a1ab7
@ -1,4 +1,2 @@
|
||||
data vpx_codec_vp9_cx_algo
|
||||
text vpx_codec_vp9_cx
|
||||
data vpx_codec_vp9x_cx_algo
|
||||
text vpx_codec_vp9x_cx
|
||||
|
@ -32,7 +32,6 @@ struct vp9_extracfg {
|
||||
unsigned int arnr_max_frames;
|
||||
unsigned int arnr_strength;
|
||||
unsigned int arnr_type;
|
||||
unsigned int experimental;
|
||||
vp8e_tuning tuning;
|
||||
unsigned int cq_level; /* constrained quality level */
|
||||
unsigned int rc_max_intra_bitrate_pct;
|
||||
@ -61,7 +60,6 @@ static const struct extraconfig_map extracfg_map[] = {
|
||||
7, /* arnr_max_frames */
|
||||
5, /* arnr_strength */
|
||||
3, /* arnr_type*/
|
||||
0, /* experimental mode */
|
||||
0, /* tuning*/
|
||||
10, /* cq_level */
|
||||
0, /* rc_max_intra_bitrate_pct */
|
||||
@ -250,7 +248,7 @@ static vpx_codec_err_t validate_img(vpx_codec_alg_priv_t *ctx,
|
||||
static vpx_codec_err_t set_vp9e_config(VP9_CONFIG *oxcf,
|
||||
vpx_codec_enc_cfg_t cfg,
|
||||
struct vp9_extracfg vp8_cfg) {
|
||||
oxcf->version = cfg.g_profile | (vp8_cfg.experimental ? 0x4 : 0);
|
||||
oxcf->version = cfg.g_profile;
|
||||
oxcf->width = cfg.g_w;
|
||||
oxcf->height = cfg.g_h;
|
||||
/* guess a frame rate if out of whack, use 30 */
|
||||
@ -472,8 +470,7 @@ static vpx_codec_err_t set_param(vpx_codec_alg_priv_t *ctx,
|
||||
}
|
||||
|
||||
|
||||
static vpx_codec_err_t vp9e_common_init(vpx_codec_ctx_t *ctx,
|
||||
int experimental) {
|
||||
static vpx_codec_err_t vp9e_common_init(vpx_codec_ctx_t *ctx) {
|
||||
vpx_codec_err_t res = VPX_CODEC_OK;
|
||||
struct vpx_codec_alg_priv *priv;
|
||||
vpx_codec_enc_cfg_t *cfg;
|
||||
@ -515,7 +512,6 @@ static vpx_codec_err_t vp9e_common_init(vpx_codec_ctx_t *ctx,
|
||||
|
||||
priv->vp8_cfg = extracfg_map[i].cfg;
|
||||
priv->vp8_cfg.pkt_list = &priv->pkt_list.head;
|
||||
priv->vp8_cfg.experimental = experimental;
|
||||
|
||||
// TODO(agrange) Check the limits set on this buffer, or the check that is
|
||||
// applied in vp9e_encode.
|
||||
@ -553,18 +549,9 @@ static vpx_codec_err_t vp9e_common_init(vpx_codec_ctx_t *ctx,
|
||||
|
||||
static vpx_codec_err_t vp9e_init(vpx_codec_ctx_t *ctx,
|
||||
vpx_codec_priv_enc_mr_cfg_t *data) {
|
||||
return vp9e_common_init(ctx, 0);
|
||||
return vp9e_common_init(ctx);
|
||||
}
|
||||
|
||||
|
||||
#if CONFIG_EXPERIMENTAL
|
||||
static vpx_codec_err_t vp9e_exp_init(vpx_codec_ctx_t *ctx,
|
||||
vpx_codec_priv_enc_mr_cfg_t *data) {
|
||||
return vp9e_common_init(ctx, 1);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
static vpx_codec_err_t vp9e_destroy(vpx_codec_alg_priv_t *ctx) {
|
||||
free(ctx->cx_data);
|
||||
vp9_remove_compressor(&ctx->cpi);
|
||||
@ -1177,33 +1164,3 @@ CODEC_INTERFACE(vpx_codec_vp9_cx) = {
|
||||
vp9e_get_preview,
|
||||
} /* encoder functions */
|
||||
};
|
||||
|
||||
|
||||
#if CONFIG_EXPERIMENTAL
|
||||
|
||||
CODEC_INTERFACE(vpx_codec_vp9x_cx) = {
|
||||
"VP8 Experimental Encoder" VERSION_STRING,
|
||||
VPX_CODEC_INTERNAL_ABI_VERSION,
|
||||
VPX_CODEC_CAP_ENCODER | VPX_CODEC_CAP_PSNR,
|
||||
/* vpx_codec_caps_t caps; */
|
||||
vp9e_exp_init, /* vpx_codec_init_fn_t init; */
|
||||
vp9e_destroy, /* vpx_codec_destroy_fn_t destroy; */
|
||||
vp9e_ctf_maps, /* vpx_codec_ctrl_fn_map_t *ctrl_maps; */
|
||||
NOT_IMPLEMENTED, /* vpx_codec_get_mmap_fn_t get_mmap; */
|
||||
NOT_IMPLEMENTED, /* vpx_codec_set_mmap_fn_t set_mmap; */
|
||||
{ // NOLINT
|
||||
NOT_IMPLEMENTED, /* vpx_codec_peek_si_fn_t peek_si; */
|
||||
NOT_IMPLEMENTED, /* vpx_codec_get_si_fn_t get_si; */
|
||||
NOT_IMPLEMENTED, /* vpx_codec_decode_fn_t decode; */
|
||||
NOT_IMPLEMENTED, /* vpx_codec_frame_get_fn_t frame_get; */
|
||||
},
|
||||
{ // NOLINT
|
||||
vp9e_usage_cfg_map, /* vpx_codec_enc_cfg_map_t peek_si; */
|
||||
vp9e_encode, /* vpx_codec_encode_fn_t encode; */
|
||||
vp9e_get_cxdata, /* vpx_codec_get_cx_data_fn_t frame_get; */
|
||||
vp9e_set_config,
|
||||
NOT_IMPLEMENTED,
|
||||
vp9e_get_preview,
|
||||
} /* encoder functions */
|
||||
};
|
||||
#endif
|
||||
|
@ -38,8 +38,6 @@ extern vpx_codec_iface_t *vpx_codec_vp8_cx(void);
|
||||
/* TODO(jkoleszar): These move to VP9 in a later patch set. */
|
||||
extern vpx_codec_iface_t vpx_codec_vp9_cx_algo;
|
||||
extern vpx_codec_iface_t *vpx_codec_vp9_cx(void);
|
||||
extern vpx_codec_iface_t vpx_codec_vp9x_cx_algo;
|
||||
extern vpx_codec_iface_t *vpx_codec_vp9x_cx(void);
|
||||
|
||||
/*!@} - end algorithm interface member group*/
|
||||
|
||||
@ -257,7 +255,7 @@ typedef struct vpx_scaling_mode {
|
||||
/*!\brief VP8 token partition mode
|
||||
*
|
||||
* This defines VP8 partitioning mode for compressed data, i.e., the number of
|
||||
* sub-streams in the bitstream. Used for parallelized decoding.
|
||||
* sub-streams in the bitstream. Used for parallelized decoding.
|
||||
*
|
||||
*/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user