| 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 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 } | 783 } |
| 784 | 784 |
| 785 static vpx_codec_err_t image2yuvconfig(const vpx_image_t *img, | 785 static vpx_codec_err_t image2yuvconfig(const vpx_image_t *img, |
| 786 YV12_BUFFER_CONFIG *yv12) | 786 YV12_BUFFER_CONFIG *yv12) |
| 787 { | 787 { |
| 788 vpx_codec_err_t res = VPX_CODEC_OK; | 788 vpx_codec_err_t res = VPX_CODEC_OK; |
| 789 yv12->y_buffer = img->planes[VPX_PLANE_Y]; | 789 yv12->y_buffer = img->planes[VPX_PLANE_Y]; |
| 790 yv12->u_buffer = img->planes[VPX_PLANE_U]; | 790 yv12->u_buffer = img->planes[VPX_PLANE_U]; |
| 791 yv12->v_buffer = img->planes[VPX_PLANE_V]; | 791 yv12->v_buffer = img->planes[VPX_PLANE_V]; |
| 792 | 792 |
| 793 yv12->y_crop_width = img->d_w; |
| 794 yv12->y_crop_height = img->d_h; |
| 793 yv12->y_width = img->d_w; | 795 yv12->y_width = img->d_w; |
| 794 yv12->y_height = img->d_h; | 796 yv12->y_height = img->d_h; |
| 795 yv12->uv_width = yv12->y_width / 2; | 797 yv12->uv_width = yv12->y_width / 2; |
| 796 yv12->uv_height = yv12->y_height / 2; | 798 yv12->uv_height = yv12->y_height / 2; |
| 797 | 799 |
| 798 yv12->y_stride = img->stride[VPX_PLANE_Y]; | 800 yv12->y_stride = img->stride[VPX_PLANE_Y]; |
| 799 yv12->uv_stride = img->stride[VPX_PLANE_U]; | 801 yv12->uv_stride = img->stride[VPX_PLANE_U]; |
| 800 | 802 |
| 801 yv12->border = (img->stride[VPX_PLANE_Y] - img->d_w) / 2; | 803 yv12->border = (img->stride[VPX_PLANE_Y] - img->d_w) / 2; |
| 802 yv12->clrtype = (img->fmt == VPX_IMG_FMT_VPXI420 || img->fmt == VPX_IMG_FMT_
VPXYV12); | 804 yv12->clrtype = (img->fmt == VPX_IMG_FMT_VPXI420 || img->fmt == VPX_IMG_FMT_
VPXYV12); |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1008 }, | 1010 }, |
| 1009 { /* encoder functions */ | 1011 { /* encoder functions */ |
| 1010 NOT_IMPLEMENTED, | 1012 NOT_IMPLEMENTED, |
| 1011 NOT_IMPLEMENTED, | 1013 NOT_IMPLEMENTED, |
| 1012 NOT_IMPLEMENTED, | 1014 NOT_IMPLEMENTED, |
| 1013 NOT_IMPLEMENTED, | 1015 NOT_IMPLEMENTED, |
| 1014 NOT_IMPLEMENTED, | 1016 NOT_IMPLEMENTED, |
| 1015 NOT_IMPLEMENTED | 1017 NOT_IMPLEMENTED |
| 1016 } | 1018 } |
| 1017 }; | 1019 }; |
| OLD | NEW |