blob: bed2522f7be9a7f17b6344f3541d3040fb6ba857 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#pragma once
#include "../nsmkv/header.h"
#include "../nsmkv/segmentinfo.h"
#include "../nsmkv/tracks.h"
// parses only enough information to use in GetExtendedFileInfo
class MKVInfo
{
public:
MKVInfo();
bool Open(const wchar_t *filename);
int GetLengthMilliseconds();
const char *GetTitle();
int GetBitrate();
bool GetHeight(int &height);
bool GetWidth(int &width);
const nsmkv::Tracks *GetTracks();
private:
uint64_t ReadSegment(nsmkv::MKVReader *reader, uint64_t size);
bool segment_info_found;
bool tracks_found;
nsmkv::Header header;
nsmkv::SegmentInfo segment_info;
nsmkv::Tracks tracks;
uint64_t content_length;
};
|