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 14 Decoder::Decoder() 15 : 16 fChunkProvider(NULL), 17 fMediaPlugin(NULL) 18 { 19 } 20 21 22 Decoder::~Decoder() 23 { 24 delete fChunkProvider; 25 } 26 27 28 status_t 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 37 Decoder::SetChunkProvider(ChunkProvider *provider) 38 { 39 delete fChunkProvider; 40 fChunkProvider = provider; 41 } 42 43 44 status_t 45 Decoder::Perform(perform_code code, void* _data) 46 { 47 return B_OK; 48 } 49 50 void Decoder::_ReservedDecoder1() {} 51 void Decoder::_ReservedDecoder2() {} 52 void Decoder::_ReservedDecoder3() {} 53 void Decoder::_ReservedDecoder4() {} 54 void Decoder::_ReservedDecoder5() {} 55 56 // #pragma mark - 57 58 59 DecoderPlugin::DecoderPlugin() 60 { 61 } 62