2 * Copyright 2008, Jérôme Duval. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef EXR_TRANSLATOR_H
6 #define EXR_TRANSLATOR_H
9 #include "BaseTranslator.h"
12 #define EXR_TRANSLATOR_VERSION B_TRANSLATION_MAKE_VERSION(0, 1, 0)
13 #define EXR_IMAGE_FORMAT 'EXRI'
15 #define EXR_IN_QUALITY 0.90
16 #define EXR_IN_CAPABILITY 0.90
17 #define BITS_IN_QUALITY 1
18 #define BITS_IN_CAPABILITY 1
20 #define EXR_OUT_QUALITY 0.8
21 #define EXR_OUT_CAPABILITY 0.8
22 #define BITS_OUT_QUALITY 1
23 #define BITS_OUT_CAPABILITY 0.9
26 class EXRTranslator
: public BaseTranslator
{
29 virtual ~EXRTranslator();
31 virtual status_t
DerivedIdentify(BPositionIO
*inSource
,
32 const translation_format
*inFormat
, BMessage
*ioExtension
,
33 translator_info
*outInfo
, uint32 outType
);
35 virtual status_t
DerivedTranslate(BPositionIO
*inSource
,
36 const translator_info
*inInfo
, BMessage
*ioExtension
,
37 uint32 outType
, BPositionIO
*outDestination
, int32 baseType
);
39 virtual BView
*NewConfigView(TranslatorSettings
*settings
);
44 #endif // EXR_TRANSLATOR_H