file_mkv_reader.h 543 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "mkv_reader.h"
  3. #include <stdio.h>
  4. class MKVReaderFILE : public nsmkv::MKVReader
  5. {
  6. public:
  7. MKVReaderFILE(FILE *f);
  8. MKVReaderFILE(const wchar_t *filename);
  9. ~MKVReaderFILE();
  10. /* avi_reader implementation */
  11. int Read(void *buffer, size_t read_length, size_t *bytes_read);
  12. int Peek(void *buffer, size_t read_length, size_t *bytes_read);
  13. int Seek(uint64_t position);
  14. uint64_t Tell();
  15. int Skip(uint64_t skip_bytes);
  16. void GetFilename(wchar_t *fn, size_t fn_len) {}
  17. uint64_t GetContentLength();
  18. private:
  19. FILE *f;
  20. };