xref: /haiku/src/apps/mediaconverter/MediaFileInfo.h (revision 21258e2674226d6aa732321b6f8494841895af5f)
1 /*
2 	Copyright 2010, Haiku, Inc. All Rights Reserved.
3 	This file may be used under the terms of the MIT License.
4 */
5 #ifndef MEDIA_FILE_INFO_H
6 #define MEDIA_FILE_INFO_H
7 
8 
9 #include <MediaFile.h>
10 #include <String.h>
11 
12 
13 struct MediaInfo {
14 	BString format;
15 	BString details;
16 };
17 
18 
19 struct MediaFileInfo {
20 				MediaFileInfo(BMediaFile* file = NULL);
21 	status_t	LoadInfo(BMediaFile* file);
22 
23 	MediaInfo	audio;
24 	MediaInfo	video;
25 	BString		duration;
26 	bigtime_t	useconds;
27 
28 private:
29 	void		_Reset();
30 };
31 
32 #endif // MEDIA_FILE_INFO_H
33