• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 * @file
23 *  ih264e_platform_macros.h
24 *
25 * @brief
26 *  Contains platform specific routines used for codec context intialization
27 *
28 * @author
29 *  ittiam
30 *
31 * @remarks
32 *  none
33 *
34 *******************************************************************************
35 */
36 
37 #ifndef IH264E_PLATFORM_MACROS_H_
38 #define IH264E_PLATFORM_MACROS_H_
39 
40 /*****************************************************************************/
41 /* Extern Function Declarations                                              */
42 /*****************************************************************************/
43 
44 /**
45 *******************************************************************************
46 *
47 * @brief Initialize the intra/inter/transform/deblk function pointers of
48 * codec context
49 *
50 * @par Description: the current routine initializes the function pointers of
51 * codec context basing on the architecture in use
52 *
53 * @param[in] ps_codec
54 *  Codec context pointer
55 *
56 * @returns  none
57 *
58 * @remarks none
59 *
60 *******************************************************************************
61 */
62 void ih264e_init_function_ptr_neon_a9q(codec_t *ps_codec);
63 
64 /**
65 *******************************************************************************
66 *
67 * @brief Initialize the intra/inter/transform/deblk function pointers of
68 * codec context
69 *
70 * @par Description: the current routine initializes the function pointers of
71 * codec context basing on the architecture in use
72 *
73 * @param[in] ps_codec
74 *  Codec context pointer
75 *
76 * @returns  none
77 *
78 * @remarks none
79 *
80 *******************************************************************************
81 */
82 void ih264e_init_function_ptr_neon_av8(codec_t *ps_codec);
83 
84 /**
85 *******************************************************************************
86 *
87 * @brief Initialize the intra/inter/transform/deblk function pointers of
88 * codec context
89 *
90 * @par Description: the current routine initializes the function pointers of
91 * codec context basing on the architecture in use
92 *
93 * @param[in] ps_codec
94 *  Codec context pointer
95 *
96 * @returns  none
97 *
98 * @remarks none
99 *
100 *******************************************************************************
101 */
102 void ih264e_init_function_ptr_generic(codec_t *ps_codec);
103 
104 /**
105 *******************************************************************************
106 *
107 * @brief Initialize the intra/inter/transform/deblk function pointers of
108 * codec context
109 *
110 * @par Description: the current routine initializes the function pointers of
111 * codec context basing on the architecture in use
112 *
113 * @param[in] ps_codec
114 *  Codec context pointer
115 *
116 * @returns  none
117 *
118 * @remarks none
119 *
120 *******************************************************************************
121 */
122 void ih264e_init_function_ptr(void *pv_codec);
123 
124 /**
125 *******************************************************************************
126 *
127 * @brief Determine the architecture of the encoder executing environment
128 *
129 * @par Description: This routine returns the architecture of the enviro-
130 * ment in which the current encoder is being tested
131 *
132 * @param[in] void
133 *
134 * @returns  IV_ARCH_T
135 *  architecture
136 *
137 * @remarks none
138 *
139 *******************************************************************************
140 */
141 IV_ARCH_T ih264e_default_arch(void);
142 
143 #endif /* IH264E_PLATFORM_MACROS_H_ */
144