mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 02:15:46 -04:00
Initial community commit
This commit is contained in:
22
Src/nsmkv/file_mkv_reader.h
Normal file
22
Src/nsmkv/file_mkv_reader.h
Normal file
@ -0,0 +1,22 @@
|
||||
#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;
|
||||
};
|
Reference in New Issue
Block a user