Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
52868 views
1
/*****************************************************************************
2
* pixel.h: aarch64 pixel metrics
3
*****************************************************************************
4
* Copyright (C) 2009-2016 x264 project
5
*
6
* Authors: David Conrad <[email protected]>
7
* Janne Grunau <[email protected]>
8
*
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.
22
*
23
* This program is also available under a commercial proprietary license.
24
* For more information, contact us at [email protected].
25
*****************************************************************************/
26
27
#ifndef X264_AARCH64_PIXEL_H
28
#define X264_AARCH64_PIXEL_H
29
30
#define DECL_PIXELS( ret, name, suffix, args ) \
31
ret x264_pixel_##name##_16x16_##suffix args;\
32
ret x264_pixel_##name##_16x8_##suffix args;\
33
ret x264_pixel_##name##_8x16_##suffix args;\
34
ret x264_pixel_##name##_8x8_##suffix args;\
35
ret x264_pixel_##name##_8x4_##suffix args;\
36
ret x264_pixel_##name##_4x16_##suffix args;\
37
ret x264_pixel_##name##_4x8_##suffix args;\
38
ret x264_pixel_##name##_4x4_##suffix args;\
39
40
#define DECL_X1( name, suffix ) \
41
DECL_PIXELS( int, name, suffix, ( uint8_t *, intptr_t, uint8_t *, intptr_t ) )
42
43
#define DECL_X4( name, suffix ) \
44
DECL_PIXELS( void, name##_x3, suffix, ( uint8_t *, uint8_t *, uint8_t *, uint8_t *, intptr_t, int * ) )\
45
DECL_PIXELS( void, name##_x4, suffix, ( uint8_t *, uint8_t *, uint8_t *, uint8_t *, uint8_t *, intptr_t, int * ) )
46
47
DECL_X1( sad, neon )
48
DECL_X4( sad, neon )
49
DECL_X1( satd, neon )
50
DECL_X1( ssd, neon )
51
52
53
void x264_pixel_ssd_nv12_core_neon( uint8_t *, intptr_t, uint8_t *, intptr_t, int, int, uint64_t *, uint64_t * );
54
55
int x264_pixel_vsad_neon( uint8_t *, intptr_t, int );
56
57
int x264_pixel_sa8d_8x8_neon ( uint8_t *, intptr_t, uint8_t *, intptr_t );
58
int x264_pixel_sa8d_16x16_neon( uint8_t *, intptr_t, uint8_t *, intptr_t );
59
uint64_t x264_pixel_sa8d_satd_16x16_neon( uint8_t *, intptr_t, uint8_t *, intptr_t );
60
61
uint64_t x264_pixel_var_8x8_neon ( uint8_t *, intptr_t );
62
uint64_t x264_pixel_var_8x16_neon ( uint8_t *, intptr_t );
63
uint64_t x264_pixel_var_16x16_neon( uint8_t *, intptr_t );
64
int x264_pixel_var2_8x8_neon ( uint8_t *, intptr_t, uint8_t *, intptr_t, int * );
65
int x264_pixel_var2_8x16_neon( uint8_t *, intptr_t, uint8_t *, intptr_t, int * );
66
67
uint64_t x264_pixel_hadamard_ac_8x8_neon ( uint8_t *, intptr_t );
68
uint64_t x264_pixel_hadamard_ac_8x16_neon ( uint8_t *, intptr_t );
69
uint64_t x264_pixel_hadamard_ac_16x8_neon ( uint8_t *, intptr_t );
70
uint64_t x264_pixel_hadamard_ac_16x16_neon( uint8_t *, intptr_t );
71
72
void x264_pixel_ssim_4x4x2_core_neon( const uint8_t *, intptr_t,
73
const uint8_t *, intptr_t,
74
int sums[2][4] );
75
float x264_pixel_ssim_end4_neon( int sum0[5][4], int sum1[5][4], int width );
76
77
int x264_pixel_asd8_neon( uint8_t *, intptr_t, uint8_t *, intptr_t, int );
78
79
#endif
80
81