62 #ifndef _TIVX_EXT_RAW_IMAGE_H_ 63 #define _TIVX_EXT_RAW_IMAGE_H_ 76 #define TIVX_RAW_IMAGE "tivx_raw_image" 87 #define TIVX_TYPE_RAW_IMAGE 0x817 93 #define TIVX_ENUM_RAW_IMAGE_BUFFER_ACCESS (vx_enum)0x0 94 #define TIVX_ENUM_RAW_IMAGE_PIXEL_CONTAINER (vx_enum)0x1 99 #define TIVX_RAW_IMAGE_MAX_EXPOSURES 3 109 typedef struct _tivx_raw_image_format_t {
117 typedef struct _tivx_raw_image_create_params_t {
For accessing pointer to meta buffer only.
Queries an image for its width. Read-only. Use a vx_uint32 parameter.
Queries an image for its format (see tivx_raw_image_format_t). Read-only. Use a pointer to a tivx_raw...
#define TIVX_TYPE_RAW_IMAGE
The object type enumeration for raw images.
VX_API_ENTRY vx_status VX_API_CALL tivxCopyRawImagePatch(tivx_raw_image raw_image, const vx_rectangle_t *rect, vx_uint32 exposure_index, const vx_imagepatch_addressing_t *user_addr, void *user_ptr, vx_enum usage, vx_enum mem_type, vx_enum buffer_select)
Allows the application to copy a rectangular patch from/into a raw image object exposure.
volatile vx_uint32 num_exposures
The number of exposures contained in the sensor readout for a given timestamp. Max supported is TIVX_...
For accessing pointer to full allocated buffer (pixel buffer + meta buffer).
Queries an image for if its exposures are line interleaved in memory. Read-only. Use a vx_bool parame...
struct _tivx_raw_image * tivx_raw_image
The Raw Image Object. Raw Image is a strongly-typed container for RAW sensor images.
volatile vx_uint32 meta_height_after
Number of lines of meta data at bottom of sensor readout (after pixel data) (uses the same width as o...
VX_API_ENTRY vx_status VX_API_CALL tivxQueryRawImage(tivx_raw_image raw_image, vx_enum attribute, volatile void *ptr, vx_size size)
Queries the raw image for some specific information.
For accessing pointer to meta buffer only.
tivx_raw_image_pixel_container_e
The raw image pixel container enum.
#define VX_ENUM_BASE(vendor, id)
volatile vx_bool line_interleaved
A value of vx_true_e indicates that the exposures are line interleaved in a single contiguous buffer...
struct _vx_context * vx_context
Packed 12 bit mode; Three bytes per two pixels in memory.
tivx_raw_image_attribute_e
The raw image attributes.
Two bytes per pixel in memory.
#define VX_ATTRIBUTE_BASE(vendor, object)
volatile vx_uint32 meta_height_before
Number of lines of meta data at top of sensor readout (before pixel data) (uses the same width as ori...
Queries an image for its number of exposures. Read-only. Use a vx_uint32 parameter.
volatile vx_uint32 height
The image height in lines (not including meta rows).
Queries an image for its meta height at bottom of readout. Read-only. Use a vx_uint32 parameter...
#define TIVX_ENUM_RAW_IMAGE_PIXEL_CONTAINER
A tivx_raw_image_pixel_container_e.
VX_API_ENTRY vx_status VX_API_CALL tivxMapRawImagePatch(tivx_raw_image raw_image, const vx_rectangle_t *rect, vx_uint32 exposure_index, vx_map_id *map_id, vx_imagepatch_addressing_t *addr, void **user_ptr, vx_enum usage, vx_enum mem_type, vx_enum buffer_select)
Allows the application to get direct access to a rectangular patch of a raw image object exposure...
Queries an image for its meta height at top of readout. Read-only. Use a vx_uint32 parameter...
#define TIVX_RAW_IMAGE_MAX_EXPOSURES
Maximum number of RAW image exposures that can be contained in a raw image object.
Queries an image for its addressing structure. Read-only. Use a vx_imagepatch_addressing_t[TIVX_RAW_I...
VX_API_ENTRY vx_status VX_API_CALL tivxUnmapRawImagePatch(tivx_raw_image raw_image, vx_map_id map_id)
Unmap and commit potential changes to a raw image object patch that were previously mapped...
tivx_raw_image_buffer_access_e
The raw image buffer access enum.
VX_API_ENTRY vx_status VX_API_CALL tivxReleaseRawImage(tivx_raw_image *raw_image)
Releases a reference of a raw image. The object may not be garbage collected until its total referenc...
volatile vx_uint32 width
The image width in pixels.
#define TIVX_ENUM_RAW_IMAGE_BUFFER_ACCESS
The enum type enumeration for raw images.
The raw image create params structure that is given to the tivxCreateRawImage function.
Queries an image for its height. Read-only. Use a vx_uint32 parameter.
vx_status(* VX_API_CALL)(vx_reference *ref)
Callback type used to register release callbacks from object dervied from references.
For accessing pointer to pixel buffer only.
One byte per pixel in memory.
VX_API_ENTRY tivx_raw_image VX_API_CALL tivxCreateRawImage(vx_context context, tivx_raw_image_create_params_t *params)
Creates an opaque reference to a raw sensor image (including multi-exposure and metadata).