-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathFFInfo.h
61 lines (52 loc) · 955 Bytes
/
FFInfo.h
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#pragma once
#include "VideoCommon.h"
#include <vector>
namespace ffmpeg
{
struct VideoStreamInfo
{
int index;
int id;
int64_t numFrames;
AVRational frameRate;
AVRational timeBase;
const AVCodec* codec;
// bits per second
int64_t bitRate;
AVPixelFormat format;
const char* formatName;
int width, height;
};
struct AudioStreamInfo
{
int index;
int id;
int64_t numFrames;
AVRational timeBase;
const AVCodec* codec;
// bits per second
int64_t bitRate;
int sampleRate;
int channels;
uint64_t channelLayout;
char channelLayoutName[255];
};
struct ContainerInfo
{
// in seconds
double duration;
// start time in seconds
double start;
// bits per second
int64_t bitRate;
const AVInputFormat* format;
std::vector<VideoStreamInfo> videoStreams;
std::vector<AudioStreamInfo> audioStreams;
};
struct MetaData
{
AVMediaType type;
AVRational timeBase;
AVRational frameRate;
};
}