oyArray2d_s Struct Reference
[Image API]

2d data array

oyArray2d_s is a in memory data view. The array2d holds pointers to lines in the original memory blob. The arrays contained in array2d represent the samples. There is no information in which order the samples appear. No pixel layout or meaning is provided. Given the coordinates x and y, a samples memory adress can be accessed by &array2d[y][x] . This adress must be converted to the data type provided in oyArray2d_s::t. More...

#include <oyranos_alpha.h>


Data Fields

oyOBJECT_e type_
oyStruct_Copy_f copy
oyStruct_Release_f release
oyObject_s oy_
oyDATATYPE_e t
int width
int height
oyRegion_sdata_area
unsigned char ** array2d
int own_lines

Related Functions

(Note that these are not member functions.)

OYAPI oyArray2d_s *OYEXPORT oyArray2d_New (oyObject_s object)
 allocate a new Array2d object
OYAPI oyArray2d_s *OYEXPORT oyArray2d_Create (oyPointer data, int width, int height, oyDATATYPE_e type, oyObject_s object)
 allocate and initialise a oyArray2d_s object
OYAPI oyArray2d_s *OYEXPORT oyArray2d_Copy (oyArray2d_s *obj, oyObject_s object)
 copy or reference a Array2d object


Detailed Description

2d data array

oyArray2d_s is a in memory data view. The array2d holds pointers to lines in the original memory blob. The arrays contained in array2d represent the samples. There is no information in which order the samples appear. No pixel layout or meaning is provided. Given the coordinates x and y, a samples memory adress can be accessed by &array2d[y][x] . This adress must be converted to the data type provided in oyArray2d_s::t.

The oyArray2d_s::data pointer should be observed in order to be signaled about its invalidation.

inline_dotgraph_7.dot

Version:
Oyranos: 0.1.8
Since:
2008/08/23 (Oyranos: 0.1.8)
Date:
2008/08/23

Field Documentation

unsigned char** oyArray2d_s::array2d

oyStruct_Copy_f oyArray2d_s::copy

copy function

size of reserve pixels, x,y <= 0, width,height >= data view width,height

Referenced by oyImage_s::oyImage_FillArray().

height of actual data view

is *array2d owned by this object?

base object

Referenced by oyArray2d_Copy(), and oyImage_s::oyImage_FillArray().

oyStruct_Release_f oyArray2d_s::release

release function

Referenced by oyArray2d_New().

data type

struct type oyOBJECT_ARRAY2D_S

Referenced by oyArray2d_Copy().

width of actual data view

Referenced by oyImage_s::oyImage_FillArray().


Generated on Mon Jul 27 04:34:17 2009 for Oyranos by  doxygen 1.5.9