• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1  /* 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"
32  
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  
39  GLOBAL(void)
40  jsimd_idct_2x2 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
41                  JCOEFPTR coef_block, JSAMPARRAY output_buf,
42                  JDIMENSION output_col);
43  
44  GLOBAL(void)
45  jsimd_idct_ifast (j_decompress_ptr cinfo, jpeg_component_info * compptr,
46                  JCOEFPTR coef_block, JSAMPARRAY output_buf,
47                  JDIMENSION output_col);
48  
49  GLOBAL(void)
50  jsimd_idct_4x4 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
51                  JCOEFPTR coef_block, JSAMPARRAY output_buf,
52                  JDIMENSION output_col);
53  
54  GLOBAL(int)
55  cap_neon_idct_2x2 (void);
56  
57  GLOBAL(int)
58  cap_neon_idct_4x4 (void);
59  
60  GLOBAL(int)
61  cap_neon_idct_ifast (void);
62  
63  GLOBAL(int)
64  cap_neon_ycc_rgb (void);
65  
66  GLOBAL(void)
67  jsimd_ycc_rgb565_convert (j_decompress_ptr cinfo,
68                         JSAMPIMAGE input_buf, JDIMENSION input_row,
69                         JSAMPARRAY output_buf, int num_rows);
70  
71  GLOBAL(void)
72  jsimd_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
78