PSDTranslator: fix types
This commit is contained in:
@@ -113,10 +113,10 @@ PSDLoader::ColorFormatName(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int32
|
psd_color_format
|
||||||
PSDLoader::_ColorFormat(void)
|
PSDLoader::_ColorFormat(void)
|
||||||
{
|
{
|
||||||
int32 format = PSD_COLOR_FORMAT_UNSUPPORTED;
|
psd_color_format format = PSD_COLOR_FORMAT_UNSUPPORTED;
|
||||||
if (!fLoaded)
|
if (!fLoaded)
|
||||||
return format;
|
return format;
|
||||||
|
|
||||||
@@ -159,7 +159,7 @@ PSDLoader::_ColorFormat(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
status_t
|
||||||
PSDLoader::Decode(BPositionIO *target)
|
PSDLoader::Decode(BPositionIO *target)
|
||||||
{
|
{
|
||||||
if (!IsSupported())
|
if (!IsSupported())
|
||||||
@@ -235,7 +235,7 @@ PSDLoader::Decode(BPositionIO *target)
|
|||||||
|
|
||||||
uint8 *lineData = new uint8[fWidth * sizeof(uint32)];
|
uint8 *lineData = new uint8[fWidth * sizeof(uint32)];
|
||||||
|
|
||||||
int32 colorFormat = _ColorFormat();
|
psd_color_format colorFormat = _ColorFormat();
|
||||||
|
|
||||||
switch (colorFormat) {
|
switch (colorFormat) {
|
||||||
case PSD_COLOR_FORMAT_GRAY_8:
|
case PSD_COLOR_FORMAT_GRAY_8:
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ public:
|
|||||||
PSDLoader(BPositionIO *stream);
|
PSDLoader(BPositionIO *stream);
|
||||||
~PSDLoader();
|
~PSDLoader();
|
||||||
|
|
||||||
int Decode(BPositionIO *target);
|
status_t Decode(BPositionIO *target);
|
||||||
bool IsLoaded(void);
|
bool IsLoaded(void);
|
||||||
bool IsSupported(void);
|
bool IsSupported(void);
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ private:
|
|||||||
int8 _GetInt8FromStream(BPositionIO *in);
|
int8 _GetInt8FromStream(BPositionIO *in);
|
||||||
void _SkipStreamBlock(BPositionIO *in, size_t count);
|
void _SkipStreamBlock(BPositionIO *in, size_t count);
|
||||||
|
|
||||||
int32 _ColorFormat(void);
|
psd_color_format _ColorFormat(void);
|
||||||
|
|
||||||
BPositionIO *fStream;
|
BPositionIO *fStream;
|
||||||
uint8 *fStreamBuffer;
|
uint8 *fStreamBuffer;
|
||||||
|
|||||||
Reference in New Issue
Block a user