started implementing a caching layer inbetween extractor and decoder

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9480 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper 2004-10-24 14:15:01 +00:00
parent 3ae4fa637a
commit 5c91a2814e
3 changed files with 72 additions and 2 deletions

View File

@ -0,0 +1,38 @@
#include "ChunkCache.h"
#include "debug.h"
ChunkCache::ChunkCache()
{
}
ChunkCache::~ChunkCache()
{
}
void
ChunkCache::MakeEmpty()
{
}
bool
ChunkCache::NeedsRefill()
{
return false;
}
status_t
ChunkCache::GetNextChunk(void **chunkBuffer, int32 *chunkSize, media_header *mediaHeader)
{
return B_ERROR;
}
void
ChunkCache::PutNextChunk(void *chunkBuffer, int32 chunkSize, const media_header &mediaHeader, status_t err)
{
}

View File

@ -0,0 +1,31 @@
#ifndef _CHUNK_CACHE_H
#define _CHUNK_CACHE_H
#include <MediaDefs.h>
namespace BPrivate {
namespace media {
class ChunkCache
{
public:
ChunkCache();
~ChunkCache();
void MakeEmpty();
bool NeedsRefill();
status_t GetNextChunk(void **chunkBuffer, int32 *chunkSize, media_header *mediaHeader);
void PutNextChunk(void *chunkBuffer, int32 chunkSize, const media_header &mediaHeader, status_t err);
private:
};
}; // namespace media
}; // namespace BPrivate
using namespace BPrivate::media;
#endif

View File

@ -71,11 +71,12 @@ SharedLibrary media :
OldSubscriber.cpp
# Codec Plugin API
MediaPlugin.cpp
ReaderPlugin.cpp
ChunkCache.cpp
DecoderPlugin.cpp
MediaExtractor.cpp
MediaPlugin.cpp
PluginManager.cpp
ReaderPlugin.cpp
;
LinkSharedOSLibs libmedia.so :