camera_app_spec.h 824 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (C) 2021 Alibaba Group Holding Limited
  3. * Author: LuChongzhi <chongzhi.lcz@alibaba-inc.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #ifndef __CAMERA_APP_SPEC_H__
  10. #define __CAMERA_APP_SPEC_H__
  11. #include <stdio.h>
  12. #include <csi_camera.h>
  13. typedef enum camera_app_bitmask_id {
  14. CAMERA_APP_BITMAKS_CAMERA_EVENT_ACTION,
  15. CAMERA_APP_BITMAKS_CHANNEL_EVENT_ACTION,
  16. CAMERA_APP_BITMASKS_MAX_COUNT = 32
  17. } camera_app_bitmask_id_e;
  18. typedef struct camera_app_bitmasks {
  19. int count;
  20. int bitmask[CAMERA_APP_BITMASKS_MAX_COUNT];
  21. } camera_app_bitmasks_t;
  22. const camera_app_bitmasks_t *camera_app_get_bitmask_array(int bitmask_id);
  23. #endif /* __CAMERA_APP_SPEC_H__ */