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