RidgeRun Camera App: Difference between revisions

From RidgeRun Developer Wiki
Line 5: Line 5:
Through the wrapper developed for the Vala camera interface, it's possible to get access to different functions that may control its behavior and properties. Some of these and their expected behavior are documented below:
Through the wrapper developed for the Vala camera interface, it's possible to get access to different functions that may control its behavior and properties. Some of these and their expected behavior are documented below:


* '''CameraApp Library Initialization''': The library provides support for easy initialization, and even offers and auto loop creation option for those applications that might require the library to create its own glib main loop, in case the application doesn't run its own main loop.
* '''CameraApp Library Initialization''':
* '''Camera Linking''': Through the cameraHandler type, a camera can be linked to be used by all the available functions described below:
:The library provides support for easy initialization, and even offers and auto loop creation option for those applications that might require the library to create its own glib main loop, in case the application doesn't run its own main loop.
* '''Starting and stopping the camera''': Through the very simple and pretty much auto-explanatory camera_start and stop functions, the camera can be either started or stopped.  
* '''Camera Linking''':
:Through the cameraHandler type, a camera can be linked to be used by all the available functions described below:
* '''Starting and stopping the camera'''
:Through the very simple and pretty much auto-explanatory camera_start and stop functions, the camera can be either started or stopped.  
* '''Setting camera properties''': It's also possible to set different properties related to the camera through the functions provided:
* '''Setting camera properties''': It's also possible to set different properties related to the camera through the functions provided:
** '''View Finder''': Sets the camera's view finder property.
** '''View Finder''': Sets the camera's view finder property.
Line 14: Line 17:
** '''Image Name''': Sets the target image name value.
** '''Image Name''': Sets the target image name value.
** '''Camera Mode''': Sets the camera mode (snapshots, recording, etc...)
** '''Camera Mode''': Sets the camera mode (snapshots, recording, etc...)
* '''Taking Snapshots''': Taking a snapshot is straightforward with the camera_snapshot function.
* '''Taking Snapshots'''
* '''Recording Video''': Similarly, video recording can be done either by using the respective start and stop functions, or by using the timed recording function, which allows to preemptively specify the duration of the recording without having to handle the duration elsewhere.
:Taking a snapshot is straightforward with the camera_snapshot function.
* '''Setting video properties''': In a similar fashion to the properties describe above, the ones referring to recording can also be set:
* '''Recording Video'''
** '''Video Encoder''': Sets the camera video encoder.
:Similarly, video recording can be done either by using the respective start and stop functions, or by using the timed recording function, which allows to preemptively specify the duration of the recording without having to handle the duration elsewhere.
** '''Video Muxer''': Sets the camera video muxer.
* '''Setting video properties'''
:In a similar fashion to the properties describe above, the ones referring to recording can also be set:
** '''Video Encoder'''
:Sets the camera video encoder.
** '''Video Muxer'''
:Sets the camera video muxer.

Revision as of 15:06, 19 May 2011

Introduction

Implementation

Available Functionality

Through the wrapper developed for the Vala camera interface, it's possible to get access to different functions that may control its behavior and properties. Some of these and their expected behavior are documented below:

  • CameraApp Library Initialization:
The library provides support for easy initialization, and even offers and auto loop creation option for those applications that might require the library to create its own glib main loop, in case the application doesn't run its own main loop.
  • Camera Linking:
Through the cameraHandler type, a camera can be linked to be used by all the available functions described below:
  • Starting and stopping the camera:
Through the very simple and pretty much auto-explanatory camera_start and stop functions, the camera can be either started or stopped.
  • Setting camera properties: It's also possible to set different properties related to the camera through the functions provided:
    • View Finder: Sets the camera's view finder property.
    • Image Encoder: Sets the image encoder used by the camera.
    • Image Muxer: Sets the image muxer used by the camera.
    • Image Name: Sets the target image name value.
    • Camera Mode: Sets the camera mode (snapshots, recording, etc...)
  • Taking Snapshots:
Taking a snapshot is straightforward with the camera_snapshot function.
  • Recording Video:
Similarly, video recording can be done either by using the respective start and stop functions, or by using the timed recording function, which allows to preemptively specify the duration of the recording without having to handle the duration elsewhere.
  • Setting video properties:
In a similar fashion to the properties describe above, the ones referring to recording can also be set:
    • Video Encoder:
Sets the camera video encoder.
    • Video Muxer:
Sets the camera video muxer.