Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: source/libvpx/vpx/src/vpx_encoder.c

Issue 592203002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vpx/src/svc_encodeframe.c ('k') | source/libvpx/vpx/svc_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « source/libvpx/vpx/src/svc_encodeframe.c ('k') | source/libvpx/vpx/svc_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698