13d0407baSopenharmony_ci/* 23d0407baSopenharmony_ci * Copyright (C) 2022 Rockchip Electronics Co., Ltd. 33d0407baSopenharmony_ci * Authors: 43d0407baSopenharmony_ci * Cerf Yu <cerf.yu@rock-chips.com> 53d0407baSopenharmony_ci * 63d0407baSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 73d0407baSopenharmony_ci * you may not use this file except in compliance with the License. 83d0407baSopenharmony_ci * You may obtain a copy of the License at 93d0407baSopenharmony_ci * 103d0407baSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 113d0407baSopenharmony_ci * 123d0407baSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 133d0407baSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 143d0407baSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 153d0407baSopenharmony_ci * See the License for the specific language governing permissions and 163d0407baSopenharmony_ci * limitations under the License. 173d0407baSopenharmony_ci */ 183d0407baSopenharmony_ci 193d0407baSopenharmony_ci#ifndef _RGA_IM2D_VERSION_H_ 203d0407baSopenharmony_ci#define _RGA_IM2D_VERSION_H_ 213d0407baSopenharmony_ci 223d0407baSopenharmony_ci#define RGA_VERSION_STR_HELPER(x) #x 233d0407baSopenharmony_ci#define RGA_VERSION_STR(x) RGA_VERSION_STR_HELPER(x) 243d0407baSopenharmony_ci 253d0407baSopenharmony_ci/* RGA im2d api verison */ 263d0407baSopenharmony_ci#define RGA_API_MAJOR_VERSION 1 273d0407baSopenharmony_ci#define RGA_API_MINOR_VERSION 8 283d0407baSopenharmony_ci#define RGA_API_REVISION_VERSION 1 293d0407baSopenharmony_ci#define RGA_API_BUILD_VERSION 0 303d0407baSopenharmony_ci 313d0407baSopenharmony_ci#define RGA_API_VERSION \ 323d0407baSopenharmony_ci RGA_VERSION_STR(RGA_API_MAJOR_VERSION) "." \ 333d0407baSopenharmony_ci RGA_VERSION_STR(RGA_API_MINOR_VERSION) "." \ 343d0407baSopenharmony_ci RGA_VERSION_STR(RGA_API_REVISION_VERSION) "_[" \ 353d0407baSopenharmony_ci RGA_VERSION_STR(RGA_API_BUILD_VERSION) "]" 363d0407baSopenharmony_ci#define RGA_API_FULL_VERSION "rga_api version " RGA_API_VERSION 373d0407baSopenharmony_ci 383d0407baSopenharmony_ci#define RGA_SET_CURRENT_API_VERISON (\ 393d0407baSopenharmony_ci (RGA_API_MAJOR_VERSION & 0xff) << 24 | \ 403d0407baSopenharmony_ci (RGA_API_MINOR_VERSION & 0xff) << 16 | \ 413d0407baSopenharmony_ci (RGA_API_REVISION_VERSION & 0xff) << 8 | \ 423d0407baSopenharmony_ci (RGA_API_BUILD_VERSION & 0xff)\ 433d0407baSopenharmony_ci ) 443d0407baSopenharmony_ci 453d0407baSopenharmony_ci#endif /* _RGA_IM2D_VERSION_H_ */ 46