]> git.sesse.net Git - nageru/blob - tweaked_inputs.h
Move NonBouncingYCbCrInput into its own header file.
[nageru] / tweaked_inputs.h
1 #ifndef _TWEAKED_INPUTS_H
2 #define _TWEAKED_INPUTS_H 1
3
4 // Some tweaked variations of Movit inputs.
5
6 #include <movit/ycbcr_input.h>
7
8 namespace movit {
9 struct ImageFormat;
10 struct YCbCrFormat;
11 }  // namespace movit
12
13 class NonBouncingYCbCrInput : public movit::YCbCrInput {
14 public:
15         NonBouncingYCbCrInput(const movit::ImageFormat &image_format,
16                               const movit::YCbCrFormat &ycbcr_format,
17                               unsigned width, unsigned height,
18                               movit::YCbCrInputSplitting ycbcr_input_splitting = movit::YCBCR_INPUT_PLANAR)
19             : movit::YCbCrInput(image_format, ycbcr_format, width, height, ycbcr_input_splitting) {}
20
21         bool override_disable_bounce() const override { return true; }
22 };
23
24 #endif  // !defined(_TWEAKED_INPUTS_H)