OLD | NEW |
(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 |
OLD | NEW |