mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-12-03 01:07:16 +01:00
22 lines
543 B
C++
22 lines
543 B
C++
#pragma once
|
|
#include "mkv_reader.h"
|
|
#include <stdio.h>
|
|
|
|
class MKVReaderFILE : public nsmkv::MKVReader
|
|
{
|
|
public:
|
|
MKVReaderFILE(FILE *f);
|
|
MKVReaderFILE(const wchar_t *filename);
|
|
~MKVReaderFILE();
|
|
|
|
/* avi_reader implementation */
|
|
int Read(void *buffer, size_t read_length, size_t *bytes_read);
|
|
int Peek(void *buffer, size_t read_length, size_t *bytes_read);
|
|
int Seek(uint64_t position);
|
|
uint64_t Tell();
|
|
int Skip(uint64_t skip_bytes);
|
|
void GetFilename(wchar_t *fn, size_t fn_len) {}
|
|
uint64_t GetContentLength();
|
|
private:
|
|
FILE *f;
|
|
}; |