Lines Matching refs:EmulatedCamera
111 EmulatedCamera::EmulatedCamera(int cameraId, in EmulatedCamera() function in android::EmulatedCamera
121 common.close = EmulatedCamera::close; in EmulatedCamera()
126 EmulatedCamera::~EmulatedCamera() in ~EmulatedCamera()
134 status_t EmulatedCamera::Initialize() in Initialize()
246 void EmulatedCamera::onNextFrameAvailable(nsecs_t timestamp, in onNextFrameAvailable()
256 void EmulatedCamera::onCameraDeviceError(int err) in onCameraDeviceError()
262 void EmulatedCamera::setTakingPicture(bool takingPicture) { in setTakingPicture()
269 status_t EmulatedCamera::connectCamera(hw_device_t** device) in connectCamera()
288 status_t EmulatedCamera::closeCamera() in closeCamera()
295 status_t EmulatedCamera::getCameraInfo(struct camera_info* info) in getCameraInfo()
301 valstr = mParameters.get(EmulatedCamera::FACING_KEY); in getCameraInfo()
303 if (strcmp(valstr, EmulatedCamera::FACING_FRONT) == 0) { in getCameraInfo()
306 else if (strcmp(valstr, EmulatedCamera::FACING_BACK) == 0) { in getCameraInfo()
313 valstr = mParameters.get(EmulatedCamera::ORIENTATION_KEY); in getCameraInfo()
323 void EmulatedCamera::autoFocusComplete() { in autoFocusComplete()
327 status_t EmulatedCamera::setPreviewWindow(struct preview_stream_ops* window) in setPreviewWindow()
334 void EmulatedCamera::setCallbacks(camera_notify_callback notify_cb, in setCallbacks()
344 void EmulatedCamera::enableMsgType(int32_t msg_type) in enableMsgType()
349 void EmulatedCamera::disableMsgType(int32_t msg_type) in disableMsgType()
354 int EmulatedCamera::isMsgTypeEnabled(int32_t msg_type) in isMsgTypeEnabled()
359 status_t EmulatedCamera::startPreview() in startPreview()
365 void EmulatedCamera::stopPreview() in stopPreview()
381 int EmulatedCamera::isPreviewEnabled() in isPreviewEnabled()
386 status_t EmulatedCamera::storeMetaDataInBuffers(int enable) in storeMetaDataInBuffers()
392 status_t EmulatedCamera::startRecording() in startRecording()
451 void EmulatedCamera::stopRecording() in stopRecording()
456 int EmulatedCamera::isRecordingEnabled() in isRecordingEnabled()
461 void EmulatedCamera::releaseRecordingFrame(const void* opaque) in releaseRecordingFrame()
466 status_t EmulatedCamera::setAutoFocus() in setAutoFocus()
481 status_t EmulatedCamera::cancelAutoFocus() in cancelAutoFocus()
494 status_t EmulatedCamera::takePicture() in takePicture()
564 status_t EmulatedCamera::cancelPicture() in cancelPicture()
571 status_t EmulatedCamera::setParameters(const char* parms) in setParameters()
710 char* EmulatedCamera::getParameters() in getParameters()
740 void EmulatedCamera::putParameters(char* params) in putParameters()
748 status_t EmulatedCamera::sendCommand(int32_t cmd, int32_t arg1, int32_t arg2) in sendCommand()
763 void EmulatedCamera::releaseCamera() in releaseCamera()
770 status_t EmulatedCamera::dumpCamera(int fd) in dumpCamera()
779 status_t EmulatedCamera::getConfiguredPixelFormat(uint32_t* pixelFormat) const { in getConfiguredPixelFormat()
805 status_t EmulatedCamera::getConfiguredFrameSize(int* outWidth, in getConfiguredFrameSize()
827 status_t EmulatedCamera::doStartPreview() in doStartPreview()
884 status_t EmulatedCamera::doStopPreview() in doStopPreview()
909 status_t EmulatedCamera::cleanupCamera() in cleanupCamera()
952 int EmulatedCamera::set_preview_window(struct camera_device* dev, in set_preview_window()
955 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in set_preview_window()
963 void EmulatedCamera::set_callbacks( in set_callbacks()
971 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in set_callbacks()
979 void EmulatedCamera::enable_msg_type(struct camera_device* dev, int32_t msg_type) in enable_msg_type()
981 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in enable_msg_type()
989 void EmulatedCamera::disable_msg_type(struct camera_device* dev, int32_t msg_type) in disable_msg_type()
991 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in disable_msg_type()
999 int EmulatedCamera::msg_type_enabled(struct camera_device* dev, int32_t msg_type) in msg_type_enabled()
1001 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in msg_type_enabled()
1009 int EmulatedCamera::start_preview(struct camera_device* dev) in start_preview()
1011 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in start_preview()
1019 void EmulatedCamera::stop_preview(struct camera_device* dev) in stop_preview()
1021 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in stop_preview()
1029 int EmulatedCamera::preview_enabled(struct camera_device* dev) in preview_enabled()
1031 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in preview_enabled()
1039 int EmulatedCamera::store_meta_data_in_buffers(struct camera_device* dev, in store_meta_data_in_buffers()
1042 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in store_meta_data_in_buffers()
1050 int EmulatedCamera::start_recording(struct camera_device* dev) in start_recording()
1052 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in start_recording()
1060 void EmulatedCamera::stop_recording(struct camera_device* dev) in stop_recording()
1062 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in stop_recording()
1070 int EmulatedCamera::recording_enabled(struct camera_device* dev) in recording_enabled()
1072 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in recording_enabled()
1080 void EmulatedCamera::release_recording_frame(struct camera_device* dev, in release_recording_frame()
1083 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in release_recording_frame()
1091 int EmulatedCamera::auto_focus(struct camera_device* dev) in auto_focus()
1093 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in auto_focus()
1101 int EmulatedCamera::cancel_auto_focus(struct camera_device* dev) in cancel_auto_focus()
1103 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in cancel_auto_focus()
1111 int EmulatedCamera::take_picture(struct camera_device* dev) in take_picture()
1113 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in take_picture()
1121 int EmulatedCamera::cancel_picture(struct camera_device* dev) in cancel_picture()
1123 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in cancel_picture()
1131 int EmulatedCamera::set_parameters(struct camera_device* dev, const char* parms) in set_parameters()
1133 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in set_parameters()
1141 char* EmulatedCamera::get_parameters(struct camera_device* dev) in get_parameters()
1143 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in get_parameters()
1151 void EmulatedCamera::put_parameters(struct camera_device* dev, char* params) in put_parameters()
1153 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in put_parameters()
1161 int EmulatedCamera::send_command(struct camera_device* dev, in send_command()
1166 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in send_command()
1174 void EmulatedCamera::release(struct camera_device* dev) in release()
1176 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in release()
1184 int EmulatedCamera::dump(struct camera_device* dev, int fd) in dump()
1186 EmulatedCamera* ec = reinterpret_cast<EmulatedCamera*>(dev->priv); in dump()
1194 int EmulatedCamera::close(struct hw_device_t* device) in close()
1196 EmulatedCamera* ec = in close()
1197 reinterpret_cast<EmulatedCamera*>(reinterpret_cast<struct camera_device*>(device)->priv); in close()
1209 camera_device_ops_t EmulatedCamera::mDeviceOps = {
1210 EmulatedCamera::set_preview_window,
1211 EmulatedCamera::set_callbacks,
1212 EmulatedCamera::enable_msg_type,
1213 EmulatedCamera::disable_msg_type,
1214 EmulatedCamera::msg_type_enabled,
1215 EmulatedCamera::start_preview,
1216 EmulatedCamera::stop_preview,
1217 EmulatedCamera::preview_enabled,
1218 EmulatedCamera::store_meta_data_in_buffers,
1219 EmulatedCamera::start_recording,
1220 EmulatedCamera::stop_recording,
1221 EmulatedCamera::recording_enabled,
1222 EmulatedCamera::release_recording_frame,
1223 EmulatedCamera::auto_focus,
1224 EmulatedCamera::cancel_auto_focus,
1225 EmulatedCamera::take_picture,
1226 EmulatedCamera::cancel_picture,
1227 EmulatedCamera::set_parameters,
1228 EmulatedCamera::get_parameters,
1229 EmulatedCamera::put_parameters,
1230 EmulatedCamera::send_command,
1231 EmulatedCamera::release,
1232 EmulatedCamera::dump
1239 const char EmulatedCamera::FACING_KEY[] = "prop-facing";
1240 const char EmulatedCamera::ORIENTATION_KEY[] = "prop-orientation";
1241 const char EmulatedCamera::RECORDING_HINT_KEY[] = "recording-hint";
1247 const char EmulatedCamera::FACING_BACK[] = "back";
1248 const char EmulatedCamera::FACING_FRONT[] = "front";