Debian Codegraph @

cvd/videoscaler.h

raw symbols SCIP
1 #ifndef LIBCVD_VIDEOSCALER_H
2 #define LIBCVD_VIDEOSCALER_H
3
4 #include "videoffmpeg.h"
5
6 #include <cstdint>
7 #include <memory>
8 #include <vector>
9
10 namespace CVD
11 {
12 namespace internal
13 {
14
15 // Abstraction of an FFMPEG video scaler.
16 class Scaler
17 {
18 using Context = std::unique_ptr<SwsContext, SwsContextCloser>;
19
20 public:
21 Scaler(int width, int height, int source_format, int target_format, int colorspace, int threads);
22
23 void scale(const std::uint8_t* const* input_data,
24 const int* input_linesize,
25 int y,
26 int height,
27 std::uint8_t* const* output_data,
28 const int* output_linesize);
29
30 private:
31 int m_source_format, m_target_format;
32 std::vector<Context> m_contexts;
33 };
34 }
35 }
36
37 #endif