2 * Copyright 2009, Stephan Aßmus <superstippi@gmx.de>
3 * All rights reserved. Distributed under the terms of the GNU L-GPL license.
5 #ifndef AV_FORMAT_READER_H
6 #define AV_FORMAT_READER_H
12 #include "ReaderPlugin.h"
15 class AVFormatReader
: public Reader
{
20 virtual const char* Copyright();
22 virtual status_t
Sniff(int32
* streamCount
);
24 virtual void GetFileFormatInfo(media_file_format
* mff
);
25 virtual status_t
GetMetaData(BMessage
* _data
);
27 virtual status_t
AllocateCookie(int32 streamNumber
,
29 virtual status_t
FreeCookie(void* cookie
);
31 virtual status_t
GetStreamInfo(void* cookie
, int64
* frameCount
,
32 bigtime_t
* duration
, media_format
* format
,
33 const void** infoBuffer
,
36 virtual status_t
GetStreamMetaData(void* cookie
,
39 virtual status_t
Seek(void* cookie
, uint32 flags
, int64
* frame
,
41 virtual status_t
FindKeyFrame(void* cookie
, uint32 flags
,
42 int64
* frame
, bigtime_t
* time
);
44 virtual status_t
GetNextChunk(void* cookie
,
45 const void** chunkBuffer
,
47 media_header
* mediaHeader
);
58 #endif // AV_FORMAT_READER_H