SEDRIS Reference Manual
APPENDIX B - Transmittal Access Level 1 API
Functions
SE GetRearrangedImageData
extern SE_Status_Code
SE_GetRearrangedImageData
(
SE_Object image,1
constSE_Image_Texel_Location_3D *start_texel,2
constSE_Image_Texel_Location_3D *stop_texel,3
SE_Short_Integer_Unsigned mip_level,4
constSE_Desired_Image_Parameters *desired_image_parameters_ptr,5
SE_Image_Data *data_out_ptr6
);

Definition

Copy (rearranging and sampling as necessary) the selected texels from the selected area of interest of the given Image into a space in memory that the user has already allocated to hold this data.

An <Image> is a set of 2- or 3-dimensional collections of texel values. The number of MIP levels for the <Image> defines the number of 2- or 3- dimensional collections in the <Image>. The definition of the <Image> will define the number of texels in each MIP level and the number of bits (not just bytes, but bits) for each texel.

NOTE: The first 8 parameters are identical to those of the Level 0 Read API SE_GetImageData() function.


Returns

SE_STATCODE_SUCCESS and image's texels are retrieved and copied into data_out_ptr in the specified manner, if valid parameters were passed in and all operations succeeded. (The original texels of image itself are unaffected.)
SE_STATCODE_UNRESOLVED_OUTPUT_OBJECT and *data_out_ptr is left unaltered, if image is unresolved.
SE_STATCODE_INACTIONABLE_FAILURE *data_out_ptr is not affected, if
  1. no image data has yet been specified for image,
  2. if level_count or mip_extents_array are NULL in image,
  3. image's fields are otherwise invalid or cannot be retrieved,
  4. mip_level is out of range for image, or
  5. any start or stop texels were invalid for image, or
  6. desired_image_parameters_ptr is invalid,
  7. the size of the mip_level of image cannot be computed
  8. the texels of image cannot be retrieved,
  9. the byte_count is not correct for the given extents and the texels of image.

Parameters Notes

1 the <Image> instance

2 the starting texel index of the <Image> instance data to be retrieved; must be less than or equal to stop_texel, and must be valid for the specified MIP level of image.

3 the stopping texel index of the <Image> instance data to be retrieved; must be greater than or equal to start_texel, and must be valid for the specified MIP level of image.

4 the MIP level of the <Image> from which the data will be returned. Each <Image> has at least one MIP level. Many <Image>s have multiple MIP levels. Data can only be retrieved from one MIP level at a time (only one MIP level per SE_GetImageData() call).

5 a pointer to a structure containing the "rearranging" parameters that the user must supply to rearrange the data of the <Image> instance which was passed in.

6 a pointer to a structure, already allocated in the user's memory space, which will be filled by this function with the appropriate values. This memory space is entirely under the user's control. The only time the API accesses this memory is when the API copies data into the memory during this function call.


Prev: SE_GetDataTableSubExtent. Next: SE_GetSizeOfImageData. Up:Index.

Last updated: July 26, 2006 Copyright © 2006 SEDRIS