1218a8c03SAugustin Cavalier/*
2218a8c03SAugustin Cavalier * Copyright 2004, Marcus Overhagen. All rights reserved.
3218a8c03SAugustin Cavalier * Distributed under the terms of the MIT License.
4218a8c03SAugustin Cavalier */
5218a8c03SAugustin Cavalier
6218a8c03SAugustin Cavalier#include "DecoderPlugin.h"
7218a8c03SAugustin Cavalier
8218a8c03SAugustin Cavalier#include <stdio.h>
9218a8c03SAugustin Cavalier#include <string.h>
10218a8c03SAugustin Cavalier
11218a8c03SAugustin Cavalier#include <MediaFormats.h>
12218a8c03SAugustin Cavalier
13218a8c03SAugustin Cavalier
14218a8c03SAugustin CavalierDecoder::Decoder()
15218a8c03SAugustin Cavalier	:
16218a8c03SAugustin Cavalier	fChunkProvider(NULL),
17218a8c03SAugustin Cavalier	fMediaPlugin(NULL)
18218a8c03SAugustin Cavalier{
19218a8c03SAugustin Cavalier}
20218a8c03SAugustin Cavalier
21218a8c03SAugustin Cavalier
22218a8c03SAugustin CavalierDecoder::~Decoder()
23218a8c03SAugustin Cavalier{
24218a8c03SAugustin Cavalier	delete fChunkProvider;
25218a8c03SAugustin Cavalier}
26218a8c03SAugustin Cavalier
27218a8c03SAugustin Cavalier
28218a8c03SAugustin Cavalierstatus_t
29218a8c03SAugustin CavalierDecoder::GetNextChunk(const void **chunkBuffer, size_t *chunkSize,
30218a8c03SAugustin Cavalier					  media_header *mediaHeader)
31218a8c03SAugustin Cavalier{
32218a8c03SAugustin Cavalier	return fChunkProvider->GetNextChunk(chunkBuffer, chunkSize, mediaHeader);
33218a8c03SAugustin Cavalier}
34218a8c03SAugustin Cavalier
35218a8c03SAugustin Cavalier
36218a8c03SAugustin Cavaliervoid
37218a8c03SAugustin CavalierDecoder::SetChunkProvider(ChunkProvider *provider)
38218a8c03SAugustin Cavalier{
39218a8c03SAugustin Cavalier	delete fChunkProvider;
40218a8c03SAugustin Cavalier	fChunkProvider = provider;
41218a8c03SAugustin Cavalier}
42218a8c03SAugustin Cavalier
43218a8c03SAugustin Cavalier
44218a8c03SAugustin Cavalierstatus_t
45218a8c03SAugustin CavalierDecoder::Perform(perform_code code, void* _data)
46218a8c03SAugustin Cavalier{
47218a8c03SAugustin Cavalier	return B_OK;
48218a8c03SAugustin Cavalier}
49218a8c03SAugustin Cavalier
50218a8c03SAugustin Cavaliervoid Decoder::_ReservedDecoder1() {}
51218a8c03SAugustin Cavaliervoid Decoder::_ReservedDecoder2() {}
52218a8c03SAugustin Cavaliervoid Decoder::_ReservedDecoder3() {}
53218a8c03SAugustin Cavaliervoid Decoder::_ReservedDecoder4() {}
54218a8c03SAugustin Cavaliervoid Decoder::_ReservedDecoder5() {}
55218a8c03SAugustin Cavalier
56218a8c03SAugustin Cavalier//	#pragma mark -
57218a8c03SAugustin Cavalier
58218a8c03SAugustin Cavalier
59218a8c03SAugustin CavalierDecoderPlugin::DecoderPlugin()
60218a8c03SAugustin Cavalier{
61218a8c03SAugustin Cavalier}
62