blob: def62497911090e388535172407e123144f455dc (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
Adjust includes in various places.
tools/legacy/sample_encode/src/sample_encode.cpp:1677:52: error: no member named 'ceil' in namespace 'std'
pParams->nBitRateMultiplier = (mfxU16)std::ceil(static_cast<double>(maxVal) / mfxU16Limit);
~~~~~^
tools/legacy/sample_multi_transcode/src/pipeline_transcode.cpp:3943:55: error: no member named 'ceil' in namespace 'std'
mfxU32 framesForEncode = std::min(mfxU32(std::ceil(m_MaxFramesForTranscode / frcFactor)),
~~~~~^
tools/legacy/sample_multi_transcode/src/transcode_utils.cpp:2894:26: error: no member named 'ceil' in namespace 'std'
(mfxU16)std::ceil(static_cast<double>(maxVal) / mfxU16Limit);
~~~~~^
--- tools/legacy/sample_encode/src/sample_encode.cpp.orig 2021-12-07 00:05:44 UTC
+++ tools/legacy/sample_encode/src/sample_encode.cpp
@@ -8,6 +8,7 @@
#include "vpl_implementation_loader.h"
#include <stdarg.h>
+#include <cmath>
#include <memory>
#include <string>
#include "pipeline_encode.h"
--- tools/legacy/sample_multi_transcode/src/pipeline_transcode.cpp.orig 2021-12-07 00:05:44 UTC
+++ tools/legacy/sample_multi_transcode/src/pipeline_transcode.cpp
@@ -12,6 +12,7 @@
#include <assert.h>
#include <algorithm>
+#include <cmath>
#include <cstring>
#include <set>
#include "mfx_itt_trace.h"
--- tools/legacy/sample_multi_transcode/src/transcode_utils.cpp.orig 2021-12-07 00:05:44 UTC
+++ tools/legacy/sample_multi_transcode/src/transcode_utils.cpp
@@ -27,6 +27,7 @@
#include <algorithm>
#include <cctype>
+#include <cmath>
#include <cstdlib>
#include <cstring>
#include <fstream>
|