"tests/benchmarks/bm_chamfer.py" did not exist on "7e43f29d5269858729509c0de83a124c4a6ee650"
FfmpegUtil.h 503 Bytes
Newer Older
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
#pragma once

#include <array>
#include <string>
#include "FfmpegHeaders.h"
#include "Interface.h"

namespace ffmpeg_util {

bool mapFfmpegType(AVMediaType media, enum MediaType* type);

bool mapMediaType(MediaType type, enum AVMediaType* media);

void setFormatDimensions(
    int& destW,
    int& destH,
    int userW,
    int userH,
    int srcW,
    int srcH,
    int minDimension);

bool validateVideoFormat(const VideoFormat& f);

std::string getErrorDesc(int errnum);

} // namespace ffmpeg_util