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

Side by Side Diff: source/libvpx/vp9/vp9_dx_iface.c

Issue 135183020: Cast away signedness warning (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 10 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 | « no previous file | no next file » | 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
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 199
200 return VPX_CODEC_OK; 200 return VPX_CODEC_OK;
201 } 201 }
202 202
203 static vpx_codec_err_t vp9_get_si(vpx_codec_alg_priv_t *ctx, 203 static vpx_codec_err_t vp9_get_si(vpx_codec_alg_priv_t *ctx,
204 vpx_codec_stream_info_t *si) { 204 vpx_codec_stream_info_t *si) {
205 const size_t sz = (si->sz >= sizeof(vp9_stream_info_t)) 205 const size_t sz = (si->sz >= sizeof(vp9_stream_info_t))
206 ? sizeof(vp9_stream_info_t) 206 ? sizeof(vp9_stream_info_t)
207 : sizeof(vpx_codec_stream_info_t); 207 : sizeof(vpx_codec_stream_info_t);
208 memcpy(si, &ctx->si, sz); 208 memcpy(si, &ctx->si, sz);
209 si->sz = sz; 209 si->sz = (unsigned int)sz;
210 210
211 return VPX_CODEC_OK; 211 return VPX_CODEC_OK;
212 } 212 }
213 213
214 214
215 static vpx_codec_err_t update_error_state(vpx_codec_alg_priv_t *ctx, 215 static vpx_codec_err_t update_error_state(vpx_codec_alg_priv_t *ctx,
216 const struct vpx_internal_error_info *error) { 216 const struct vpx_internal_error_info *error) {
217 if (error->error_code) 217 if (error->error_code)
218 ctx->base.err_detail = error->has_detail ? error->detail : NULL; 218 ctx->base.err_detail = error->has_detail ? error->detail : NULL;
219 219
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 { // NOLINT 701 { // NOLINT
702 /* encoder functions */ 702 /* encoder functions */
703 NOT_IMPLEMENTED, 703 NOT_IMPLEMENTED,
704 NOT_IMPLEMENTED, 704 NOT_IMPLEMENTED,
705 NOT_IMPLEMENTED, 705 NOT_IMPLEMENTED,
706 NOT_IMPLEMENTED, 706 NOT_IMPLEMENTED,
707 NOT_IMPLEMENTED, 707 NOT_IMPLEMENTED,
708 NOT_IMPLEMENTED 708 NOT_IMPLEMENTED
709 } 709 }
710 }; 710 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698