SEDRIS Reference Manual
APPENDIX B - Transmittal Access Level 1 API
Functions
SE GetRearrangedImageData
extern SE_Status_Code
SE_GetRearrangedImageData
(
SE_Object image, (notes)
SE_Integer_Unsigned start_texel_horizontal, (notes)
SE_Integer_Unsigned start_texel_vertical, (notes)
SE_Integer_Unsigned start_texel_z, (notes)
SE_Integer_Unsigned stop_texel_horizontal, (notes)
SE_Integer_Unsigned stop_texel_vertical, (notes)
SE_Integer_Unsigned stop_texel_z, (notes)
SE_Short_Integer_Unsigned mip_level, (notes)
constSE_Desired_Image_Parameters *desired_image_parameters_ptr, (notes)
SE_Image_Data *data_out_ptr (notes)
);

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_STAT_CODE_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_STAT_CODE_UNRESOLVED_OUTPUT_OBJECT and *data_out_ptr is left unaltered, if image is unresolved.
SE_STAT_CODE_INACTIONABLE_FAILURE *data_out_ptr is not affected, if
  1. no image data has yet been specified for the image,
  2. if level_count or mip_extents_array are NULL in the image,
  3. the image's fields are otherwise invalid or cannot be retrieved,
  4. mip_level is out of range for the image, or
  5. any start or stop texels were invalid for the image, or
  6. desired_image_parameters_ptr is invalid,
  7. the size of the mip_level of the image cannot be computed
  8. the texels of the image cannot be retrieved,
  9. the byte_count is not correct for the given extents and the texels of this image.


Parameters Notes


image

 the <Image> instance

start_texel_horizontal

 the starting texel index (horizontal) of the
    <Image> data to be retrieved; must be less than or equal to
    stop_texel_horizontal, and must be valid for the specified MIP level
    of the <Image>.

start_texel_vertical

 the starting texel index (vertical) of the
    <Image> data to be retrieved; must be less than or equal to
    stop_texel_vertical, and must be valid for the specified MIP level
    of the <Image>.

start_texel_z

 the starting texel index (z) of the <Image> data to be
    retrieved; must be less than or equal to stop_texel_z. For a 2-D
    <Image>, start_texel_z will be ignored; otherwise, it must be valid for
    the specified MIP level of the <Image>.

stop_texel_horizontal

 the stopping texel index (horizontal) of the
    <Image> data to be retrieved; must be greater than or equal to
    start_texel_horizontal, and must be valid for the specified MIP level
    of the <Image>.

stop_texel_vertical

 the stopping texel index (vertical) of the
    <Image> data to be retrieved; must be greater than or equal to
    start_texel_vertical, and must be valid for the specified MIP level
    of the <Image>.

stop_texel_z

 the stopping texel index (z) of the <Image> data to be
    retrieved; must be greater than or equal to start_texel_z. For a 2-D
    <Image>, stop_texel_z will be ignored; otherwise, it must be valid for
    the specified MIP level of the <Image>.

mip_level

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

desired_image_parameters_ptr

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

data_out_ptr

 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 16, 2004 Copyright © 2004 SEDRIS