xref: /aosp_15_r20/external/libavc/common/ih264_mem_fns.h (revision 495ae853bb871d1e5a258cb02c2cc13cde8ddb9a)
1 /******************************************************************************
2  *
3  * Copyright (C) 2015 The Android Open Source Project
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at:
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *****************************************************************************
18  * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
19 */
20 
21 /**
22 *******************************************************************************
23 * @file
24 *  ih264_mem_fns.h
25 *
26 * @brief
27 *  Function declarations used for memory functions
28 *
29 * @author
30 *  ittiam
31 *
32 * @remarks
33 *  none
34 *
35 *******************************************************************************
36 */
37 
38 #ifndef _IH264_MEM_FNS_H_
39 #define _IH264_MEM_FNS_H_
40 
41 /*****************************************************************************/
42 /* Extern Function Declarations                                              */
43 /*****************************************************************************/
44 typedef void ih264_memcpy_ft(UWORD8 *pu1_dst, UWORD8 *pu1_src,
45                              UWORD32 num_bytes);
46 
47 typedef void ih264_memcpy_mul_8_ft(UWORD8 *pu1_dst, UWORD8 *pu1_src,
48                                    UWORD32 num_bytes);
49 
50 typedef void ih264_memset_ft(UWORD8 *pu1_dst, UWORD8 value,
51                              UWORD32 num_bytes);
52 
53 typedef void ih264_memset_mul_8_ft(UWORD8 *pu1_dst, UWORD8 value,
54                                    UWORD32 num_bytes);
55 
56 typedef void ih264_memset_16bit_ft(UWORD16 *pu2_dst, UWORD16 value,
57                                    UWORD32 num_words);
58 
59 typedef void ih264_memset_16bit_mul_8_ft(UWORD16 *pu2_dst, UWORD16 value,
60                                          UWORD32 num_words);
61 
62 /* C function declarations */
63 ih264_memcpy_ft ih264_memcpy;
64 ih264_memcpy_mul_8_ft ih264_memcpy_mul_8;
65 ih264_memset_ft ih264_memset;
66 ih264_memset_mul_8_ft ih264_memset_mul_8;
67 ih264_memset_16bit_ft ih264_memset_16bit;
68 ih264_memset_16bit_mul_8_ft ih264_memset_16bit_mul_8;
69 
70 /* A9 Q function declarations */
71 ih264_memcpy_ft ih264_memcpy_a9q;
72 ih264_memcpy_mul_8_ft ih264_memcpy_mul_8_a9q;
73 ih264_memset_ft ih264_memset_a9q;
74 ih264_memset_mul_8_ft ih264_memset_mul_8_a9q;
75 ih264_memset_16bit_ft ih264_memset_16bit_a9q;
76 ih264_memset_16bit_mul_8_ft ih264_memset_16bit_mul_8_a9q;
77 
78 /* AV8 function declarations */
79 ih264_memcpy_ft ih264_memcpy_av8;
80 ih264_memcpy_mul_8_ft ih264_memcpy_mul_8_av8;
81 ih264_memset_ft ih264_memset_av8;
82 ih264_memset_mul_8_ft ih264_memset_mul_8_av8;
83 ih264_memset_16bit_ft ih264_memset_16bit_av8;
84 ih264_memset_16bit_mul_8_ft ih264_memset_16bit_mul_8_av8;
85 
86 /*SSSE3 Declarations*/
87 ih264_memcpy_mul_8_ft ih264_memcpy_mul_8_ssse3;
88 ih264_memset_mul_8_ft ih264_memset_mul_8_ssse3;
89 ih264_memset_16bit_mul_8_ft ih264_memset_16bit_mul_8_ssse3;
90 
91 #endif  /* _IH264_MEM_FNS_H_ */
92