1 /* 2 * Copyright (C) 2006-2008 Marcus Overhagen <marcus@overhagen.de>. All rights reserved. 3 * Copyright (C) 2008 Maurice Kalinowski <haiku@kaldience.com>. All rights reserved. 4 * 5 * Distributed under the terms of the MIT License. 6 */ 7 #ifndef __VIDEO_ADD_ON_H 8 #define __VIDEO_ADD_ON_H 9 10 11 #include <MediaAddOn.h> 12 13 14 class VideoWindowAddOn : public BMediaAddOn 15 { 16 public: 17 VideoWindowAddOn(image_id); 18 ~VideoWindowAddOn(); 19 20 bool WantsAutoStart(); 21 int32 CountFlavors(); 22 status_t GetFlavorAt(int32, const flavor_info**); 23 BMediaNode* InstantiateNodeFor(const flavor_info*, BMessage*, status_t*); 24 25 private: 26 flavor_info fInfo; 27 media_format fInputFormat; 28 }; 29 30 extern "C" BMediaAddOn *make_media_addon(image_id id); 31 32 #endif 33