dvr_tracking.cpp 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #include "include/dvr/dvr_tracking.h"
  2. #include <utils/Errors.h>
  3. #include <utils/Log.h>
  4. #if !DVR_TRACKING_IMPLEMENTED
  5. extern "C" {
  6. // This file provides the stub implementation of dvrTrackingXXX APIs. On
  7. // platforms that implement these APIs, set -DDVR_TRACKING_IMPLEMENTED=1 in the
  8. // build file.
  9. int dvrTrackingCameraCreate(DvrTrackingCamera**) {
  10. ALOGE("dvrTrackingCameraCreate is not implemented.");
  11. return -ENOSYS;
  12. }
  13. void dvrTrackingCameraDestroy(DvrTrackingCamera*) {
  14. ALOGE("dvrTrackingCameraDestroy is not implemented.");
  15. }
  16. int dvrTrackingCameraStart(DvrTrackingCamera*, DvrWriteBufferQueue*) {
  17. ALOGE("dvrTrackingCameraCreate is not implemented.");
  18. return -ENOSYS;
  19. }
  20. int dvrTrackingCameraStop(DvrTrackingCamera*) {
  21. ALOGE("dvrTrackingCameraCreate is not implemented.");
  22. return -ENOSYS;
  23. }
  24. int dvrTrackingFeatureExtractorCreate(DvrTrackingFeatureExtractor**) {
  25. ALOGE("dvrTrackingFeatureExtractorCreate is not implemented.");
  26. return -ENOSYS;
  27. }
  28. void dvrTrackingFeatureExtractorDestroy(DvrTrackingFeatureExtractor*) {
  29. ALOGE("dvrTrackingFeatureExtractorDestroy is not implemented.");
  30. }
  31. int dvrTrackingFeatureExtractorStart(DvrTrackingFeatureExtractor*,
  32. DvrTrackingFeatureCallback, void*) {
  33. ALOGE("dvrTrackingFeatureExtractorCreate is not implemented.");
  34. return -ENOSYS;
  35. }
  36. int dvrTrackingFeatureExtractorStop(DvrTrackingFeatureExtractor*) {
  37. ALOGE("dvrTrackingFeatureExtractorCreate is not implemented.");
  38. return -ENOSYS;
  39. }
  40. int dvrTrackingFeatureExtractorProcessBuffer(DvrTrackingFeatureExtractor*,
  41. DvrReadBuffer*,
  42. const DvrTrackingBufferMetadata*,
  43. bool*) {
  44. ALOGE("dvrTrackingFeatureExtractorProcessBuffer is not implemented.");
  45. return -ENOSYS;
  46. }
  47. int dvrTrackingSensorsCreate(DvrTrackingSensors**, const char*) {
  48. ALOGE("dvrTrackingSensorsCreate is not implemented.");
  49. return -ENOSYS;
  50. }
  51. void dvrTrackingSensorsDestroy(DvrTrackingSensors*) {
  52. ALOGE("dvrTrackingSensorsDestroy is not implemented.");
  53. }
  54. int dvrTrackingSensorsStart(DvrTrackingSensors*, DvrTrackingSensorEventCallback,
  55. void*) {
  56. ALOGE("dvrTrackingStart is not implemented.");
  57. return -ENOSYS;
  58. }
  59. int dvrTrackingSensorsStop(DvrTrackingSensors*) {
  60. ALOGE("dvrTrackingStop is not implemented.");
  61. return -ENOSYS;
  62. }
  63. } // extern "C"
  64. #endif // DVR_TRACKING_IMPLEMENTED