csi_frame.c 849 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #include <stdio.h>
  10. #include <csi_frame.h>
  11. #include <sys/shm.h>
  12. int csi_frame_create(csi_frame_s *frame,
  13. csi_img_type_e type,
  14. csi_img_s img_info)
  15. {
  16. if (type == CSI_IMG_TYPE_SHM) {
  17. } else {
  18. printf("Not supported img type:%d\n", type);
  19. return -1;
  20. }
  21. return 0;
  22. }
  23. int csi_frame_reference(csi_frame_s *frame_dest, csi_frame_s *frame_src)
  24. {
  25. return 0;
  26. }
  27. int csi_frame_release(csi_frame_s *frame)
  28. {
  29. return 0;
  30. }
  31. void* csi_frame_mmap(csi_frame_s *frame)
  32. {
  33. return NULL;
  34. }
  35. int csi_frame_munmap(csi_frame_s *frame)
  36. {
  37. return 0;
  38. }