| 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 |
| 11 | 11 |
| 12 /*!\file | 12 /*!\file |
| 13 * \brief Provides the high level interface to wrap encoder algorithms. | 13 * \brief Provides the high level interface to wrap encoder algorithms. |
| 14 * | 14 * |
| 15 */ | 15 */ |
| 16 #include <limits.h> | 16 #include <limits.h> |
| 17 #include <string.h> | 17 #include <string.h> |
| 18 #include "vpx_config.h" |
| 18 #include "vpx/internal/vpx_codec_internal.h" | 19 #include "vpx/internal/vpx_codec_internal.h" |
| 19 #include "vpx_config.h" | |
| 20 | 20 |
| 21 #define SAVE_STATUS(ctx,var) (ctx?(ctx->err = var):var) | 21 #define SAVE_STATUS(ctx,var) (ctx?(ctx->err = var):var) |
| 22 | 22 |
| 23 static vpx_codec_alg_priv_t *get_alg_priv(vpx_codec_ctx_t *ctx) { | 23 static vpx_codec_alg_priv_t *get_alg_priv(vpx_codec_ctx_t *ctx) { |
| 24 return (vpx_codec_alg_priv_t *)ctx->priv; | 24 return (vpx_codec_alg_priv_t *)ctx->priv; |
| 25 } | 25 } |
| 26 | 26 |
| 27 vpx_codec_err_t vpx_codec_enc_init_ver(vpx_codec_ctx_t *ctx, | 27 vpx_codec_err_t vpx_codec_enc_init_ver(vpx_codec_ctx_t *ctx, |
| 28 vpx_codec_iface_t *iface, | 28 vpx_codec_iface_t *iface, |
| 29 const vpx_codec_enc_cfg_t *cfg, | 29 const vpx_codec_enc_cfg_t *cfg, |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 | 392 |
| 393 pkt = (const vpx_codec_cx_pkt_t *)*iter; | 393 pkt = (const vpx_codec_cx_pkt_t *)*iter; |
| 394 | 394 |
| 395 if ((size_t)(pkt - list->pkts) < list->cnt) | 395 if ((size_t)(pkt - list->pkts) < list->cnt) |
| 396 *iter = pkt + 1; | 396 *iter = pkt + 1; |
| 397 else | 397 else |
| 398 pkt = NULL; | 398 pkt = NULL; |
| 399 | 399 |
| 400 return pkt; | 400 return pkt; |
| 401 } | 401 } |
| OLD | NEW |