ICS TI Omap camera code structure

  1.  1. ANativeWindowDisplayAdapter.cpp

  2. OMX_COLOR_FORMATTYPE toOMXPixFormat(const char* parameters_format);
    const char* getPixFormatConstant(const char* parameters_format);
    const size_t getBufSize(const char* parameters_format, int width, int height)
    ANativeWindowDisplayAdapter::ANativeWindowDisplayAdapter();
    ANativeWindowDisplayAdapter::~ANativeWindowDisplayAdapter();
    status_t ANativeWindowDisplayAdapter::initialize();
    int ANativeWindowDisplayAdapter::setPreviewWindow(preview_stream_ops_t* window);
    int ANativeWindowDisplayAdapter::setFrameProvider(FrameNotifier *frameProvider);
    int ANativeWindowDisplayAdapter::setErrorHandler(ErrorNotifier *errorNotifier);
    status_t ANativeWindowDisplayAdapter::setSnapshotTimeRef(struct timeval *refTime);
    int ANativeWindowDisplayAdapter::enableDisplay(int width, int height, struct timeval *refTime, S3DParameters *s3dParams);
    int ANativeWindowDisplayAdapter::disableDisplay(bool cancel_buffer);
    status_t ANativeWindowDisplayAdapter::pauseDisplay(bool pause);
    void ANativeWindowDisplayAdapter::destroy();
    void* ANativeWindowDisplayAdapter::allocateBuffer(int width, int height, const char* format, int &bytes, int numBufs);
    uint32_t * ANativeWindowDisplayAdapter::getOffsets();
    int ANativeWindowDisplayAdapter::maxQueueableBuffers(unsigned int& queueable);
    int ANativeWindowDisplayAdapter::getFd();
    status_t ANativeWindowDisplayAdapter::returnBuffersToWindow();
    int ANativeWindowDisplayAdapter::freeBuffer(void* buf);
    bool ANativeWindowDisplayAdapter::support***ternalBuffering();
    int ANativeWindowDisplayAdapter::useBuffers(void *bufArr, int num);
    void ANativeWindowDisplayAdapter::displayThread();
    bool ANativeWindowDisplayAdapter::processHalMsg();
    status_t ANativeWindowDisplayAdapter::PostFrame(ANativeWindowDisplayAdapter::DisplayFrame &dispFrame);
    bool ANativeWindowDisplayAdapter::handleFrameReturn();
    void ANativeWindowDisplayAdapter::frameCallbackRelay(CameraFrame* caFrame);
    void ANativeWindowDisplayAdapter::frameCallback(CameraFrame* caFrame);
    2. AppCallbackNotifier.cpp
  3. void AppCallbackNotifierEncoderCallback(void* main_jpeg,
                        void* thumb_jpeg,
                        CameraFrame::FrameType type,
                        void* cookie1, void* cookie2, void* cookie3);
    void AppCallbackNotifier::EncoderDoneCb(void* main_jpeg, void* thumb_jpeg, CameraFrame::FrameType type, void* cookie1, void* cookie2);
    status_t AppCallbackNotifier::initialize();
    void AppCallbackNotifier::setCallbacks(CameraHal* cameraHal,
                                             camera_notify_callback notify_cb,
                                             camera_data_callback data_cb,
                                             camera_data_timestamp_callback data_cb_timestamp,
                                              camera_request_memory get_memory,
                                              void *user);
    void AppCallbackNotifier::setMeasurements(bool enable);
    void AppCallbackNotifier::errorNotify(int error);
    bool AppCallbackNotifier::notificationThread();
    void AppCallbackNotifier::notifyEvent();
    static void copy2Dto1D(void *dst,
                          void *src,
                          int width,
                          int height,
                          size_t stride,
                          uint32_t offset,
                          unsigned int bytesPerPixel,
                          size_t length,
                          const char *pixelFormat)
    void AppCallbackNotifier::copyAndSendPictureFrame(CameraFrame* frame, int32_t msgType);
    void AppCallbackNotifier::copyAndSendPreviewFrame(CameraFrame* frame, int32_t msgType);
    status_t AppCallbackNotifier::dummyRaw();
    void AppCallbackNotifier::notifyFrame();
    void AppCallbackNotifier::frameCallbackRelay(CameraFrame* caFrame);
    void AppCallbackNotifier::frameCallback(CameraFrame* caFrame);
    void AppCallbackNotifier::flushAndReturnFrames();
    void AppCallbackNotifier::eventCallbackRelay(CameraHalEvent* chEvt);
    void AppCallbackNotifier::eventCallback(CameraHalEvent* chEvt);
    void AppCallbackNotifier::flushEventQueue();
    bool AppCallbackNotifier::processMessage();
    AppCallbackNotifier::~AppCallbackNotifier();
    void AppCallbackNotifier::releaseSharedVideoBuffers();
    void AppCallbackNotifier::setEventProvider(int32_t eventMask, MessageNotifier * eventNotifier);
    void AppCallbackNotifier::setFrameProvider(FrameNotifier *frameNotifier);
    status_t AppCallbackNotifier::startPreviewCallbacks(CameraParameters ¶ms, void *buffers, uint32_t *offsets, int fd, size_t length, size_t count);
    void AppCallbackNotifier::setBurst(bool burst);
    void AppCallbackNotifier::useVideoBuffers(bool useVideoBuffers);
    bool AppCallbackNotifier::getUesVideoBuffers();
    void AppCallbackNotifier::setVideoRes(int width, int height);
    status_t AppCallbackNotifier::stopPreviewCallbacks();
    status_t AppCallbackNotifier::useMetaDataBufferMode(bool enable);
    status_t AppCallbackNotifier::startRecording()
    status_t AppCallbackNotifier::initSharedVideoBuffers(void *buffers, uint32_t *offsets, int fd, size_t length, size_t count, void *vidBufs)
    status_t AppCallbackNotifier::stopRecording()
    status_t AppCallbackNotifier::releaseRecordingFrame(const void* mem)
    status_t AppCallbackNotifier::enableMsgType(int32_t msgType)
    status_t AppCallbackNotifier::disableMsgType(int32_t msgType)
    status_t AppCallbackNotifier::start()
    status_t AppCallbackNotifier::stop()
    3. BaseCameraAdapter.cpp
  4. BaseCameraAdapter::BaseCameraAdapter()
    BaseCameraAdapter::~BaseCameraAdapter()
    status_t BaseCameraAdapter::registerImageReleaseCallback(release_image_buffers_callback callback, void *user_data)
    status_t BaseCameraAdapter::registerEndCaptureCallback(end_image_capture_callback callback, void *user_data)
    status_t BaseCameraAdapter::setErrorHandler(ErrorNotifier *errorNotifier)
    void BaseCameraAdapter::enableMsgType(int32_t msgs, frame_callback callback, event_callback eventCb, void* cookie)
    void BaseCameraAdapter::disableMsgType(int32_t msgs, void* cookie)
    void BaseCameraAdapter::addFramePointers(void *frameBuf, void *buf)
    void BaseCameraAdapter::removeFramePointers()
    void BaseCameraAdapter::returnFrame(void* frameBuf, CameraFrame::FrameType frameType)
    status_t BaseCameraAdapter::sendCommand(CameraCommands operation, int value1, int value2, int value3)
    status_t BaseCameraAdapter::notifyFocusSubscribers(bool status)
    status_t BaseCameraAdapter::notifyShutterSubscribers()
    status_t BaseCameraAdapter::notifyZoomSubscribers(int zoomIdx, bool targetReached)
    status_t BaseCameraAdapter::notifyFaceSubscribers(sp<CameraFDResult> &faces)
    status_t BaseCameraAdapter::sendFrameToSubscribers(CameraFrame *frame)
    status_t BaseCameraAdapter::__sendFrameToSubscribers(CameraFrame* frame,
                                                         KeyedVector<int, frame_callback> *subscribers,
                                                         CameraFrame::FrameType frameType)
    int BaseCameraAdapter::setInitFrameRefCount(void* buf, unsigned int mask);
    int BaseCameraAdapter::getFrameRefCount(void* frameBuf, CameraFrame::FrameType frameType)
    void BaseCameraAdapter::setFrameRefCount(void* frameBuf, CameraFrame::FrameType frameType, int refCount)
    a. all state:
  5. status_t BaseCameraAdapter::startVideoCapture()
    status_t BaseCameraAdapter::stopVideoCapture()
    status_t BaseCameraAdapter::takePicture()
    status_t BaseCameraAdapter::stopImageCapture()
    status_t BaseCameraAdapter::startBracketing(int range)
    status_t BaseCameraAdapter::stopBracketing()
    status_t BaseCameraAdapter::autoFocus()
    status_t BaseCameraAdapter::cancelAutoFocus()
    status_t BaseCameraAdapter::startSmoothZoom(int targetIdx)
    status_t BaseCameraAdapter::stopSmoothZoom()
    status_t BaseCameraAdapter::startPreview()
    status_t BaseCameraAdapter::stopPreview()
    status_t BaseCameraAdapter::useBuffers(CameraMode mode, void* bufArr, int num, size_t length, unsigned int queueable)
    status_t BaseCameraAdapter::fillThisBuffer(void* frameBuf, CameraFrame::FrameType frameType)
    status_t BaseCameraAdapter::getFrameSize(size_t &width, size_t &height)
    status_t BaseCameraAdapter::getFrameDataSize(size_t &dataFrameSize, size_t bufferCount)
    status_t BaseCameraAdapter::getPictureBufferSize(size_t &length, size_t bufferCount)
    status_t BaseCameraAdapter::startFaceDetection()
    status_t BaseCameraAdapter::stopFaceDetection()
    status_t BaseCameraAdapter::switchToExecuting()
    b. switch state:
  6. status_t BaseCameraAdapter::setState(CameraCommands operation) //important
    status_t BaseCameraAdapter::rollbackToInitializedState()
    status_t BaseCameraAdapter::rollbackToPreviousState()
    status_t BaseCameraAdapter::commitState()
    status_t BaseCameraAdapter::rollbackState()
    CameraAdapter::AdapterState BaseCameraAdapter::getState()
    CameraAdapter::AdapterState BaseCameraAdapter::getNextState()
    status_t BaseCameraAdapter::getState(AdapterState &state)
    status_t BaseCameraAdapter::getNextState(AdapterState &state)
    void BaseCameraAdapter::onOrientationEvent(uint32_t orientation, uint32_t tilt)
    4.CameraHalCommon.cpp
  7. void CameraHal::PPM(const char* str)
    void CameraHal::PPM(const char* str, struct timeval* ppm_first, ...)
    5.CameraHal.cpp
  8. static void orientation_cb(uint32_t orientation, uint32_t tilt, void* cookie)
    void CameraHal::onOrientationEvent(uint32_t orientation, uint32_t tilt)
    void CameraHal::setCallbacks(camera_notify_callback notify_cb,
                                 camera_data_callback data_cb,
                                 camera_data_timestamp_callback data_cb_timestamp,
                                 camera_request_memory get_memory,
                                 void *user)
    void CameraHal::enableMsgType(int32_t msgType)
    void CameraHal::disableMsgType(int32_t msgType)
    int CameraHal::msgTypeEnabled(int32_t msgType)
    int CameraHal::setParameters(const char* parameters)
    int CameraHal::setParameters(const CameraParameters& params)
    status_t CameraHal::allocPreviewBufs(int width, int height, const char* previewFormat,
                                             unsigned int buffercount, unsigned int &max_queueable)
    status_t CameraHal::freePreviewBufs()
    status_t CameraHal::allocPreviewDataBufs(size_t size, size_t bufferCount)
    status_t CameraHal::freePreviewDataBufs()
    status_t CameraHal::allocImageBufs(unsigned int width, unsigned int height, size_t size, const char* previewFormat, unsigned int bufferCount)
    status_t CameraHal::allocVideoBufs(uint32_t width, uint32_t height, uint32_t bufferCount)
    void endImageCapture( void *userData)
    void releaseImageBuffers(void *userData)
    status_t CameraHal::signalEndImageCapture()
    status_t CameraHal::freeImageBufs()
    status_t CameraHal::freeVideoBufs(void *bufs)
    status_t CameraHal::startPreview()
    status_t CameraHal::setPreviewWindow(struct preview_stream_ops *window)
    void CameraHal::stopPreview()
    bool CameraHal::previewEnabled()
    status_t CameraHal::startRecording( )
    bool CameraHal::setVideoModeParameters(const CameraParameters& params)
    bool CameraHal::resetVideoModeParameters()
    status_t CameraHal::restartPreview()
    void CameraHal::stopRecording()
    int CameraHal::recordingEnabled()
    void CameraHal::releaseRecordingFrame(const void* mem)
    status_t CameraHal::autoFocus()
    status_t CameraHal::cancelAutoFocus()
    void CameraHal::setEventProvider(int32_t eventMask, MessageNotifier * eventNotifier)
    void CameraHal::eventCallbackRelay(CameraHalEvent* event)
    void CameraHal::eventCallback(CameraHalEvent* event)
    status_t CameraHal::startImageBracketing()
    status_t CameraHal::stopImageBracketing()
    status_t CameraHal::takePicture( )
    status_t CameraHal::cancelPicture( )
    char* CameraHal::getParameters()
    void CameraHal::putParameters(char *parms)
    status_t CameraHal::sendCommand(int32_t cmd, int32_t arg1, int32_t arg2)
    void CameraHal::release()
    status_t CameraHal::dump(int fd) const
    CameraHal::CameraHal(int cameraId)
    CameraHal::~CameraHal()
    status_t CameraHal::initialize(CameraProperties::Properties* properties)
    bool CameraHal::isResolutionValid(unsigned int width, unsigned int height, const char *supportedResolutions)
    bool CameraHal::isParameterValid(const char *param, const char *supportedParams)
    bool CameraHal::isParameterValid(int param, const char *supportedParams)
    status_t CameraHal::doesSetParameterNeedUpdate(const char* new_param, const char* old_param, bool& update)
    status_t CameraHal::parseResolution(const char *resStr, int &width, int &height)
    void CameraHal::insertSupportedParams()
    void CameraHal::initDefaultParameters()
    void CameraHal::forceStopPreview()
    void CameraHal::deinitialize()
    status_t CameraHal::storeMetaDataInBuffers(bool enable)
    void CameraHal::selectFPSRange(int framerate, int *min_fps, int *max_fps)
    void CameraHal::setPreferredPreviewRes(int width, int height)
    void CameraHal::resetPreviewRes(CameraParameters *mParams, int width, int height)
    6.CameraHal_Module.cpp
  9. static struct hw_module_methods_t camera_module_methods //functions, only have open() now.
    camera_module_t HAL_MODULE_INFO_SYM //camera hardware module info
    int camera_set_preview_window(struct camera_device * device, struct preview_stream_ops *window)
    void camera_set_callbacks(struct camera_device * device,
             camera_notify_callback notify_cb,
             camera_data_callback data_cb,
             camera_data_timestamp_callback data_cb_timestamp,
             camera_request_memory get_memory,
             void *user)
    void camera_enable_msg_type(struct camera_device * device, int32_t msg_type)
    void camera_disable_msg_type(struct camera_device * device, int32_t msg_type)
    int camera_msg_type_enabled(struct camera_device * device, int32_t msg_type)
    int camera_start_preview(struct camera_device * device)
    void camera_stop_preview(struct camera_device * device)
    int camera_preview_enabled(struct camera_device * device)
    int camera_store_meta_data_in_buffers(struct camera_device * device, int enable)
    int camera_start_recording(struct camera_device * device)
    void camera_stop_recording(struct camera_device * device)
    int camera_recording_enabled(struct camera_device * device)
    void camera_release_recording_frame(struct camera_device * device,
                     const void *opaque)
    int camera_auto_focus(struct camera_device * device)
    int camera_cancel_auto_focus(struct camera_device * device)
    int camera_take_picture(struct camera_device * device)
    int camera_cancel_picture(struct camera_device * device)
    int camera_set_parameters(struct camera_device * device, const char *params)
    char* camera_get_parameters(struct camera_device * device)
    static void camera_put_parameters(struct camera_device *device, char *parms)
    int camera_send_command(struct camera_device * device,
                 int32_t cmd, int32_t arg1, int32_t arg2)
    void camera_release(struct camera_device * device)
    int camera_dump(struct camera_device * device, int fd)
    extern "C" void heaptracker_free_leaked_memory(void);
    int camera_device_close(hw_device_t* device)
    int camera_device_open(const hw_module_t* module, const char* name,
                     hw_device_t** device)
    int camera_get_number_of_cameras(void)
    int camera_get_camera_info(int camera_id, struct camera_info *info)
    7.CameraHalUtilClasses.cpp
  10. int FrameProvider::enableFrameNotification(int32_t frameTypes)
    int FrameProvider::disableFrameNotification(int32_t frameTypes)
    int FrameProvider::returnFrame(void *frameBuf, CameraFrame::FrameType frameType)
    void FrameProvider::addFramePointers(void *frameBuf, void *buf)
    void FrameProvider::removeFramePointers()
    int EventProvider::enableEventNotification(int32_t frameTypes)
    int EventProvider::disableEventNotification(int32_t frameTypes)
    status_t CameraArea::transfrom(size_t width,
                                    size_t height,
                                    size_t &top,
                                    size_t &left,
                                    size_t &areaWidth,
                                    size_t &areaHeight)
    status_t CameraArea::checkArea(ssize_t top,
                                    ssize_t left,
                                    ssize_t bottom,
                                    ssize_t right,
                                    ssize_t weight)
    status_t CameraArea::parseAreas(const char *area,
                                     size_t areaLength,
                                     Vector< sp<CameraArea> > &areas)
    bool CameraArea::areAreasDifferent(Vector< sp<CameraArea> > &area1,
                                         Vector< sp<CameraArea> > &area2)
    bool CameraArea::compare(const sp<CameraArea> &area)
    8. CameraParameters.cpp
  11. int CameraProperties::getProperties(int cameraIndex, CameraProperties::Properties** properties)
    ssize_t CameraProperties::Properties::set(const char *prop, const char *value)
    ssize_t CameraProperties::Properties::set(const char *prop, int value)
    const char* CameraProperties::Properties::get(const char * prop)
    void CameraProperties::Properties::dump()
    const char* CameraProperties::Properties::keyAt(unsigned int index)
    const char* CameraProperties::Properties::valueAt(unsigned int index)
    9. CameraProperties.cpp
  12. CameraProperties::CameraProperties() : mCamerasSupported(0)
    CameraProperties::~CameraProperties()
    status_t CameraProperties::initialize()
    extern "C" int CameraAdapter_Capabilities(CameraProperties::Properties* properties_array,
                                               const unsigned int starting_camera,
                                               const unsigned int max_camera);
    status_t CameraProperties::loadProperties()
    int CameraProperties::camerasSupported()
    10. Encoder_libjpeg.cpp
  13. static void libjpeg_init_destination (j_compress_ptr cinfo)
    static boolean libjpeg_empty_output_buffer(j_compress_ptr cinfo)
    static void libjpeg_term_destination (j_compress_ptr cinfo)
    libjpeg_destination_mgr::libjpeg_destination_mgr(uint8_t* input, int size)
    static void nv21_to_yuv(uint8_t* dst, uint8_t* y, uint8_t* uv, int width)
    static void uyvy_to_yuv(uint8_t* dst, uint32_t* src, int width)
    static void resize_nv12(Encoder_libjpeg::params* params, uint8_t* dst_buffer)
    const char* ExifElementsTable::degreesToExifOrientation(const char* degrees)
    void ExifElementsTable::stringToRational(const char* str, unsigned int* num, unsigned int* den)
    bool ExifElementsTable::isAsciiTag(const char* tag)
    void ExifElementsTable::insertExifToJpeg(unsigned char* jpeg, size_t jpeg_size)
    status_t ExifElementsTable::insertExifThumbnailImage(const char* thumb, int len)
    void ExifElementsTable::saveJpeg(unsigned char* jpeg, size_t jpeg_size)
    ExifElementsTable::~ExifElementsTable()
    status_t ExifElementsTable::insertElement(const char* tag, const char* value)
    size_t Encoder_libjpeg::encode(params* input) 
    11. MemoryManager.cpp
  14. void* MemoryManager::allocateBuffer(int width, int height, const char* format, int &bytes, int numBufs)
    uint32_t * MemoryManager::getOffsets()
    int MemoryManager::getFd()
    int MemoryManager::freeBuffer(void* buf)
    status_t MemoryManager::setErrorHandler(ErrorNotifier *errorNotifier)
    12. NV12_resize.c
  15. mmBool VT_resizeFrame_Video_opt2_lp( structConvImage* i_img_ptr, /* Points to the input image */
                        structConvImage* o_img_ptr, /* Points to the output image */
                        IC_rect_type* cropout, /* how much to resize to in final image */
                        mmUint16 dummy /* Transparent pixel value */)
    13. SensorListener.cpp
  16. static int sensor_events_listener(int fd, int events, void* data)
    SensorListener::SensorListener()
    SensorListener::~SensorListener()
    status_t SensorListener::initialize()
    void SensorListener::setCallbacks(orientation_callback_t orientation_cb, void *cookie)
    void SensorListener::handleOrientation(uint32_t orientation, uint32_t tilt)
    void SensorListener::enableSensor(sensor_type_t type)
    void SensorListener::disableSensor(sensor_type_t type)
    14. V4LCameraAdapter/V4LCameraAdapter.cpp
  17. status_t V4LCameraAdapter::initialize(CameraProperties::Properties* caps)
    status_t V4LCameraAdapter::fillThisBuffer(void* frameBuf, CameraFrame::FrameType frameType)
    status_t V4LCameraAdapter::setParameters(const CameraParameters ¶ms)
    void V4LCameraAdapter::getParameters(CameraParameters& params)
    status_t V4LCameraAdapter::useBuffers(CameraMode mode, void* bufArr, int num, size_t length, unsigned int queueable)
    status_t V4LCameraAdapter::UseBuffersPreview(void* bufArr, int num)
    status_t V4LCameraAdapter::startPreview()
    status_t V4LCameraAdapter::stopPreview()
    char * V4LCameraAdapter::GetFrame(int &index)
    status_t V4LCameraAdapter::getFrameSize(size_t &width, size_t &height)
    status_t V4LCameraAdapter::getFrameDataSize(size_t &dataFrameSize, size_t bufferCount)
    status_t V4LCameraAdapter::getPictureBufferSize(size_t &length, size_t bufferCount)
    static void debugShowFPS()
    status_t V4LCameraAdapter::recalculateFPS()
    void V4LCameraAdapter::onOrientationEvent(uint32_t orientation, uint32_t tilt)
    V4LCameraAdapter::V4LCameraAdapter(size_t sensor_index)
    V4LCameraAdapter::~V4LCameraAdapter()
    int V4LCameraAdapter::previewThread()
    extern "C" CameraAdapter* CameraAdapter_Factory()
    extern "C" int CameraAdapter_Capabilities(CameraProperties::Properties* properties_array,
                                               const unsigned int starting_camera,
                                               const unsigned int max_camera)
    15. OMXCameraAdapter/OMX3A.cpp
  18. const SceneModesEntry* OMXCameraAdapter::getSceneModeEntry(const char* name,
                                                                       OMX_SCENEMODETYPE scene)
    status_t OMXCameraAdapter::setParameters3A(const CameraParameters ¶ms,
                                                BaseCameraAdapter::AdapterState state)
    int OMXCameraAdapter::getLUTvalue_HALtoOMX(const char * HalValue, LUTtype LUT)
    const char* OMXCameraAdapter::getLUTvalue_OMXtoHAL(int OMXValue, LUTtype LUT)
    status_t OMXCameraAdapter::apply3ADefaults(Gen3A_settings &Gen3A)
    status_t OMXCameraAdapter::setExposureMode(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::setFlashMode(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::getFlashMode(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::setFocusMode(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::getFocusMode(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::setScene(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::setEVCompensation(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::getEVCompensation(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::setWBMode(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::getWBMode(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::setFlicker(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::setBrightness(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::setContrast(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::setSharpness(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::getSharpness(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::setSaturation(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::getSaturation(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::setISO(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::getISO(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::setEffect(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::setWhiteBalanceLock(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::setExposureLock(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::setFocusLock(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::set3ALock(OMX_BOOL toggleExp, OMX_BOOL toggleWb, OMX_BOOL toggleFocus)
    status_t OMXCameraAdapter::setMeteringAreas(Gen3A_settings& Gen3A)
    status_t OMXCameraAdapter::apply3Asettings( Gen3A_settings& Gen3A )
    16. OMXCameraAdapter/OMXAlgo.cpp
  19. status_t OMXCameraAdapter::setParametersAlgo(const CameraParameters ¶ms,
                                                  BaseCameraAdapter::AdapterState state)
    status_t OMXCameraAdapter::getAutoConvergence(OMX_TI_AUTOCONVERGENCEMODETYPE *pACMode,
                                                   OMX_S32 *pManualConverence)
    status_t OMXCameraAdapter::setAutoConvergence(OMX_TI_AUTOCONVERGENCEMODETYPE pACMode,
                                                   OMX_S32 pManualConverence)
    status_t OMXCameraAdapter::enableVideoNoiseFilter(bool enable)
    status_t OMXCameraAdapter::enableVideoStabilization(bool enable)
    status_t OMXCameraAdapter::setGBCE(OMXCameraAdapter::BrightnessMode mode)
    status_t OMXCameraAdapter::setGLBCE(OMXCameraAdapter::BrightnessMode mode)
    status_t OMXCameraAdapter::setCaptureMode(OMXCameraAdapter::CaptureMode mode)
    status_t OMXCameraAdapter::setLDC(OMXCameraAdapter::IPPMode mode)
    status_t OMXCameraAdapter::setNSF(OMXCameraAdapter::IPPMode mode)
    status_t OMXCameraAdapter::setImageQuality(unsigned int quality)
    status_t OMXCameraAdapter::setThumbnailParams(unsigned int width,
                                                   unsigned int height,
                                                   unsigned int quality)
    status_t OMXCameraAdapter::setAlgoPriority(AlgoPriority priority,
                                                Algorithm3A algo,
                                                bool enable)
    status_t OMXCameraAdapter::setPictureRotation(unsigned int degree)
    status_t OMXCameraAdapter::setSensorOrientation(unsigned int degree)
    status_t OMXCameraAdapter::setVFramerate(OMX_U32 minFrameRate, OMX_U32 maxFrameRate)
    17. OMXCameraAdapter/OMXCameraAdapter.cpp
  20. status_t OMXCameraAdapter::initialize(CameraProperties::Properties* caps)
    void OMXCameraAdapter::performCleanupAfterError()
    OMXCameraAdapter::OMXCameraPortParameters *OMXCameraAdapter::getPortParams(CameraFrame::FrameType frameType)
    status_t OMXCameraAdapter::fillThisBuffer(void* frameBuf, CameraFrame::FrameType frameType)
    status_t OMXCameraAdapter::setParameters(const CameraParameters ¶ms)
    void saveFile(unsigned char *buff, int width, int height, int format)
    void OMXCameraAdapter::getParameters(CameraParameters& params)
    status_t OMXCameraAdapter::setFormat(OMX_U32 port, OMXCameraPortParameters &portParams)
    status_t OMXCameraAdapter::flushBuffers()
    status_t OMXCameraAdapter::useBuffers(CameraMode mode, void* bufArr, int num, size_t length, unsigned int queueable)
    status_t OMXCameraAdapter::UseBuffersPreviewData(void* bufArr, int num)
    status_t OMXCameraAdapter::switchToExecuting()
    status_t OMXCameraAdapter::doSwitchToExecuting()
    status_t OMXCameraAdapter::switchToLoaded()
    status_t OMXCameraAdapter::UseBuffersPreview(void* bufArr, int num)
    status_t OMXCameraAdapter::startPreview()
    status_t OMXCameraAdapter::stopPreview()
    status_t OMXCameraAdapter::setSensorOverclock(bool enable)
    status_t OMXCameraAdapter::printComponentVersion(OMX_HANDLETYPE handle)
    status_t OMXCameraAdapter::autoFocus()
    status_t OMXCameraAdapter::takePicture()
    status_t OMXCameraAdapter::startVideoCapture()
    status_t OMXCameraAdapter::stopVideoCapture()
    status_t OMXCameraAdapter::getFrameSize(size_t &width, size_t &height)
    status_t OMXCameraAdapter::getFrameDataSize(size_t &dataFrameSize, size_t bufferCount)
    void OMXCameraAdapter::onOrientationEvent(uint32_t orientation, uint32_t tilt)
    OMX_ERRORTYPE OMXCameraAdapterEventHandler(OMX_IN OMX_HANDLETYPE hComponent,
                                               OMX_IN OMX_PTR pAppData,
                                               OMX_IN OMX_EVENTTYPE eEvent,
                                               OMX_IN OMX_U32 nData1,
                                               OMX_IN OMX_U32 nData2,
                                               OMX_IN OMX_PTR pEventData)
    OMX_ERRORTYPE OMXCameraAdapter::OMXCameraAdapterEventHandler(OMX_IN OMX_HANDLETYPE hComponent,
                                               OMX_IN OMX_EVENTTYPE eEvent,
                                               OMX_IN OMX_U32 nData1,
                                               OMX_IN OMX_U32 nData2,
                                               OMX_IN OMX_PTR pEventData)
    OMX_ERRORTYPE OMXCameraAdapter::SignalEvent(OMX_IN OMX_HANDLETYPE hComponent,
                                               OMX_IN OMX_EVENTTYPE eEvent,
                                               OMX_IN OMX_U32 nData1,
                                               OMX_IN OMX_U32 nData2,
                                               OMX_IN OMX_PTR pEventData)
    OMX_ERRORTYPE OMXCameraAdapter::RemoveEvent(OMX_IN OMX_HANDLETYPE hComponent,
                                                 OMX_IN OMX_EVENTTYPE eEvent,
                                                 OMX_IN OMX_U32 nData1,
                                                 OMX_IN OMX_U32 nData2,
                                                 OMX_IN OMX_PTR pEventData)
    status_t OMXCameraAdapter::RegisterForEvent(OMX_IN OMX_HANDLETYPE hComponent,
                                               OMX_IN OMX_EVENTTYPE eEvent,
                                               OMX_IN OMX_U32 nData1,
                                               OMX_IN OMX_U32 nData2,
                                               OMX_IN Semaphore &semaphore)
    OMX_ERRORTYPE OMXCameraAdapterEmptyBufferDone(OMX_IN OMX_HANDLETYPE hComponent,
                                        OMX_IN OMX_PTR pAppData,
                                        OMX_IN OMX_BUFFERHEADERTYPE* pBuffHeader)
    OMX_ERRORTYPE OMXCameraAdapter::OMXCameraAdapterEmptyBufferDone(OMX_IN OMX_HANDLETYPE hComponent,
                                        OMX_IN OMX_BUFFERHEADERTYPE* pBuffHeader)
    static void debugShowFPS()
    OMX_ERRORTYPE OMXCameraAdapterFillBufferDone(OMX_IN OMX_HANDLETYPE hComponent,
                                        OMX_IN OMX_PTR pAppData,
                                        OMX_IN OMX_BUFFERHEADERTYPE* pBuffHeader)
    OMX_ERRORTYPE OMXCameraAdapter::OMXCameraAdapterFillBufferDone(OMX_IN OMX_HANDLETYPE hComponent,
                                        OMX_IN OMX_BUFFERHEADERTYPE* pBuffHeader)
    status_t OMXCameraAdapter::recalculateFPS()
    status_t OMXCameraAdapter::sendFrame(CameraFrame &frame)
    status_t OMXCameraAdapter::sendCallBacks(CameraFrame frame, OMX_IN OMX_BUFFERHEADERTYPE *pBuffHeader, unsigned int mask, OMXCameraPortParameters *port)
    status_t OMXCameraAdapter::initCameraFrame( CameraFrame &frame,
                                                 OMX_IN OMX_BUFFERHEADERTYPE *pBuffHeader,
                                                 int typeOfFrame,
                                                 OMXCameraPortParameters *port)
    bool OMXCameraAdapter::CommandHandler::Handler()
    bool OMXCameraAdapter::OMXCallbackHandler::Handler()
    OMX_OTHER_EXTRADATATYPE *OMXCameraAdapter::getExtradata(OMX_OTHER_EXTRADATATYPE *extraData, OMX_EXTRADATATYPE type)
    OMXCameraAdapter::OMXCameraAdapter(size_t sensor_index): mComponentState (OMX_StateLoaded)
    OMXCameraAdapter::~OMXCameraAdapter()
    extern "C" CameraAdapter* CameraAdapter_Factory(size_t sensor_index)
    OMX_ERRORTYPE OMXCameraAdapter::OMXCameraGetHandle(OMX_HANDLETYPE *handle, OMX_PTR pAppData )
    extern "C" int CameraAdapter_Capabilities(CameraProperties::Properties* properties_array,
                                               const unsigned int starting_camera,
                                               const unsigned int max_camera)
    18. OMXCameraAdapter/OMXCapabilities.cpp
  21. void remove_last_sep(char* buffer)
    status_t OMXCameraAdapter::encodePixelformatCap(OMX_COLOR_FORMATTYPE format,
                                   const CapPixelformat *cap,
                                   size_t capCount,
                                   char * buffer,
                                   size_t bufferSize)
    status_t OMXCameraAdapter::encodeFramerateCap(OMX_U32 framerateMax,
                                 OMX_U32 framerateMin,
                                 const CapFramerate *cap,
                                 size_t capCount,
                                 char * buffer,
                                 size_t bufferSize)
    status_t OMXCameraAdapter::encodeVFramerateCap(OMX_TI_CAPTYPE &caps,
                                                    const CapU32Pair *cap,
                                                    size_t capCount,
                                                    char *buffer,
                                                    char *defaultRange,
                                                    size_t bufferSize)
    size_t OMXCameraAdapter::encodeZoomCap(OMX_S32 maxZoom,
                          const CapZoom *cap,
                          size_t capCount,
                          char * buffer,
                          size_t bufferSize)
    status_t OMXCameraAdapter::encodeISOCap(OMX_U32 maxISO,
     403 const CapISO *cap,
     404 size_t capCount,
     405 char * buffer,
     406 size_t bufferSize)
    status_t OMXCameraAdapter::encodeSizeCap(OMX_TI_CAPRESTYPE &res,
     430 const CapResolution *cap,
     431 size_t capCount,
     432 char * buffer,
     433 size_t bufferSize)
    status_t OMXCameraAdapter::insertImageSizes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertPreviewSizes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertVideoSizes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertThumbSizes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertZoomStages(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertImageFormats(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertPreviewFormats(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertFramerates(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertVFramerates(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertEVs(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertISOModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertIPPModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertWBModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertEffects(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertExpModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertFlashModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertSceneModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertFocusModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertFlickerModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertAreas(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertLocks(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertDefaults(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertSenMount(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::insertCapabilities(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
    status_t OMXCameraAdapter::getCaps(CameraProperties::Properties* params, OMX_HANDLETYPE handle)
    19. OMXCameraAdapter/OMXCapture.cpp
  22. status_t OMXCameraAdapter::setParametersCapture(const CameraParameters ¶ms,
                                                     BaseCameraAdapter::AdapterState state)
    status_t OMXCameraAdapter::getPictureBufferSize(size_t &length, size_t bufferCount)
    status_t OMXCameraAdapter::parseExpRange(const char *rangeStr,
                                              int * expRange,
                                              size_t count,
                                              size_t &validEntries)
    status_t OMXCameraAdapter::setExposureBracketing(int *evValues,
                                                      size_t evCount,
                                                      size_t frameCount)
    status_t OMXCameraAdapter::setShutterCallback(bool enabled)
    status_t OMXCameraAdapter::doBracketing(OMX_BUFFERHEADERTYPE *pBuffHeader,
                                             CameraFrame::FrameType typeOfFrame)
    status_t OMXCameraAdapter::sendBracketFrames()
    status_t OMXCameraAdapter::startBracketing(int range)
    status_t OMXCameraAdapter::stopBracketing()
    status_t OMXCameraAdapter::startImageCapture()
    status_t OMXCameraAdapter::stopImageCapture()
    status_t OMXCameraAdapter::disableImagePort()
    status_t OMXCameraAdapter::UseBuffersCapture(void* bufArr, int num)
    20. OMXCameraAdapter/OMXExif.cpp
  23. status_t OMXCameraAdapter::setParameter***IF(const CameraParameters ¶ms,
                                                  BaseCameraAdapter::AdapterState state)
    status_t OMXCameraAdapter::setupEXIF()
    status_t OMXCameraAdapter::setupEXIF_libjpeg(ExifElementsTable* exifTable)
    status_t OMXCameraAdapter::convertGPSCoord(double coord,
                                                int °,
                                                int &min,
                                                int &sec,
                                                int &secDivisor)
    21. OMXCameraAdapter/OMXFD.cpp
  24. status_t OMXCameraAdapter::setParametersFD(const CameraParameters ¶ms,
                                                BaseCameraAdapter::AdapterState state)
    status_t OMXCameraAdapter::startFaceDetection()
    status_t OMXCameraAdapter::stopFaceDetection()
    void OMXCameraAdapter::pauseFaceDetection(bool pause)
    status_t OMXCameraAdapter::setFaceDetection(bool enable, OMX_U32 orientation)
    status_t OMXCameraAdapter::detectFaces(OMX_BUFFERHEADERTYPE* pBuffHeader,
                                            sp<CameraFDResult> &result,
                                            size_t previewWidth,
                                            size_t previewHeight)
    status_t OMXCameraAdapter::encodeFaceCoordinates(const OMX_FACEDETECTIONTYPE *faceData,
                                                      camera_frame_metadata_t **pFaces,
                                                      size_t previewWidth,
                                                      size_t previewHeight)
    22. OMXCameraAdapter/OMXFocus.cpp
  25. status_t OMXCameraAdapter::setParametersFocus(const CameraParameters ¶ms,
                                                   BaseCameraAdapter::AdapterState state)
    status_t OMXCameraAdapter::doAutoFocus()
    status_t OMXCameraAdapter::stopAutoFocus()
    status_t OMXCameraAdapter::getFocusMode(OMX_IMAGE_CONFIG_FOCUSCONTROLTYPE &focusMode)
    status_t OMXCameraAdapter::cancelAutoFocus()
    status_t OMXCameraAdapter::setFocusCallback(bool enabled)
    status_t OMXCameraAdapter::returnFocusStatus(bool timeoutReached)
    status_t OMXCameraAdapter::checkFocus(OMX_PARAM_FOCUSSTATUSTYPE *eFocusStatus)
    status_t OMXCameraAdapter::updateFocusDistances(CameraParameters ¶ms)
    status_t OMXCameraAdapter::getFocusDistances(OMX_U32 &near,OMX_U32 &optimal, OMX_U32 &far)
    status_t OMXCameraAdapter::encodeFocusDistance(OMX_U32 dist, char *buffer, size_t length)
    status_t OMXCameraAdapter::addFocusDistances(OMX_U32 &near,
                                                  OMX_U32 &optimal,
                                                  OMX_U32 &far,
                                                  CameraParameters& params)
    status_t OMXCameraAdapter::setTouchFocus()
    23. OMXCameraAdapter/OMXZoom.cpp
    status_t OMXCameraAdapter::setParametersZoom(const CameraParameters ¶ms,
                                                  BaseCameraAdapter::AdapterState state)
    status_t OMXCameraAdapter::doZoom(int index)
    status_t OMXCameraAdapter::advanceZoom()
    status_t OMXCameraAdapter::startSmoothZoom(int targetIdx)
    status_t OMXCameraAdapter::stopSmoothZoom()


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值