OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 (void)si; | 77 (void)si; |
78 return sizeof(vpx_codec_alg_priv_t); | 78 return sizeof(vpx_codec_alg_priv_t); |
79 } | 79 } |
80 | 80 |
81 static void vp8_init_ctx(vpx_codec_ctx_t *ctx) | 81 static void vp8_init_ctx(vpx_codec_ctx_t *ctx) |
82 { | 82 { |
83 ctx->priv = | 83 ctx->priv = |
84 (vpx_codec_priv_t *)vpx_memalign(8, sizeof(vpx_codec_alg_priv_t)); | 84 (vpx_codec_priv_t *)vpx_memalign(8, sizeof(vpx_codec_alg_priv_t)); |
85 vpx_memset(ctx->priv, 0, sizeof(vpx_codec_alg_priv_t)); | 85 vpx_memset(ctx->priv, 0, sizeof(vpx_codec_alg_priv_t)); |
86 ctx->priv->sz = sizeof(*ctx->priv); | 86 ctx->priv->sz = sizeof(*ctx->priv); |
87 ctx->priv->iface = ctx->iface; | |
88 ctx->priv->alg_priv = (vpx_codec_alg_priv_t *)ctx->priv; | 87 ctx->priv->alg_priv = (vpx_codec_alg_priv_t *)ctx->priv; |
89 ctx->priv->alg_priv->si.sz = sizeof(ctx->priv->alg_priv->si); | 88 ctx->priv->alg_priv->si.sz = sizeof(ctx->priv->alg_priv->si); |
90 ctx->priv->alg_priv->decrypt_cb = NULL; | 89 ctx->priv->alg_priv->decrypt_cb = NULL; |
91 ctx->priv->alg_priv->decrypt_state = NULL; | 90 ctx->priv->alg_priv->decrypt_state = NULL; |
92 ctx->priv->alg_priv->flushed = 0; | 91 ctx->priv->alg_priv->flushed = 0; |
93 ctx->priv->init_flags = ctx->init_flags; | 92 ctx->priv->init_flags = ctx->init_flags; |
94 | 93 |
95 if (ctx->config.dec) | 94 if (ctx->config.dec) |
96 { | 95 { |
97 /* Update the reference to the config structure to an internal copy. */ | 96 /* Update the reference to the config structure to an internal copy. */ |
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 { /* encoder functions */ | 819 { /* encoder functions */ |
821 0, | 820 0, |
822 NOT_IMPLEMENTED, | 821 NOT_IMPLEMENTED, |
823 NOT_IMPLEMENTED, | 822 NOT_IMPLEMENTED, |
824 NOT_IMPLEMENTED, | 823 NOT_IMPLEMENTED, |
825 NOT_IMPLEMENTED, | 824 NOT_IMPLEMENTED, |
826 NOT_IMPLEMENTED, | 825 NOT_IMPLEMENTED, |
827 NOT_IMPLEMENTED | 826 NOT_IMPLEMENTED |
828 } | 827 } |
829 }; | 828 }; |
OLD | NEW |