Lines Matching defs:EmulatedFakeCamera2
18 * Contains implementation of a class EmulatedFakeCamera2 that encapsulates
26 #include "EmulatedFakeCamera2.h"
42 const uint32_t EmulatedFakeCamera2::kAvailableFormats[4] = {
50 const uint32_t EmulatedFakeCamera2::kAvailableRawSizes[2] = {
55 const uint64_t EmulatedFakeCamera2::kAvailableRawMinDurations[1] = {
59 const uint32_t EmulatedFakeCamera2::kAvailableProcessedSizesBack[4] = {
64 const uint32_t EmulatedFakeCamera2::kAvailableProcessedSizesFront[4] = {
69 const uint64_t EmulatedFakeCamera2::kAvailableProcessedMinDurations[1] = {
73 const uint32_t EmulatedFakeCamera2::kAvailableJpegSizesBack[2] = {
78 const uint32_t EmulatedFakeCamera2::kAvailableJpegSizesFront[2] = {
84 const uint64_t EmulatedFakeCamera2::kAvailableJpegMinDurations[1] = {
89 EmulatedFakeCamera2::EmulatedFakeCamera2(int cameraId,
100 EmulatedFakeCamera2::~EmulatedFakeCamera2() {
110 status_t EmulatedFakeCamera2::Initialize() {
144 status_t EmulatedFakeCamera2::connectCamera(hw_device_t** device) {
169 res = mConfigureThread->run("EmulatedFakeCamera2::configureThread");
172 res = mReadoutThread->run("EmulatedFakeCamera2::readoutThread");
175 res = mControlThread->run("EmulatedFakeCamera2::controlThread");
187 status_t EmulatedFakeCamera2::plugCamera() {
200 status_t EmulatedFakeCamera2::unplugCamera() {
213 camera_device_status_t EmulatedFakeCamera2::getHotplugStatus() {
222 status_t EmulatedFakeCamera2::closeCamera() {
261 status_t EmulatedFakeCamera2::getCameraInfo(struct camera_info *info) {
273 int EmulatedFakeCamera2::requestQueueNotify() {
288 int EmulatedFakeCamera2::getInProgressCount() {
304 int EmulatedFakeCamera2::constructDefaultRequest(
341 int EmulatedFakeCamera2::allocateStream(
463 int EmulatedFakeCamera2::registerStreamBuffers(
511 int EmulatedFakeCamera2::releaseStream(uint32_t stream_id) {
543 int EmulatedFakeCamera2::allocateReprocessStreamFromStream(
590 int EmulatedFakeCamera2::releaseReprocessStream(uint32_t stream_id) {
611 int EmulatedFakeCamera2::triggerAction(uint32_t trigger_id,
677 const char* EmulatedFakeCamera2::getVendorSectionName(uint32_t tag) {
684 const char* EmulatedFakeCamera2::getVendorTagName(uint32_t tag) {
696 int EmulatedFakeCamera2::getVendorTagType(uint32_t tag) {
710 int EmulatedFakeCamera2::dump(int fd) {
713 result.appendFormat(" Camera HAL device: EmulatedFakeCamera2\n");
728 void EmulatedFakeCamera2::signalError() {
735 EmulatedFakeCamera2::ConfigureThread::ConfigureThread(EmulatedFakeCamera2 *parent):
743 EmulatedFakeCamera2::ConfigureThread::~ConfigureThread() {
746 status_t EmulatedFakeCamera2::ConfigureThread::readyToRun() {
758 status_t EmulatedFakeCamera2::ConfigureThread::waitUntilRunning() {
767 status_t EmulatedFakeCamera2::ConfigureThread::newRequestAvailable() {
778 bool EmulatedFakeCamera2::ConfigureThread::isStreamInUse(uint32_t id) {
788 int EmulatedFakeCamera2::ConfigureThread::getInProgressCount() {
793 bool EmulatedFakeCamera2::ConfigureThread::threadLoop() {
893 bool EmulatedFakeCamera2::ConfigureThread::setupCapture() {
999 bool EmulatedFakeCamera2::ConfigureThread::configureNextCapture() {
1024 bool EmulatedFakeCamera2::ConfigureThread::setupReprocess() {
1109 bool EmulatedFakeCamera2::ConfigureThread::configureNextReprocess() {
1126 bool EmulatedFakeCamera2::ConfigureThread::getBuffers() {
1190 EmulatedFakeCamera2::ReadoutThread::ReadoutThread(EmulatedFakeCamera2 *parent):
1203 EmulatedFakeCamera2::ReadoutThread::~ReadoutThread() {
1207 status_t EmulatedFakeCamera2::ReadoutThread::readyToRun() {
1215 status_t EmulatedFakeCamera2::ReadoutThread::waitUntilRunning() {
1224 bool EmulatedFakeCamera2::ReadoutThread::waitForReady(nsecs_t timeout) {
1239 bool EmulatedFakeCamera2::ReadoutThread::readyForNextCapture() {
1243 void EmulatedFakeCamera2::ReadoutThread::setNextOperation(
1265 bool EmulatedFakeCamera2::ReadoutThread::isStreamInUse(uint32_t id) {
1289 int EmulatedFakeCamera2::ReadoutThread::getInProgressCount() {
1295 bool EmulatedFakeCamera2::ReadoutThread::threadLoop() {
1500 void EmulatedFakeCamera2::ReadoutThread::onJpegDone(
1519 void EmulatedFakeCamera2::ReadoutThread::onJpegInputDone(
1533 status_t EmulatedFakeCamera2::ReadoutThread::collectStatisticsMetadata(
1642 EmulatedFakeCamera2::ControlThread::ControlThread(EmulatedFakeCamera2 *parent):
1648 EmulatedFakeCamera2::ControlThread::~ControlThread() {
1651 status_t EmulatedFakeCamera2::ControlThread::readyToRun() {
1684 status_t EmulatedFakeCamera2::ControlThread::waitUntilRunning() {
1694 status_t EmulatedFakeCamera2::ControlThread::processRequest(camera_metadata_t *request) {
1786 status_t EmulatedFakeCamera2::ControlThread::triggerAction(uint32_t msgType,
1813 const nsecs_t EmulatedFakeCamera2::ControlThread::kControlCycleDelay = 100 * MSEC;
1814 const nsecs_t EmulatedFakeCamera2::ControlThread::kMinAfDuration = 500 * MSEC;
1815 const nsecs_t EmulatedFakeCamera2::ControlThread::kMaxAfDuration = 900 * MSEC;
1816 const float EmulatedFakeCamera2::ControlThread::kAfSuccessRate = 0.9;
1818 const float EmulatedFakeCamera2::ControlThread::kContinuousAfStartRate =
1820 const nsecs_t EmulatedFakeCamera2::ControlThread::kMinAeDuration = 500 * MSEC;
1821 const nsecs_t EmulatedFakeCamera2::ControlThread::kMaxAeDuration = 2 * SEC;
1822 const nsecs_t EmulatedFakeCamera2::ControlThread::kMinPrecaptureAeDuration = 100 * MSEC;
1823 const nsecs_t EmulatedFakeCamera2::ControlThread::kMaxPrecaptureAeDuration = 400 * MSEC;
1825 const float EmulatedFakeCamera2::ControlThread::kAeScanStartRate =
1828 const nsecs_t EmulatedFakeCamera2::ControlThread::kNormalExposureTime = 10 * MSEC;
1829 const nsecs_t EmulatedFakeCamera2::ControlThread::kExposureJump = 2 * MSEC;
1830 const nsecs_t EmulatedFakeCamera2::ControlThread::kMinExposureTime = 1 * MSEC;
1832 bool EmulatedFakeCamera2::ControlThread::threadLoop() {
1919 int EmulatedFakeCamera2::ControlThread::processAfTrigger(uint8_t afMode,
1993 int EmulatedFakeCamera2::ControlThread::maybeStartAfScan(uint8_t afMode,
2013 int EmulatedFakeCamera2::ControlThread::updateAfScan(uint8_t afMode,
2055 void EmulatedFakeCamera2::ControlThread::updateAfState(uint8_t newState,
2067 int EmulatedFakeCamera2::ControlThread::processPrecaptureTrigger(uint8_t aeMode,
2089 int EmulatedFakeCamera2::ControlThread::maybeStartAeScan(uint8_t aeMode,
2117 int EmulatedFakeCamera2::ControlThread::updateAeScan(uint8_t aeMode,
2149 void EmulatedFakeCamera2::ControlThread::updateAeState(uint8_t newState,
2163 status_t EmulatedFakeCamera2::constructStaticInfo(
2483 status_t EmulatedFakeCamera2::constructDefaultRequest(
2794 status_t EmulatedFakeCamera2::addOrSize(camera_metadata_t *request,
2815 bool EmulatedFakeCamera2::isStreamInUse(uint32_t id) {
2830 bool EmulatedFakeCamera2::isReprocessStreamInUse(uint32_t id) {
2835 const Stream& EmulatedFakeCamera2::getStreamInfo(uint32_t streamId) {
2841 const ReprocessStream& EmulatedFakeCamera2::getReprocessStreamInfo(uint32_t streamId) {