vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / translators / exr / EXRTranslator.h
blobd2449550c20c4630555cb6a2a9dfe38a4ab1bfb9
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
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 {
27 public:
28 EXRTranslator();
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);
41 private:
44 #endif // EXR_TRANSLATOR_H