Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: src/codec/SkExrCodec.h

Issue 2344523002: Experimental: EXR
Patch Set: Now we have a decoder Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/codec/SkCodec.cpp ('k') | src/codec/SkExrCodec.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 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 SkExrCodec_DEFINED
9 #define SkExrCodec_DEFINED
10
11 #include "SkCodec.h"
12 #include "SkEncodedFormat.h"
13 #include "SkImageInfo.h"
14 #include "SkTypes.h"
15
16 class SkExrCodec : public SkCodec {
17 public:
18 static SkCodec* NewFromStream(SkStream*);
19 static bool IsExr(const void*, size_t);
20
21 protected:
22 Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, SkPMCo lor*, int*, int*)
23 override;
24 SkEncodedFormat onGetEncodedFormat() const override { return kEXR_SkEncodedF ormat; }
25
26 private:
27 SkExrCodec(int width, int height, const SkEncodedInfo&, sk_sp<SkColorSpace>, SkStream*, sk_sp<SkData> data);
28
29 sk_sp<SkData> fData;
30 typedef SkCodec INHERITED;
31 };
32
33 #endif
OLDNEW
« no previous file with comments | « src/codec/SkCodec.cpp ('k') | src/codec/SkExrCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698