1/* 2 * Copyright 2008, J��r��me Duval. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef EXR_TRANSLATOR_H 6#define EXR_TRANSLATOR_H 7 8 9#include "BaseTranslator.h" 10 11 12#define EXR_TRANSLATOR_VERSION B_TRANSLATION_MAKE_VERSION(0, 1, 0) 13#define EXR_IMAGE_FORMAT 'EXRI' 14 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 19 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 24 25 26class EXRTranslator : public BaseTranslator { 27 public: 28 EXRTranslator(); 29 virtual ~EXRTranslator(); 30 31 virtual status_t DerivedIdentify(BPositionIO *inSource, 32 const translation_format *inFormat, BMessage *ioExtension, 33 translator_info *outInfo, uint32 outType); 34 35 virtual status_t DerivedTranslate(BPositionIO *inSource, 36 const translator_info *inInfo, BMessage *ioExtension, 37 uint32 outType, BPositionIO *outDestination, int32 baseType); 38 39 virtual BView *NewConfigView(TranslatorSettings *settings); 40 41 private: 42}; 43 44#endif // EXR_TRANSLATOR_H 45 46