mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-10 11:59:58 -05:00
Initial community commit
This commit is contained in:
28
Src/Plugins/Input/in_flv/StreamProcessor.h
Normal file
28
Src/Plugins/Input/in_flv/StreamProcessor.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include "FLVProcessor.h"
|
||||
#include "../nu/RingBuffer.h"
|
||||
|
||||
class StreamProcessor : public FLVProcessor
|
||||
{
|
||||
public:
|
||||
StreamProcessor();
|
||||
|
||||
private:
|
||||
int Write(void *data, size_t datalen, size_t *written);
|
||||
int Process();
|
||||
uint64_t Seek(uint64_t position);
|
||||
size_t Read(void *data, size_t bytes);
|
||||
uint64_t GetProcessedPosition();
|
||||
bool GetFrame(size_t frameIndex, FrameData &frameData);
|
||||
uint32_t GetMaxTimestamp();
|
||||
bool GetPosition(int time_in_ms, size_t *frameIndex, bool needVideoKeyFrame);
|
||||
bool IsStreaming() { return true; }
|
||||
FLVHeader *GetHeader();
|
||||
private:
|
||||
RingBuffer buffer;
|
||||
uint64_t bytesWritten;
|
||||
bool readHeader;
|
||||
FLVHeader header;
|
||||
};
|
||||
|
Reference in New Issue
Block a user