Blender  V3.3
image_oiio.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: Apache-2.0
2  * Copyright 2011-2022 Blender Foundation */
3 
4 #ifndef __IMAGE_OIIO__
5 #define __IMAGE_OIIO__
6 
7 #include "scene/image.h"
8 
10 
11 class OIIOImageLoader : public ImageLoader {
12  public:
13  OIIOImageLoader(const string &filepath);
15 
16  bool load_metadata(const ImageDeviceFeatures &features, ImageMetaData &metadata) override;
17 
18  bool load_pixels(const ImageMetaData &metadata,
19  void *pixels,
20  const size_t pixels_size,
21  const bool associate_alpha) override;
22 
23  string name() const override;
24 
25  ustring osl_filepath() const override;
26 
27  bool equals(const ImageLoader &other) const override;
28 
29  protected:
30  ustring filepath;
31 };
32 
34 
35 #endif /* __IMAGE_OIIO__ */
ustring osl_filepath() const override
Definition: image_oiio.cpp:253
bool equals(const ImageLoader &other) const override
Definition: image_oiio.cpp:258
bool load_pixels(const ImageMetaData &metadata, void *pixels, const size_t pixels_size, const bool associate_alpha) override
Definition: image_oiio.cpp:165
ustring filepath
Definition: image_oiio.h:30
OIIOImageLoader(const string &filepath)
Definition: image_oiio.cpp:12
bool load_metadata(const ImageDeviceFeatures &features, ImageMetaData &metadata) override
Definition: image_oiio.cpp:20
string name() const override
Definition: image_oiio.cpp:248
#define CCL_NAMESPACE_END
Definition: cuda/compat.h:9