im2d_version.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. #ifndef _RGA_IM2D_VERSION_H_
  19. #define _RGA_IM2D_VERSION_H_
  20. #define RGA_VERSION_STR_HELPER(x) #x
  21. #define RGA_VERSION_STR(x) RGA_VERSION_STR_HELPER(x)
  22. /* RGA im2d api verison */
  23. #define RGA_API_MAJOR_VERSION 1
  24. #define RGA_API_MINOR_VERSION 10
  25. #define RGA_API_REVISION_VERSION 1
  26. #define RGA_API_BUILD_VERSION 3
  27. #define RGA_API_SUFFIX
  28. #define RGA_API_VERSION \
  29. RGA_VERSION_STR(RGA_API_MAJOR_VERSION) "." \
  30. RGA_VERSION_STR(RGA_API_MINOR_VERSION) "." \
  31. RGA_VERSION_STR(RGA_API_REVISION_VERSION) "_[" \
  32. RGA_VERSION_STR(RGA_API_BUILD_VERSION) "]"
  33. #define RGA_API_FULL_VERSION "rga_api version " RGA_API_VERSION RGA_API_SUFFIX
  34. /* For header file version verification */
  35. #define RGA_CURRENT_API_VERSION (\
  36. (RGA_API_MAJOR_VERSION & 0xff) << 24 | \
  37. (RGA_API_MINOR_VERSION & 0xff) << 16 | \
  38. (RGA_API_REVISION_VERSION & 0xff) << 8 | \
  39. (RGA_API_BUILD_VERSION & 0xff)\
  40. )
  41. #define RGA_CURRENT_API_HEADER_VERSION RGA_CURRENT_API_VERSION
  42. #endif /* _RGA_IM2D_VERSION_H_ */