mirror of
https://github.com/microsoft/DirectXTex
synced 2024-11-22 04:20:07 +00:00
Updated HDR I O Functions (markdown)
parent
732e9a24de
commit
9600cd74d4
@ -1,6 +1,6 @@
|
|||||||
The [Radiance RGBE](https://en.wikipedia.org/wiki/RGBE_image_format) (``.HDR``) format is commonly used as a texture source file format in game development for high-dynamic range images, but this format is not supported by any built-in WIC codec. These functions implement a simple reader and writer for this format.
|
The [Radiance RGBE](https://en.wikipedia.org/wiki/RGBE_image_format) (``.HDR``) format is commonly used as a texture source file format in game development for high-dynamic range images, but this format is not supported by any built-in WIC codec. These functions implement a simple reader and writer for this format.
|
||||||
|
|
||||||
#GetMetadataFromHDRMemory, GetMetadataFromHDRFile
|
# GetMetadataFromHDRMemory, GetMetadataFromHDRFile
|
||||||
Returns the _TexMetadata_ from a ``.HDR`` file.
|
Returns the _TexMetadata_ from a ``.HDR`` file.
|
||||||
|
|
||||||
HRESULT GetMetadataFromHDRMemory( const void* pSource, size_t size,
|
HRESULT GetMetadataFromHDRMemory( const void* pSource, size_t size,
|
||||||
@ -9,7 +9,7 @@ Returns the _TexMetadata_ from a ``.HDR`` file.
|
|||||||
HRESULT GetMetadataFromHDRFile( const wchar_t* szFile,
|
HRESULT GetMetadataFromHDRFile( const wchar_t* szFile,
|
||||||
TexMetadata& metadata );
|
TexMetadata& metadata );
|
||||||
|
|
||||||
#LoadFromHDRMemory, LoadFromHDRFile
|
# LoadFromHDRMemory, LoadFromHDRFile
|
||||||
Loads a ``.HDR`` file.
|
Loads a ``.HDR`` file.
|
||||||
|
|
||||||
HRESULT LoadFromHDRMemory( const void* pSource, size_t size,
|
HRESULT LoadFromHDRMemory( const void* pSource, size_t size,
|
||||||
@ -21,7 +21,7 @@ Loads a ``.HDR`` file.
|
|||||||
* The data is always loaded as ``R32G32B32A32_FLOAT`` with the alpha channel always set to 1.
|
* The data is always loaded as ``R32G32B32A32_FLOAT`` with the alpha channel always set to 1.
|
||||||
* If the file contains a ``32-bit_rle_xyze`` header, no color space conversions are performed and the data is read "as is".
|
* If the file contains a ``32-bit_rle_xyze`` header, no color space conversions are performed and the data is read "as is".
|
||||||
|
|
||||||
#SaveToHDRMemory, SaveToHDRFile
|
# SaveToHDRMemory, SaveToHDRFile
|
||||||
Saves an image to a ``.HDR`` file.
|
Saves an image to a ``.HDR`` file.
|
||||||
|
|
||||||
HRESULT SaveToHDRMemory( const Image& image, Blob& blob );
|
HRESULT SaveToHDRMemory( const Image& image, Blob& blob );
|
||||||
|
Loading…
Reference in New Issue
Block a user