camera_frametype_t
The frame types identifiers for an image buffer
Synopsis:
#include <camera/camera_api.h>typedef enum {
CAMERA_FRAMETYPE_UNSPECIFIED,
CAMERA_FRAMETYPE_NV12,
CAMERA_FRAMETYPE_RGB8888,
CAMERA_FRAMETYPE_RGB888,
CAMERA_FRAMETYPE_GRAY8,
CAMERA_FRAMETYPE_BAYER,
CAMERA_FRAMETYPE_CBYCRY,
CAMERA_FRAMETYPE_COMPRESSEDVIDEO,
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,
CAMERA_FRAMETYPE_NV24_Y12,
CAMERA_FRAMETYPE_BGR8888,
CAMERA_FRAMETYPE_GRAY10P,
CAMERA_FRAMETYPE_GRAY12P,
CAMERA_FRAMETYPE_RGB_IR_8BIT,
CAMERA_FRAMETYPE_RGB_IR_10BIT,
CAMERA_FRAMETYPE_NV21,
CAMERA_FRAMETYPE_NV61,
CAMERA_FRAMETYPE_YCRCB420P,
CAMERA_FRAMETYPE_CBYCRY_10BIT,
CAMERA_FRAMETYPE_BAYER8_RGGB,
CAMERA_FRAMETYPE_BAYER12_GRBG,
CAMERA_FRAMETYPE_BAYER10_BGGR_PACKED,
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.
- CAMERA_FRAMETYPE_RGB8888
- The frame type is 32-bit RGBA data.
- CAMERA_FRAMETYPE_RGB888
- The frame type is 24-bit RGB data.
- CAMERA_FRAMETYPE_GRAY8
- The frame type is 8-bit grayscale image data.
- CAMERA_FRAMETYPE_BAYER
- The image is a 10-bit Bayer frame type.
- CAMERA_FRAMETYPE_CBYCRY
- The image is a YCbCr 4:2:2 packed frame type.
- CAMERA_FRAMETYPE_COMPRESSEDVIDEO
- The frame consists of compressed video data.
- CAMERA_FRAMETYPE_RGB565
- The frame type is 16-bit RGB data (5-bit red component, 6-bit green component, 5-bit blue component).
- CAMERA_FRAMETYPE_YCBCR420P
- The frame type is in YCbCr 4:2:0 format, where Y, Cb, and Cr are stored in separate planes, in that order.
- CAMERA_FRAMETYPE_YCBYCR
- The frame type is in YCbCr 4:2:2 packed format, where the pixel order is Y, Cb, Y, Cr.
- CAMERA_FRAMETYPE_YCRYCB
- The frame type is in YCbCr 4:2:2 packed format, where the pixel order is Y, Cr, Y, Cb.
- CAMERA_FRAMETYPE_CRYCBY
- The frame type is in YCbCr 4:2:2 packed format, where the pixel order is Cr, Y, Cb, Y.
- CAMERA_FRAMETYPE_ROI
- The frame type is a region-of-interest (ROI) image within a bigger buffer.
- CAMERA_FRAMETYPE_BAYER14_RGGB_PADLO16
- The frame type is 14-bit Bayer data in a 16-bit buffer.
- CAMERA_FRAMETYPE_NV16
- The frame type is NV16 formatted data.
- CAMERA_FRAMETYPE_NV24_Y12
- The frame type has NV24 formatted data but with the 12-bit Y plane padded to 16 bits.
- CAMERA_FRAMETYPE_BGR8888
- The frame type is 32-bit BGRA data.
- CAMERA_FRAMETYPE_GRAY10P
- The frame type is 10-bit packed grayscale image data without padding.
- CAMERA_FRAMETYPE_GRAY12P
- The frame type is 12-bit packed grayscale image data without padding.
- CAMERA_FRAMETYPE_RGB_IR_8BIT
- The image is an 8-bit RGB-IR frame in which infrared data are mixed with Bayer RGB data in the following pattern:
- CAMERA_FRAMETYPE_RGB_IR_10BIT
- The image is a 10-bit RGB-IR frame in which infrared data are mixed with Bayer RGB data in the following pattern:
- CAMERA_FRAMETYPE_NV21
- The image is an NV21 formatted frame.
- CAMERA_FRAMETYPE_NV61
- The image is an NV61 formatted frame.
- CAMERA_FRAMETYPE_YCRCB420P
- The frame type is in YCrCb 4:2:0 format where Y, Cr, and Cb are stored in separate planes, in that order.
- CAMERA_FRAMETYPE_CBYCRY_10BIT
- The image is a YCbCr 4:2:2 packed frame with each element comprising 10 bits, where the pixel order is Cb, Y, Cr, Y.
- CAMERA_FRAMETYPE_BAYER8_RGGB
- The image is an 8-bit Bayer frame type as per the following pattern:
- CAMERA_FRAMETYPE_BAYER12_GRBG
- The image is an 12-bit Bayer frame type as per the following pattern:
- CAMERA_FRAMETYPE_BAYER10_BGGR_PACKED
- The image is an 10-bit Bayer frame type as per the following pattern:
- CAMERA_FRAMETYPE_NUMFRAMETYPES
- An end-of-list identifier that indicates the number of frame types recognized by this library.
Library:
libcamapiDescription:
Frame types are used to distinguish between frame descriptors within a camera_buffer_t structure.
Page updated:
