csi_camera.c 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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 <syslog.h>
  10. #include <string.h>
  11. #include <unistd.h>
  12. #include <pthread.h>
  13. #include <semaphore.h>
  14. #include <time.h>
  15. #include <sys/time.h>
  16. #include <csi_camera.h>
  17. #include <video.h>
  18. #include <stdlib.h>
  19. int csi_camera_query_list(csi_camera_infos_t *infos)
  20. {
  21. return 0;
  22. }
  23. csi_cam_handle_t csi_camera_open(const char *cam_name)
  24. {
  25. return NULL;
  26. }
  27. int csi_camera_close(csi_cam_handle_t cam_handle)
  28. {
  29. return 0;
  30. }
  31. int csi_camera_get_modes(csi_cam_handle_t cam_handle, csi_camera_modes_t *modes)
  32. {
  33. return 0;
  34. }
  35. int csi_camera_set_mode(csi_cam_handle_t cam_handle, csi_camera_mode_cfg_t *cfg)
  36. {
  37. return 0;
  38. }
  39. int csi_camera_query_property(csi_cam_handle_t cam_handle,
  40. csi_camera_property_description_t *desc)
  41. {
  42. return 0;
  43. }
  44. int csi_camera_get_property(csi_cam_handle_t cam_handle,
  45. csi_camera_properties_t *properties)
  46. {
  47. return 0;
  48. }
  49. const char *csi_camera_ctrl_id_name(unsigned int id)
  50. {
  51. return NULL;
  52. }
  53. const char *csi_camera_ctrl_type_name(unsigned int type)
  54. {
  55. return NULL;
  56. }
  57. int csi_camera_set_property(csi_cam_handle_t cam_handle,
  58. csi_camera_properties_t *properties)
  59. {
  60. return 0;
  61. }
  62. int csi_camera_query_frame(csi_cam_handle_t cam_handle,
  63. csi_camera_channel_id_e chn_id,
  64. int frm_id,
  65. csi_frame_t *frm)
  66. {
  67. return 0;
  68. }
  69. static int cam_channel_open(csi_cam_handle_t cam_handle, csi_camera_channel_id_e chn_id,
  70. csi_camera_channel_cfg_t *cfg)
  71. {
  72. return 0;
  73. }
  74. int csi_camera_channel_open(csi_cam_handle_t cam_handle,
  75. csi_camera_channel_cfg_t *cfg)
  76. {
  77. return 0;
  78. }
  79. int csi_camera_channel_close(csi_cam_handle_t cam_handle,
  80. csi_camera_channel_id_e chn_id)
  81. {
  82. return 0;
  83. }
  84. int csi_camera_channel_query(csi_cam_handle_t cam_handle,
  85. csi_camera_channel_cfg_t *cfg)
  86. {
  87. return 0;
  88. }
  89. csi_cam_event_handle_t csi_camera_create_event(csi_cam_handle_t cam_handle)
  90. {
  91. return 0;
  92. }
  93. int csi_camera_destory_event(csi_cam_event_handle_t event_handle)
  94. {
  95. return 0;
  96. }
  97. int csi_camera_subscribe_event(csi_cam_event_handle_t event_handle,
  98. csi_camera_event_subscription_t *subscribe)
  99. {
  100. return 0;
  101. }
  102. int csi_camera_unsubscribe_event(csi_cam_event_handle_t event_handle,
  103. csi_camera_event_subscription_t *subscribe)
  104. {
  105. return 0;
  106. }
  107. int csi_camera_get_event(csi_cam_event_handle_t event_handle,
  108. csi_camera_event_t *event,
  109. int timeout)
  110. {
  111. return 0;
  112. }
  113. int csi_camera_get_frame_count(csi_cam_handle_t cam_handle,
  114. csi_camera_channel_id_e chn_id)
  115. {
  116. return 0;
  117. }
  118. int csi_camera_get_frame(csi_cam_handle_t cam_handle,
  119. csi_camera_channel_id_e chn_id,
  120. csi_frame_t *frame,
  121. int timeout)
  122. {
  123. return 0;
  124. }
  125. int csi_camera_put_frame(csi_frame_t *frame)
  126. {
  127. return 0;
  128. }
  129. static int cam_channel_set_stream(csi_cam_handle_t cam_handle, int chn_id, int on)
  130. {
  131. return 0;
  132. }
  133. int csi_camera_channel_start(csi_cam_handle_t cam_handle, csi_camera_channel_id_e chn_id)
  134. {
  135. return 0;
  136. }
  137. int csi_camera_channel_stop(csi_cam_handle_t cam_handle, csi_camera_channel_id_e chn_id)
  138. {
  139. return 0;
  140. }