Tizen 2.3 - Native Application API ?· Tizen 2.3 - Native Application API Camera: Controlling a Camera…

  • Published on
    04-Jun-2018

  • View
    212

  • Download
    0

Embed Size (px)

Transcript

  • Tizen 2.3 - Native Application API

    Camera: Controlling a Camera Device

  • Ajou Univrsity

    Contents

    Introduction to Tizen Camera API Main Features Camera State Changes

    Using Camera API Initalizing the Camera Taking a Photo

  • Ajou Univrsity

    Introduction to Tizen Camera API

  • Ajou Univrsity

    Main Features

    Offers basic camera features preview and capture

    Main features of Camera API: Preview images

    Supports various pixel formats NV12, NV12T, NV16 Preview at frame rate rotate/flip the preview

    Capture and save images Control camera settings

    Contrast Exposure Brightness Effects ...

    Simultaneous use of multiple sensors(front/backside camera) is not allowed

  • Ajou Univrsity

    Camera State Changes

    Changes of Camera state(Camera lifecylce)

    None Created

    Previewing Capturing

    Captured

    camera_create()

    camera_destroy()

    camera_start_preview()

    camera_stop_preview()

    camera_start_preview()

    camera_capture_start()

    Automatic transition

  • Ajou Univrsity

    Using Camera API

  • Ajou Univrsity

    Initializing the Camera

    Initializing the camera

  • Ajou Univrsity

    Initializing the Camera

    First, include the header file

    Create a structure for storing camera handle global data

    Example

    Create additional variables to specify if taking photos and auto-focusing are allowed

    Create a handle for the camera using the camera_create() function

    Specifies the camera sensor (front/backside camera)

  • Ajou Univrsity

    Initializing the Camera

    The camera_create() function will return negative error value if it fails

    After creating a camera handle, camera_get_state() function will notify the current state of the camera

    If the state is not camera_state_created Reinitialize the camera

  • Ajou Univrsity

    Initializing the Camera

    Use camera_attr_set_image_quality() to set image quality of the camera

    Set the display for showing preview images Must be done before previewing

    Supported value for quality: 1~100

  • Ajou Univrsity

    References

    Tizen Camera Guide - https://developer.tizen.org/ko/docu

    mentation/guides/native-application

    Tizen Camera Tutorial - https://developer.tizen.org/ko/doc

    umentation/tutorials/native-application/multimedia/camer

    a

    Tizen Native API - https://developer.tizen.org/dev-guide/2

    .3.0/org.tizen.native.mobile.apireference/group__CAPI__ME

    DIA__CAMERA__MODULE.html#ga3ddd0982778fdfacd369

    4d643d1610ac

    https://developer.tizen.org/ko/documentation/guides/native-applicationhttps://developer.tizen.org/ko/documentation/guides/native-applicationhttps://developer.tizen.org/ko/documentation/guides/native-applicationhttps://developer.tizen.org/ko/documentation/guides/native-applicationhttps://developer.tizen.org/ko/documentation/guides/native-applicationhttps://developer.tizen.org/ko/documentation/tutorials/native-application/multimedia/camerahttps://developer.tizen.org/ko/documentation/tutorials/native-application/multimedia/camerahttps://developer.tizen.org/ko/documentation/tutorials/native-application/multimedia/camerahttps://developer.tizen.org/ko/documentation/tutorials/native-application/multimedia/camerahttps://developer.tizen.org/ko/documentation/tutorials/native-application/multimedia/camerahttps://developer.tizen.org/ko/documentation/tutorials/native-application/multimedia/camerahttps://developer.tizen.org/dev-guide/2.3.0/org.tizen.native.mobile.apireference/group__CAPI__MEDIA__CAMERA__MODULE.html#ga3ddd0982778fdfacd3694d643d1610achttps://developer.tizen.org/dev-guide/2.3.0/org.tizen.native.mobile.apireference/group__CAPI__MEDIA__CAMERA__MODULE.html#ga3ddd0982778fdfacd3694d643d1610achttps://developer.tizen.org/dev-guide/2.3.0/org.tizen.native.mobile.apireference/group__CAPI__MEDIA__CAMERA__MODULE.html#ga3ddd0982778fdfacd3694d643d1610achttps://developer.tizen.org/dev-guide/2.3.0/org.tizen.native.mobile.apireference/group__CAPI__MEDIA__CAMERA__MODULE.html#ga3ddd0982778fdfacd3694d643d1610achttps://developer.tizen.org/dev-guide/2.3.0/org.tizen.native.mobile.apireference/group__CAPI__MEDIA__CAMERA__MODULE.html#ga3ddd0982778fdfacd3694d643d1610achttps://developer.tizen.org/dev-guide/2.3.0/org.tizen.native.mobile.apireference/group__CAPI__MEDIA__CAMERA__MODULE.html#ga3ddd0982778fdfacd3694d643d1610achttps://developer.tizen.org/dev-guide/2.3.0/org.tizen.native.mobile.apireference/group__CAPI__MEDIA__CAMERA__MODULE.html#ga3ddd0982778fdfacd3694d643d1610ac

Recommended

View more >