Hi Folks,
We have two cameras on our TX2. We are currently operating both cameras in following fashion -
Cam1 --> encoder --> encoded bitstream
|
|--> GPU --> CPU (frame processing, and data annotation ) -->
|
Cam2 --> encoder --> encoded bitstream |--> select either cam source --> encoder --> encoded bitstream
| |
|--> GPU --> CPU (frame processing, and data annotation ) -->
Please note that based on activity in either camera we select of of those cams to be finally encoded out. In order to optimize system load, I would like to shut off one of the cameras and then wake it up upon need. I am planning to use following APIs for this purpose
// initilization
UniqueObj<Request> request(iSession->createRequest(CAPTURE_INTENT_VIDEO_RECORD));
// to start the camera
if (iCaptureSessionCamera0->repeat(requestCamera0.get()) != STATUS_OK)
ORIGINATE_ERROR("Failed to start repeat capture request for preview");
// to 'pause' camera
// Stop the capture requests and wait until they are complete.
iCaptureSessionCamera0->stopRepeat();
// to 'resume' camera
if (iCaptureSessionCamera0->repeat(requestCamera0.get()) != STATUS_OK)
ORIGINATE_ERROR("Failed to start repeat capture request for preview");
WIll this work ? Would you recommend a specific tegra_multimedia_api example that I can follow for my purpose ?
Thanks