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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/codec/SkCodec.cpp ('k') | src/codec/SkExrCodec.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codec/SkExrCodec.h
diff --git a/src/codec/SkExrCodec.h b/src/codec/SkExrCodec.h
new file mode 100644
index 0000000000000000000000000000000000000000..a5d76271772466714a422e3e8d8b3edf762ecea8
--- /dev/null
+++ b/src/codec/SkExrCodec.h
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkExrCodec_DEFINED
+#define SkExrCodec_DEFINED
+
+#include "SkCodec.h"
+#include "SkEncodedFormat.h"
+#include "SkImageInfo.h"
+#include "SkTypes.h"
+
+class SkExrCodec : public SkCodec {
+public:
+ static SkCodec* NewFromStream(SkStream*);
+ static bool IsExr(const void*, size_t);
+
+protected:
+ Result onGetPixels(const SkImageInfo&, void*, size_t, const Options&, SkPMColor*, int*, int*)
+ override;
+ SkEncodedFormat onGetEncodedFormat() const override { return kEXR_SkEncodedFormat; }
+
+private:
+ SkExrCodec(int width, int height, const SkEncodedInfo&, sk_sp<SkColorSpace>, SkStream*, sk_sp<SkData> data);
+
+ sk_sp<SkData> fData;
+ typedef SkCodec INHERITED;
+};
+
+#endif
« 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