| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |