1 /*
2 * Copyright 2004, Marcus Overhagen. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5
6 #include "DecoderPlugin.h"
7
8 #include <stdio.h>
9 #include <string.h>
10
11 #include <MediaFormats.h>
12
13
Decoder()14 Decoder::Decoder()
15 :
16 fChunkProvider(NULL),
17 fMediaPlugin(NULL)
18 {
19 }
20
21
~Decoder()22 Decoder::~Decoder()
23 {
24 delete fChunkProvider;
25 }
26
27
28 status_t
GetNextChunk(const void ** chunkBuffer,size_t * chunkSize,media_header * mediaHeader)29 Decoder::GetNextChunk(const void **chunkBuffer, size_t *chunkSize,
30 media_header *mediaHeader)
31 {
32 return fChunkProvider->GetNextChunk(chunkBuffer, chunkSize, mediaHeader);
33 }
34
35
36 void
SetChunkProvider(ChunkProvider * provider)37 Decoder::SetChunkProvider(ChunkProvider *provider)
38 {
39 delete fChunkProvider;
40 fChunkProvider = provider;
41 }
42
43
44 status_t
Perform(perform_code code,void * _data)45 Decoder::Perform(perform_code code, void* _data)
46 {
47 return B_OK;
48 }
49
_ReservedDecoder1()50 void Decoder::_ReservedDecoder1() {}
_ReservedDecoder2()51 void Decoder::_ReservedDecoder2() {}
_ReservedDecoder3()52 void Decoder::_ReservedDecoder3() {}
_ReservedDecoder4()53 void Decoder::_ReservedDecoder4() {}
_ReservedDecoder5()54 void Decoder::_ReservedDecoder5() {}
55
56 // #pragma mark -
57
58
DecoderPlugin()59 DecoderPlugin::DecoderPlugin()
60 {
61 }
62