• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2022 Rockchip Electronics Co., Ltd.
3  * Authors:
4  *  Cerf Yu <cerf.yu@rock-chips.com>
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *      http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 
19 #ifndef _RGA_IM2D_VERSION_H_
20 #define _RGA_IM2D_VERSION_H_
21 
22 #define RGA_VERSION_STR_HELPER(x) #x
23 #define RGA_VERSION_STR(x) RGA_VERSION_STR_HELPER(x)
24 
25 /* RGA im2d api verison */
26 #define RGA_API_MAJOR_VERSION       1
27 #define RGA_API_MINOR_VERSION       8
28 #define RGA_API_REVISION_VERSION    1
29 #define RGA_API_BUILD_VERSION       0
30 
31 #define RGA_API_VERSION \
32     RGA_VERSION_STR(RGA_API_MAJOR_VERSION) "." \
33     RGA_VERSION_STR(RGA_API_MINOR_VERSION) "." \
34     RGA_VERSION_STR(RGA_API_REVISION_VERSION) "_[" \
35     RGA_VERSION_STR(RGA_API_BUILD_VERSION) "]"
36 #define RGA_API_FULL_VERSION "rga_api version " RGA_API_VERSION
37 
38 #define RGA_SET_CURRENT_API_VERISON (\
39     (RGA_API_MAJOR_VERSION & 0xff) << 24 | \
40     (RGA_API_MINOR_VERSION & 0xff) << 16 | \
41     (RGA_API_REVISION_VERSION & 0xff) << 8 | \
42     (RGA_API_BUILD_VERSION & 0xff)\
43     )
44 
45 #endif /* _RGA_IM2D_VERSION_H_ */
46