MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / SendCameraCommand

Function SendCameraCommand

tensorflow/contrib/pi_examples/camera/camera.cc:61–73  ·  view source on GitHub ↗

Wrapper around camera command sending.

Source from the content-addressed store, hash-verified

59
60// Wrapper around camera command sending.
61Status SendCameraCommand(int fh, int request, void* arg) {
62 int r;
63 do {
64 r = v4l2_ioctl(fh, request, arg);
65 } while (r == -1 && ((errno == EINTR) || (errno == EAGAIN)));
66 if (r == -1) {
67 LOG(ERROR) << "SendCameraCommand error " << errno << " (" << strerror(errno)
68 << ")";
69 return tensorflow::errors::Unknown("SendCameraCommand error ", errno,
70 strerror(errno));
71 }
72 return Status::OK();
73}
74
75Status OpenCamera(int* camera_handle) {
76 const char* dev_name = "/dev/video0";

Callers 5

SetCameraFormatFunction · 0.85
StartCameraCaptureFunction · 0.85
EndCameraCaptureFunction · 0.85
CaptureNextFrameFunction · 0.85
ReleaseFrameFunction · 0.85

Calls 1

UnknownFunction · 0.50

Tested by

no test coverage detected