Gnash
0.8.11dev
libmedia
haiku
MediaParserHaiku.h
Go to the documentation of this file.
1
// MediaParserHaiku.h: Haiku media parsers, for Gnash
2
//
3
// Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012
4
// Free Software Foundation, Inc.
5
//
6
// This program is free software; you can redistribute it and/or modify
7
// it under the terms of the GNU General Public License as published by
8
// the Free Software Foundation; either version 3 of the License, or
9
// (at your option) any later version.
10
//
11
// This program is distributed in the hope that it will be useful,
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
// GNU General Public License for more details.
15
//
16
// You should have received a copy of the GNU General Public License
17
// along with this program; if not, write to the Free Software
18
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
20
#ifndef GNASH_MEDIAPARSER_HAIKU_H
21
#define GNASH_MEDIAPARSER_HAIKU_H
22
23
#include "
MediaParser.h
"
// for inheritance
24
25
#include <memory>
26
27
// Forward declaration
28
namespace
gnash
{
29
class
IOChannel;
30
}
31
32
namespace
gnash
{
33
namespace
media {
34
namespace
haiku {
35
37
class
MediaParserHaiku
:
public
MediaParser
38
{
39
public
:
40
42
//
45
MediaParserHaiku
(std::shared_ptr<IOChannel> stream);
46
47
~MediaParserHaiku
();
48
49
// See dox in MediaParser.h
50
virtual
bool
seek
(std::uint32_t&);
51
52
// See dox in MediaParser.h
53
virtual
bool
parseNextChunk
();
54
55
// See dox in MediaParser.h
56
virtual
std::uint64_t
getBytesLoaded
()
const
;
57
};
58
59
60
}
// gnash.media.haiku namespace
61
}
// gnash.media namespace
62
}
// namespace gnash
63
64
#endif // __MEDIAPARSER_HAIKU_H__
gnash::media::haiku::MediaParserHaiku::MediaParserHaiku
MediaParserHaiku(std::shared_ptr< IOChannel > stream)
Construct a haiku media kit based media parser for given stream.
Definition:
MediaParserHaiku.cpp:39
gnash::media::haiku::MediaParserHaiku::getBytesLoaded
virtual std::uint64_t getBytesLoaded() const
Return number of bytes parsed so far.
Definition:
MediaParserHaiku.cpp:63
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition:
dbus_ext.cpp:40
gnash::media::haiku::MediaParserHaiku::~MediaParserHaiku
~MediaParserHaiku()
Definition:
MediaParserHaiku.cpp:45
gnash::media::haiku::MediaParserHaiku::parseNextChunk
virtual bool parseNextChunk()
Parse next chunk of input.
Definition:
MediaParserHaiku.cpp:57
gnash::media::MediaParser
The MediaParser class provides cursor-based access to encoded media frames.
Definition:
MediaParser.h:472
gnash::media::haiku::MediaParserHaiku::seek
virtual bool seek(std::uint32_t &)
Seeks to the closest possible position the given position, and returns the new position.
Definition:
MediaParserHaiku.cpp:51
MediaParser.h
gnash::media::haiku::MediaParserHaiku
Haiku media kit based MediaParser.
Definition:
MediaParserHaiku.h:37
Generated by
1.8.12