| Flutter Impeller |

yuv_to_rgb_filter_contents.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_YUV_TO_RGB_FILTER_CONTENTS_H_
6 #define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_YUV_TO_RGB_FILTER_CONTENTS_H_
7
8 #include "impeller/entity/contents/filters/filter_contents.h"
9
10 namespace impeller {
11
12 class YUVToRGBFilterContents final : public FilterContents {
13 public:
14 YUVToRGBFilterContents();
15
16 ~YUVToRGBFilterContents() override;
17
18 void SetYUVColorSpace(YUVColorSpace yuv_color_space);
19
20 private:
21 // |FilterContents|
22 std::optional<Entity> RenderFilter(
23 const FilterInput::Vector& input_textures,
24 const ContentContext& renderer,
25 const Entity& entity,
26 const Matrix& effect_transform,
27 const Rect& coverage,
28 const std::optional<Rect>& coverage_hint) const override;
29
30 // |FilterContents|
31 std::optional<Rect> GetFilterSourceCoverage(
32 const Matrix& effect_transform,
33 const Rect& output_limit) const override;
34
35 YUVColorSpace yuv_color_space_ = YUVColorSpace::kBT601LimitedRange;
36
37 YUVToRGBFilterContents(const YUVToRGBFilterContents&) = delete;
38
39 YUVToRGBFilterContents& operator=(const YUVToRGBFilterContents&) = delete;
40 };
41
42 } // namespace impeller
43
44 #endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_YUV_TO_RGB_FILTER_CONTENTS_H_
impeller::ContentContext
Definition: content_context.h:371
impeller::Entity
Definition: entity.h:20
impeller::FilterContents
Definition: filter_contents.h:24
impeller::FilterInput::Vector
std::vector< FilterInput::Ref > Vector
Definition: filter_input.h:33
impeller::YUVToRGBFilterContents
Definition: yuv_to_rgb_filter_contents.h:12
impeller::YUVToRGBFilterContents::~YUVToRGBFilterContents
~YUVToRGBFilterContents() override
impeller::YUVToRGBFilterContents::YUVToRGBFilterContents
YUVToRGBFilterContents()
impeller::YUVToRGBFilterContents::SetYUVColorSpace
void SetYUVColorSpace(YUVColorSpace yuv_color_space)
Definition: yuv_to_rgb_filter_contents.cc:36
filter_contents.h
impeller
Definition: allocation.cc:12
impeller::YUVColorSpace
YUVColorSpace
Definition: color.h:54
impeller::YUVColorSpace::kBT601LimitedRange
@ kBT601LimitedRange
impeller::Matrix
A 4x4 matrix using column-major storage.
Definition: matrix.h:37
impeller::TRect< Scalar >