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_GRAY8,
    CAMERA_FRAMETYPE_METADATA,
    CAMERA_FRAMETYPE_BAYER,
    CAMERA_FRAMETYPE_CBYCRY,
    CAMERA_FRAMETYPE_COMPRESSEDVIDEO,
    CAMERA_FRAMETYPE_COMPRESSEDAUDIO,
    CAMERA_FRAMETYPE_RGB565,
    CAMERA_FRAMETYPE_YCBCR420P,
    CAMERA_FRAMETYPE_YCBYCR,
    CAMERA_FRAMETYPE_YCRYCB,
    CAMERA_FRAMETYPE_CRYCBY,
    CAMERA_FRAMETYPE_ROI,
    CAMERA_FRAMETYPE_BAYER14_RGGB_PADLO16,
    CAMERA_FRAMETYPE_NV16 = 27,
    CAMERA_FRAMETYPE_NUMFRAMETYPES
} camera_frametype_t;

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_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.

CAMERA_FRAMETYPE_YCBCR420P
The frame type is a 4:2:0 YCbCr formats where Y, Cb and Cr are stored in separate planes.

The camera_frame_ycbcr420p_t structure represents this frame type.

CAMERA_FRAMETYPE_YCBYCR
The image is a YCbCr 4:2:2 packed frame type where the pixel order is Y, Cb, Y, Cr.

The camera_frame_ycbycr_t structure represents this frame type.

CAMERA_FRAMETYPE_YCRYCB
The image is a YCbCr 4:2:2 packed frame type where the pixel order is Y, Cr, Y, Cb.

The camera_frame_ycrycb_t structure represents this frame type.

CAMERA_FRAMETYPE_CRYCBY
The image is a YCbCr 4:2:2 packed frame type where the pixel order is Cr, Y, Cb, Y.

The camera_frame_crycby_t structure represents this frame type.

CAMERA_FRAMETYPE_ROI
The image is a region-of-interest (ROI) image within a bigger buffer.

The camera_frame_roi_t structure represents this frame type.

CAMERA_FRAMETYPE_BAYER14_RGGB_PADLO16
The image is 14-bit Bayer data in a 16-bit buffer.
The camera_frame_bayer_t structure represents this frame type, and is filled in as follows :
format = CAMERA_BAYERFORMAT_RGGB
packing = 16
bpp = 14
le = false
cadence_length = 16
pixels_per_cadence = 1
justification = CAMERA_BAYERJUSTIFY_LEFT_BIT0LSB,
Bit:          FEDCBA9876543210 FEDCBA9876543210
Scanline n:   RRRRRRRRRRRRRR00 GGGGGGGGGGGGGG00
Scanline n+1: GGGGGGGGGGGGGG00 BBBBBBBBBBBBBB00
CAMERA_FRAMETYPE_NV16
The frame type is NV16 formatted data.

The camera_frame_nv12_t (both are semiplanar) structure represents this frame type.

CAMERA_FRAMETYPE_NUMFRAMETYPES
An end-of-list identifier that indicates the number of frame types recognized by this library.

Library:

libcamapi

Description:

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