| 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 #include "vpx_config.h" | 12 #include "vpx_config.h" |
| 13 #include "vp8_rtcd.h" | 13 #include "vp8_rtcd.h" |
| 14 #include "vpx_scale_rtcd.h" | 14 #include "vpx_scale_rtcd.h" |
| 15 #include "vpx_scale/yv12config.h" | 15 #include "vpx_scale/yv12config.h" |
| 16 #include "postproc.h" | 16 #include "postproc.h" |
| 17 #include "common.h" | 17 #include "common.h" |
| 18 #include "vpx_scale/vpxscale.h" | 18 #include "vpx_scale/vpx_scale.h" |
| 19 #include "systemdependent.h" | 19 #include "systemdependent.h" |
| 20 | 20 |
| 21 #include <limits.h> | 21 #include <limits.h> |
| 22 #include <math.h> | 22 #include <math.h> |
| 23 #include <stdlib.h> | 23 #include <stdlib.h> |
| 24 #include <stdio.h> | 24 #include <stdio.h> |
| 25 | 25 |
| 26 #define RGB_TO_YUV(t)
\ | 26 #define RGB_TO_YUV(t)
\ |
| 27 ( (0.257*(float)(t>>16)) + (0.504*(float)(t>>8&0xff)) + (0.098*(float)(t&0xf
f)) + 16), \ | 27 ( (0.257*(float)(t>>16)) + (0.504*(float)(t>>8&0xff)) + (0.098*(float)(t&0xf
f)) + 16), \ |
| 28 (-(0.148*(float)(t>>16)) - (0.291*(float)(t>>8&0xff)) + (0.439*(float)(t&0xf
f)) + 128), \ | 28 (-(0.148*(float)(t>>16)) - (0.291*(float)(t>>8&0xff)) + (0.439*(float)(t&0xf
f)) + 128), \ |
| (...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1198 | 1198 |
| 1199 *dest = oci->post_proc_buffer; | 1199 *dest = oci->post_proc_buffer; |
| 1200 | 1200 |
| 1201 /* handle problem with extending borders */ | 1201 /* handle problem with extending borders */ |
| 1202 dest->y_width = oci->Width; | 1202 dest->y_width = oci->Width; |
| 1203 dest->y_height = oci->Height; | 1203 dest->y_height = oci->Height; |
| 1204 dest->uv_height = dest->y_height / 2; | 1204 dest->uv_height = dest->y_height / 2; |
| 1205 return 0; | 1205 return 0; |
| 1206 } | 1206 } |
| 1207 #endif | 1207 #endif |
| OLD | NEW |