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 9 28 #define RGA_API_REVISION_VERSION 3 29 #define RGA_API_BUILD_VERSION 0 30 31 #define RGA_API_SUFFIX 32 33 #define RGA_API_VERSION \ 34 RGA_VERSION_STR(RGA_API_MAJOR_VERSION) "." \ 35 RGA_VERSION_STR(RGA_API_MINOR_VERSION) "." \ 36 RGA_VERSION_STR(RGA_API_REVISION_VERSION) "_[" \ 37 RGA_VERSION_STR(RGA_API_BUILD_VERSION) "]" 38 #define RGA_API_FULL_VERSION "rga_api version " RGA_API_VERSION RGA_API_SUFFIX 39 40 /* For header file version verification */ 41 #define RGA_CURRENT_API_VERSION (\ 42 (RGA_API_MAJOR_VERSION & 0xff) << 24 | \ 43 (RGA_API_MINOR_VERSION & 0xff) << 16 | \ 44 (RGA_API_REVISION_VERSION & 0xff) << 8 | \ 45 (RGA_API_BUILD_VERSION & 0xff)\ 46 ) 47 #define RGA_CURRENT_API_HEADER_VERSION RGA_CURRENT_API_VERSION 48 49 #endif /* _RGA_IM2D_VERSION_H_ */ 50