xref: /haiku/src/add-ons/translators/hvif/HVIFTranslator.h (revision fce4895d1884da5ae6fb299d23c735c598e690b1)
1 /*
2  * Copyright 2009, Haiku, Inc.
3  * Distributed under the terms of the MIT license.
4  *
5  * Authors:
6  *		Michael Lotz, mmlr@mlotz.ch
7  */
8 #ifndef HVIF_TRANSLATOR_H
9 #define HVIF_TRANSLATOR_H
10 
11 #include "BaseTranslator.h"
12 
13 #define HVIF_TRANSLATOR_VERSION		B_TRANSLATION_MAKE_VERSION(1, 0, 0)
14 #define HVIF_SETTING_RENDER_SIZE	"hvif /renderSize"
15 
16 class HVIFTranslator : public BaseTranslator {
17 public:
18 							HVIFTranslator();
19 
20 virtual	status_t			DerivedIdentify(BPositionIO *inSource,
21 								const translation_format *inFormat,
22 								BMessage *ioExtension, translator_info *outInfo,
23 								uint32 outType);
24 
25 virtual	status_t			DerivedTranslate(BPositionIO *inSource,
26 								const translator_info *inInfo,
27 								BMessage *ioExtension, uint32 outType,
28 								BPositionIO *outDestination, int32 baseType);
29 
30 virtual	BView *				NewConfigView(TranslatorSettings *settings);
31 
32 protected:
33 virtual						~HVIFTranslator();
34 			// this is protected because the object is deleted by the
35 			// Release() function instead of being deleted directly by
36 			// the user
37 };
38 
39 #endif // HVIF_TRANSLATOR_H
40