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:
parent
3ae4fa637a
commit
5c91a2814e
38
src/kits/media/ChunkCache.cpp
Normal file
38
src/kits/media/ChunkCache.cpp
Normal 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)
|
||||
{
|
||||
}
|
31
src/kits/media/ChunkCache.h
Normal file
31
src/kits/media/ChunkCache.h
Normal 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
|
@ -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 :
|
||||
|
Loading…
Reference in New Issue
Block a user