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
16class HVIFTranslator : public BaseTranslator {
17public:
18							HVIFTranslator();
19
20virtual	status_t			DerivedIdentify(BPositionIO *inSource,
21								const translation_format *inFormat,
22								BMessage *ioExtension, translator_info *outInfo,
23								uint32 outType);
24
25virtual	status_t			DerivedTranslate(BPositionIO *inSource,
26								const translator_info *inInfo,
27								BMessage *ioExtension, uint32 outType,
28								BPositionIO *outDestination, int32 baseType);
29
30virtual	BView *				NewConfigView(TranslatorSettings *settings);
31
32protected:
33virtual						~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