Merge "Removing iface pointer from vpx_codec_priv."
This commit is contained in:
Коммит
49b27a87f5
|
@ -650,7 +650,6 @@ static vpx_codec_err_t vp8e_init(vpx_codec_ctx_t *ctx,
|
||||||
|
|
||||||
ctx->priv = &priv->base;
|
ctx->priv = &priv->base;
|
||||||
ctx->priv->sz = sizeof(*ctx->priv);
|
ctx->priv->sz = sizeof(*ctx->priv);
|
||||||
ctx->priv->iface = ctx->iface;
|
|
||||||
ctx->priv->alg_priv = priv;
|
ctx->priv->alg_priv = priv;
|
||||||
ctx->priv->init_flags = ctx->init_flags;
|
ctx->priv->init_flags = ctx->init_flags;
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,6 @@ static void vp8_init_ctx(vpx_codec_ctx_t *ctx)
|
||||||
(vpx_codec_priv_t *)vpx_memalign(8, sizeof(vpx_codec_alg_priv_t));
|
(vpx_codec_priv_t *)vpx_memalign(8, sizeof(vpx_codec_alg_priv_t));
|
||||||
vpx_memset(ctx->priv, 0, sizeof(vpx_codec_alg_priv_t));
|
vpx_memset(ctx->priv, 0, sizeof(vpx_codec_alg_priv_t));
|
||||||
ctx->priv->sz = sizeof(*ctx->priv);
|
ctx->priv->sz = sizeof(*ctx->priv);
|
||||||
ctx->priv->iface = ctx->iface;
|
|
||||||
ctx->priv->alg_priv = (vpx_codec_alg_priv_t *)ctx->priv;
|
ctx->priv->alg_priv = (vpx_codec_alg_priv_t *)ctx->priv;
|
||||||
ctx->priv->alg_priv->si.sz = sizeof(ctx->priv->alg_priv->si);
|
ctx->priv->alg_priv->si.sz = sizeof(ctx->priv->alg_priv->si);
|
||||||
ctx->priv->alg_priv->decrypt_cb = NULL;
|
ctx->priv->alg_priv->decrypt_cb = NULL;
|
||||||
|
|
|
@ -668,7 +668,6 @@ static vpx_codec_err_t encoder_init(vpx_codec_ctx_t *ctx,
|
||||||
|
|
||||||
ctx->priv = &priv->base;
|
ctx->priv = &priv->base;
|
||||||
ctx->priv->sz = sizeof(*ctx->priv);
|
ctx->priv->sz = sizeof(*ctx->priv);
|
||||||
ctx->priv->iface = ctx->iface;
|
|
||||||
ctx->priv->alg_priv = priv;
|
ctx->priv->alg_priv = priv;
|
||||||
ctx->priv->init_flags = ctx->init_flags;
|
ctx->priv->init_flags = ctx->init_flags;
|
||||||
ctx->priv->enc.total_encoders = 1;
|
ctx->priv->enc.total_encoders = 1;
|
||||||
|
|
|
@ -66,7 +66,6 @@ static vpx_codec_err_t decoder_init(vpx_codec_ctx_t *ctx,
|
||||||
|
|
||||||
ctx->priv = (vpx_codec_priv_t *)alg_priv;
|
ctx->priv = (vpx_codec_priv_t *)alg_priv;
|
||||||
ctx->priv->sz = sizeof(*ctx->priv);
|
ctx->priv->sz = sizeof(*ctx->priv);
|
||||||
ctx->priv->iface = ctx->iface;
|
|
||||||
ctx->priv->alg_priv = alg_priv;
|
ctx->priv->alg_priv = alg_priv;
|
||||||
ctx->priv->alg_priv->si.sz = sizeof(ctx->priv->alg_priv->si);
|
ctx->priv->alg_priv->si.sz = sizeof(ctx->priv->alg_priv->si);
|
||||||
ctx->priv->init_flags = ctx->init_flags;
|
ctx->priv->init_flags = ctx->init_flags;
|
||||||
|
|
|
@ -338,7 +338,6 @@ typedef struct vpx_codec_priv_cb_pair {
|
||||||
*/
|
*/
|
||||||
struct vpx_codec_priv {
|
struct vpx_codec_priv {
|
||||||
unsigned int sz;
|
unsigned int sz;
|
||||||
vpx_codec_iface_t *iface;
|
|
||||||
struct vpx_codec_alg_priv *alg_priv;
|
struct vpx_codec_alg_priv *alg_priv;
|
||||||
const char *err_detail;
|
const char *err_detail;
|
||||||
vpx_codec_flags_t init_flags;
|
vpx_codec_flags_t init_flags;
|
||||||
|
|
|
@ -54,9 +54,6 @@ vpx_codec_err_t vpx_codec_dec_init_ver(vpx_codec_ctx_t *ctx,
|
||||||
ctx->err_detail = ctx->priv ? ctx->priv->err_detail : NULL;
|
ctx->err_detail = ctx->priv ? ctx->priv->err_detail : NULL;
|
||||||
vpx_codec_destroy(ctx);
|
vpx_codec_destroy(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctx->priv)
|
|
||||||
ctx->priv->iface = ctx->iface;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return SAVE_STATUS(ctx, res);
|
return SAVE_STATUS(ctx, res);
|
||||||
|
|
|
@ -53,9 +53,6 @@ vpx_codec_err_t vpx_codec_enc_init_ver(vpx_codec_ctx_t *ctx,
|
||||||
ctx->err_detail = ctx->priv ? ctx->priv->err_detail : NULL;
|
ctx->err_detail = ctx->priv ? ctx->priv->err_detail : NULL;
|
||||||
vpx_codec_destroy(ctx);
|
vpx_codec_destroy(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctx->priv)
|
|
||||||
ctx->priv->iface = ctx->iface;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return SAVE_STATUS(ctx, res);
|
return SAVE_STATUS(ctx, res);
|
||||||
|
@ -135,9 +132,6 @@ vpx_codec_err_t vpx_codec_enc_init_multi_ver(vpx_codec_ctx_t *ctx,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctx->priv)
|
|
||||||
ctx->priv->iface = ctx->iface;
|
|
||||||
|
|
||||||
if (res)
|
if (res)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче