]> granicus.if.org Git - libvpx/commitdiff
Removing iface pointer from vpx_codec_priv.
authorDmitry Kovalev <dkovalev@google.com>
Wed, 20 Aug 2014 19:31:19 +0000 (12:31 -0700)
committerDmitry Kovalev <dkovalev@google.com>
Wed, 20 Aug 2014 19:31:19 +0000 (12:31 -0700)
The iface pointer is already in vpx_codec_ctx struct.

Change-Id: I9fffe27c613a7c94476f185a1e5a53ff6d99f1c6

vp8/vp8_cx_iface.c
vp8/vp8_dx_iface.c
vp9/vp9_cx_iface.c
vp9/vp9_dx_iface.c
vpx/internal/vpx_codec_internal.h
vpx/src/vpx_decoder.c
vpx/src/vpx_encoder.c

index 0c522bd083f8c06edc67ed6052a999adf678686d..2f394ef0a541fd5ffeaafe041132721670b83cf3 100644 (file)
@@ -650,7 +650,6 @@ static vpx_codec_err_t vp8e_init(vpx_codec_ctx_t *ctx,
 
         ctx->priv = &priv->base;
         ctx->priv->sz = sizeof(*ctx->priv);
-        ctx->priv->iface = ctx->iface;
         ctx->priv->alg_priv = priv;
         ctx->priv->init_flags = ctx->init_flags;
 
index c76ac145fa017beca8556b56209cfa3db6a5ea68..0deda507fc81d37a795aa505a14cd3c777a65d5b 100644 (file)
@@ -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_memset(ctx->priv, 0, sizeof(vpx_codec_alg_priv_t));
     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->si.sz = sizeof(ctx->priv->alg_priv->si);
     ctx->priv->alg_priv->decrypt_cb = NULL;
index 08f68491d7507163cd524bdb3360eeb409d7e7d6..1716053903f4e96961dcf7f68145f2a74bf136dc 100644 (file)
@@ -668,7 +668,6 @@ static vpx_codec_err_t encoder_init(vpx_codec_ctx_t *ctx,
 
     ctx->priv = &priv->base;
     ctx->priv->sz = sizeof(*ctx->priv);
-    ctx->priv->iface = ctx->iface;
     ctx->priv->alg_priv = priv;
     ctx->priv->init_flags = ctx->init_flags;
     ctx->priv->enc.total_encoders = 1;
index ee8290512b46f6279465ae393feefd1ecb274b1c..bb2bb10d722fb041da567622ded003c68ca4c696 100644 (file)
@@ -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->sz = sizeof(*ctx->priv);
-    ctx->priv->iface = ctx->iface;
     ctx->priv->alg_priv = alg_priv;
     ctx->priv->alg_priv->si.sz = sizeof(ctx->priv->alg_priv->si);
     ctx->priv->init_flags = ctx->init_flags;
index 0f5ce3d680623fa6c5b7d68160d0e729e5658199..95119dfc7a9e607b09bbc60101d604e32dfeb870 100644 (file)
@@ -338,7 +338,6 @@ typedef struct vpx_codec_priv_cb_pair {
  */
 struct vpx_codec_priv {
   unsigned int                    sz;
-  vpx_codec_iface_t              *iface;
   struct vpx_codec_alg_priv      *alg_priv;
   const char                     *err_detail;
   vpx_codec_flags_t               init_flags;
index 4d22a0847dd64f7da61922bf98502f9a1f72804e..b19c4409f214475e589d86f5441a3d583070d00c 100644 (file)
@@ -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;
       vpx_codec_destroy(ctx);
     }
-
-    if (ctx->priv)
-      ctx->priv->iface = ctx->iface;
   }
 
   return SAVE_STATUS(ctx, res);
index 6e18bd129b8cd9738db4e46a5a1f0095b103e159..57734553553a88b2fbd221cf9405e2b94b060adb 100644 (file)
@@ -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;
       vpx_codec_destroy(ctx);
     }
-
-    if (ctx->priv)
-      ctx->priv->iface = ctx->iface;
   }
 
   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)
           break;