blob: f02bd6841e6f1725c8e4ae35d9a9ce91ffc9a684 [file] [log] [blame]
Prajakta Gudadhe6a3be8d2012-06-11 14:08:27 -07001/* Copyright (c) 2011, NVIDIA CORPORATION. All rights reserved.
2 *
3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions
5 * are met:
6 *
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the NVIDIA CORPORATION nor the names of its
13 * contributors may be used to endorse or promote products derived
14 * from this software without specific prior written permission.
15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
19 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
25 * THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#ifndef __JSIMD_NEON_H__
29#define __JSIMD_NEON_H__
30#include "jinclude.h"
31#include "jpeglib.h"
Prajakta Gudadhe6a3be8d2012-06-11 14:08:27 -070032
33#if defined(NV_ARM_NEON) && defined(__ARM_HAVE_NEON)
34
35#if defined(ANDROID_ARMV6_IDCT)
36#error "ANDROID_ARMV6_IDCT and NV_ARM_NEON are muturaly exclusive modes, both have been defined"
37#endif
38
39GLOBAL(void)
40jsimd_idct_2x2 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
41 JCOEFPTR coef_block, JSAMPARRAY output_buf,
42 JDIMENSION output_col);
43
44GLOBAL(void)
45jsimd_idct_ifast (j_decompress_ptr cinfo, jpeg_component_info * compptr,
46 JCOEFPTR coef_block, JSAMPARRAY output_buf,
47 JDIMENSION output_col);
48
49GLOBAL(void)
50jsimd_idct_4x4 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
51 JCOEFPTR coef_block, JSAMPARRAY output_buf,
52 JDIMENSION output_col);
53
54GLOBAL(int)
55cap_neon_idct_2x2 (void);
56
57GLOBAL(int)
58cap_neon_idct_4x4 (void);
59
60GLOBAL(int)
61cap_neon_idct_ifast (void);
62
63GLOBAL(int)
64cap_neon_ycc_rgb (void);
65
66GLOBAL(void)
67jsimd_ycc_rgb565_convert (j_decompress_ptr cinfo,
68 JSAMPIMAGE input_buf, JDIMENSION input_row,
69 JSAMPARRAY output_buf, int num_rows);
70
71GLOBAL(void)
72jsimd_ycc_rgba8888_convert (j_decompress_ptr cinfo,
73 JSAMPIMAGE input_buf, JDIMENSION input_row,
74 JSAMPARRAY output_buf, int num_rows);
75#endif
76
77#endif