C# Class HDR2RAW.Program

Show file Open project: Patapom/GodComplex

Public Methods

Method Description
DecodeRGBEImage ( PF_RGBE _Source, bool _bSourceIsXYZ, bool _bTargetNeedsXYZ ) : ].Vector4[

Decodes a RGBE formatted image into a plain floating-point image

DecodeRGBEImage ( PF_RGBE _Source, bool _bSourceIsXYZ, System.Vector4 _Target, bool _bTargetNeedsXYZ ) : void

Decodes a RGBE formatted image into a plain floating-point image

LoadAndDecodeHDRFormat ( byte _HDRFormatBinary, bool _bTargetNeedsXYZ ) : ].Vector4[

Loads a bitmap in .HDR format into a Vector4 array directly useable by the image constructor

LoadHDRFormat ( byte _HDRFormatBinary, bool &_bIsXYZ ) : ].PF_RGBE[

Loads a bitmap in .HDR format into a RGBE array

Protected Methods

Method Description
RadianceFileFindInHeader ( List _HeaderLines, string _Search ) : string

Private Methods

Method Description
Main ( string args ) : void

Method Details

DecodeRGBEImage() public static method

Decodes a RGBE formatted image into a plain floating-point image
public static DecodeRGBEImage ( PF_RGBE _Source, bool _bSourceIsXYZ, bool _bTargetNeedsXYZ ) : ].Vector4[
_Source PF_RGBE The source RGBE formatted image
_bSourceIsXYZ bool Tells if the source image is encoded as XYZE rather than RGBE
_bTargetNeedsXYZ bool Tells if the target needs to be in CIE XYZ space (true) or RGB (false)
return ].Vector4[

DecodeRGBEImage() public static method

Decodes a RGBE formatted image into a plain floating-point image
public static DecodeRGBEImage ( PF_RGBE _Source, bool _bSourceIsXYZ, System.Vector4 _Target, bool _bTargetNeedsXYZ ) : void
_Source PF_RGBE The source RGBE formatted image
_bSourceIsXYZ bool Tells if the source image is encoded as XYZE rather than RGBE
_Target System.Vector4 The target Vector4 image
_bTargetNeedsXYZ bool Tells if the target needs to be in CIE XYZ space (true) or RGB (false)
return void

LoadAndDecodeHDRFormat() public static method

Loads a bitmap in .HDR format into a Vector4 array directly useable by the image constructor
public static LoadAndDecodeHDRFormat ( byte _HDRFormatBinary, bool _bTargetNeedsXYZ ) : ].Vector4[
_HDRFormatBinary byte
_bTargetNeedsXYZ bool Tells if the target needs to be in CIE XYZ space (true) or RGB (false)
return ].Vector4[

LoadHDRFormat() public static method

Loads a bitmap in .HDR format into a RGBE array
public static LoadHDRFormat ( byte _HDRFormatBinary, bool &_bIsXYZ ) : ].PF_RGBE[
_HDRFormatBinary byte
_bIsXYZ bool Tells if the image is encoded as XYZE rather than RGBE
return ].PF_RGBE[

RadianceFileFindInHeader() protected static method

protected static RadianceFileFindInHeader ( List _HeaderLines, string _Search ) : string
_HeaderLines List
_Search string
return string