camera_frametype_t

The frame types identifiers for an image buffer.

Synopsis:

#include <camera/camera_api.h>
 
typedef enum {
      CAMERA_FRAMETYPE_UNSPECIFIED = 0   
      CAMERA_FRAMETYPE_NV12   
      CAMERA_FRAMETYPE_RGB8888   
      CAMERA_FRAMETYPE_RGB888   
      CAMERA_FRAMETYPE_JPEG   
      CAMERA_FRAMETYPE_GRAY8   
      CAMERA_FRAMETYPE_METADATA   
      CAMERA_FRAMETYPE_BAYER   
      CAMERA_FRAMETYPE_CBYCRY   
      CAMERA_FRAMETYPE_COMPRESSEDVIDEO   
      CAMERA_FRAMETYPE_COMPRESSEDAUDIO   
      CAMERA_FRAMETYPE_RGB565   
      CAMERA_FRAMETYPE_NUMFRAMETYPES   
} camera_frametype_t;

Since:

BlackBerry 10.0.0

Data:

CAMERA_FRAMETYPE_UNSPECIFIED
The frame type has no associated format, no recognized format, or is unformatted.
CAMERA_FRAMETYPE_NV12
The frame type is NV12 formatted data.

The camera_frame_nv12_t structure represents this frame type.

CAMERA_FRAMETYPE_RGB8888
The frame type is 32-bit ARGB data.

The camera_frame_rgb8888_t structure represents this frame type.

CAMERA_FRAMETYPE_RGB888
The frame type is 24-bit RGB data.

The camera_frame_rgb888_t structure represents this frame type.

CAMERA_FRAMETYPE_JPEG
The frame type is JPEG image data.

The camera_frame_jpeg_t structure represents this frame type.

CAMERA_FRAMETYPE_GRAY8
The frame type is 8-bit gray-scale image data.

The camera_frame_gray8_t structure represents this frame type.

CAMERA_FRAMETYPE_METADATA
The frame type is metadata.

The camera_frame_meta_t structure represents this frame type.

CAMERA_FRAMETYPE_BAYER
The image is a 10-bit Bayer frame type.

The camera_frame_bayer_t structure represents this frame type.

CAMERA_FRAMETYPE_CBYCRY
The image is a YCbCr 4:2:2 packed frame type.

The camera_frame_cbycry_t structure represents this frame type.

CAMERA_FRAMETYPE_COMPRESSEDVIDEO
The frame consists of compressed video data.

The camera_frame_compressedvideo_t structure represents this frame type.

CAMERA_FRAMETYPE_COMPRESSEDAUDIO
The frame consists of compressed audio data.

The camera_frame_compressedaudio_t structure represents this frame type.

CAMERA_FRAMETYPE_RGB565
The frame type is 16-bit RGB data (5-bit red component, 6-bit green component, 5-bit blue component).

The camera_frame_rgb565_t structure represents this frame type.

Since: BlackBerry 10.2.0

CAMERA_FRAMETYPE_NUMFRAMETYPES
An end-of-list identifier.

Library:

libcamapi (For the qcc command, use the -l camapi option to link against this library)

Description:

Frame types are used to distinguish between frame descriptors within a camera_buffer_t structure.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus