TIOVX User Guide
vx_image.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012-2016 The Khronos Group Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 
18 
19 #ifndef VX_IMAGE_H_
20 #define VX_IMAGE_H_
21 
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
37 typedef struct _tivx_image_map_info_t
38 {
40  uint8_t *map_addr;
48 
49 
50 
56 typedef struct _vx_image
57 {
67  uint32_t mem_offset[TIVX_IMAGE_MAX_PLANES];
69  uint32_t channel_plane;
70 } tivx_image_t;
71 
72 
73 
82 
90 void ownPrintImage(vx_image image);
91 
105  vx_image img, vx_uint32 width, vx_uint32 height, vx_df_image format);
106 
107 #ifdef __cplusplus
108 }
109 #endif
110 
111 #endif
vx_enum usage
Type of access being done by user, see vx_accessor_e.
Definition: vx_image.h:46
struct _vx_image * vx_image
uint32_t channel_plane
channel_plane index of parent in case image is created from channel
Definition: vx_image.h:69
tivx_reference_t base
reference object
Definition: vx_image.h:59
void ownPrintImage(vx_image image)
Print image info.
size_t vx_size
int32_t vx_enum
Image object internal state.
Definition: vx_image.h:56
The most basic type in the OpenVX system. Any type that inherits from tivx_reference_t must have a vx...
Definition: vx_reference.h:63
vx_enum vx_status
uint32_t vx_df_image
void ownPrintImageAddressing(const vx_imagepatch_addressing_t *addr)
Print image patch addressing info.
#define TIVX_IMAGE_MAX_PLANES
Max possible planes of data in an image.
Definition: tivx_obj_desc.h:91
uint8_t * map_addr
Address mapped via vxMapImagePatch()
Definition: vx_image.h:40
vx_status ownInitVirtualImage(vx_image img, vx_uint32 width, vx_uint32 height, vx_df_image format)
function to initialize virtual image's parameters
vx_size map_size
Size of memory region mapped via vxMapImagePatch()
Definition: vx_image.h:42
uint32_t vx_uint32
vx_enum mem_type
Type of memory mapped via vxMapImagePatch(), see vx_memory_type_e and tivx_memory_type_e.
Definition: vx_image.h:44
vx_image parent
A pointer to a parent image object.
Definition: vx_image.h:61
Information about a image mapping.
Definition: vx_image.h:37
#define TIVX_IMAGE_MAX_MAPS
Max possible mapping via vxMapImagePatch supported.
#define TIVX_IMAGE_MAX_SUBIMAGES
Max possible sub images from a image.