cam_fd_context.h 851 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2017-2018, 2021, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _CAM_FD_CONTEXT_H_
  6. #define _CAM_FD_CONTEXT_H_
  7. #include "cam_context.h"
  8. #include "cam_context_utils.h"
  9. #include "cam_hw_mgr_intf.h"
  10. #include "cam_req_mgr_interface.h"
  11. /**
  12. * struct cam_fd_context - Face Detection context information
  13. *
  14. * @base : Base context pointer for this FD context
  15. * @req_base : List of base requests for this FD context
  16. */
  17. struct cam_fd_context {
  18. struct cam_context *base;
  19. struct cam_ctx_request req_base[CAM_CTX_REQ_MAX];
  20. };
  21. int cam_fd_context_init(struct cam_fd_context *fd_ctx,
  22. struct cam_context *base_ctx, struct cam_hw_mgr_intf *hw_intf,
  23. uint32_t ctx_id, int img_iommu_hdl);
  24. int cam_fd_context_deinit(struct cam_fd_context *ctx);
  25. #endif /* _CAM_FD_CONTEXT_H_ */