Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkJpegEncoderImpl.h
Go to the documentation of this file.
1/*
2 * Copyright 2017 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef SkJpegEncoderImpl_DEFINED
9#define SkJpegEncoderImpl_DEFINED
10
12
13#include <memory>
14
16class SkPixmap;
17class SkYUVAPixmaps;
18
20public:
21 SkJpegEncoderImpl(std::unique_ptr<SkJpegEncoderMgr>, const SkPixmap& src);
22 SkJpegEncoderImpl(std::unique_ptr<SkJpegEncoderMgr>, const SkYUVAPixmaps* srcYUVA);
23
24 ~SkJpegEncoderImpl() override;
25
26protected:
27 bool onEncodeRows(int numRows) override;
28
29private:
30 std::unique_ptr<SkJpegEncoderMgr> fEncoderMgr;
31 const SkYUVAPixmaps* fSrcYUVA = nullptr;
32};
33
34#endif
bool onEncodeRows(int numRows) override