csi_vdec.c 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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 <csi_vdec.h>
  12. int csi_vdec_get_version(csi_api_version_u *version)
  13. {
  14. version->major = CSI_VDEC_VERSION_MAJOR;
  15. version->minor = CSI_VDEC_VERSION_MINOR;
  16. return 0;
  17. }
  18. int csi_vdec_query_list(csi_vdec_infos_s *infos)
  19. {
  20. infos->count = 0;
  21. return 0;
  22. }
  23. int csi_vdec_open(csi_vdec_dev_t *dec, const char *device_name)
  24. {
  25. return 0;
  26. }
  27. int csi_vdec_close(csi_vdec_dev_t dec)
  28. {
  29. return 0;
  30. }
  31. int csi_vdec_create_channel(csi_vdec_chn_t *chn, csi_vdec_dev_t dec, csi_vdec_config_s *cfg)
  32. {
  33. return 0;
  34. }
  35. int csi_vdec_destory_channel(csi_vdec_chn_t chn)
  36. {
  37. return 0;
  38. }
  39. #if 0
  40. int csi_vdec_set_memory_allocator(csi_vdec_chn_t chn, csi_allocator_s *allocator)
  41. {
  42. return 0;
  43. }
  44. #endif
  45. int csi_vdec_set_mode(csi_vdec_chn_t chn, csi_vdec_mode_s *mode)
  46. {
  47. return 0;
  48. }
  49. int csi_vdec_get_mode(csi_vdec_chn_t chn, csi_vdec_mode_s *mode)
  50. {
  51. return 0;
  52. }
  53. int csi_vdec_set_chn_config(csi_vdec_chn_t chn, csi_vdec_config_s *cfg)
  54. {
  55. return 0;
  56. }
  57. int csi_vdec_get_chn_config(csi_vdec_chn_t chn, csi_vdec_config_s *cfg)
  58. {
  59. return 0;
  60. }
  61. int csi_vdec_set_pp_config(csi_vdec_chn_t chn, csi_vdec_pp_config_s *cfg)
  62. {
  63. return 0;
  64. }
  65. int csi_vdec_get_pp_config(csi_vdec_chn_t chn, csi_vdec_pp_config_s *cfg)
  66. {
  67. return 0;
  68. }
  69. int csi_vdec_start(csi_vdec_chn_t chn)
  70. {
  71. return 0;
  72. }
  73. int csi_vdec_stop(csi_vdec_chn_t chn)
  74. {
  75. return 0;
  76. }
  77. int csi_vdec_reset(csi_vdec_chn_t chn)
  78. {
  79. return 0;
  80. }
  81. int csi_vdec_send_stream_buf(csi_vdec_chn_t chn, csi_vdec_stream_s *stream, int32_t timeout)
  82. {
  83. return 0;
  84. }
  85. int csi_vdec_register_frames(csi_vdec_chn_t chn, csi_frame_s *frame[], int count)
  86. {
  87. return 0;
  88. }
  89. int csi_vdec_put_frame(csi_vdec_chn_t chn, csi_frame_s *frame)
  90. {
  91. return 0;
  92. }
  93. int csi_vdec_get_frame(csi_vdec_chn_t chn, csi_frame_s **frame, int32_t timeout)
  94. {
  95. return 0;
  96. }
  97. int csi_vdec_query_status(csi_vdec_chn_t chn, csi_vdec_chn_status_s *pstStatus)
  98. {
  99. return 0;
  100. }
  101. int csi_vdec_create_event_handle(csi_vdec_event_handle_t *handle, csi_vdec_dev_t event_handle)
  102. {
  103. return 0;
  104. }
  105. int csi_vdec_destory_event(csi_vdec_event_handle_t event_handle)
  106. {
  107. return 0;
  108. }
  109. int csi_vdec_subscribe_event(csi_vdec_event_handle_t event_,
  110. csi_vdec_event_subscription_t *subscribe)
  111. {
  112. return 0;
  113. }
  114. int csi_vdec_unsubscribe_event(csi_vdec_event_handle_t event_handle,
  115. csi_vdec_event_subscription_t *subscribe)
  116. {
  117. return 0;
  118. }
  119. int csi_vdec_get_event(csi_vdec_event_handle_t event_handle,
  120. csi_vdec_event_s *event, int timeout)
  121. {
  122. return 0;
  123. }