Blender V5.3
image_oiio.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#pragma once
6
8
10#include "util/image.h"
11#include "util/progress.h"
12#include "util/string.h"
13
15
17 public:
18 OIIOImageLoader(const string &filepath);
19 ~OIIOImageLoader() override;
20
21 bool load_metadata(ImageMetaData &metadata,
22 const ImageLoaderParams &params,
23 Progress &progress) override;
24
25 bool load_pixels(const ImageMetaData &metadata, void *pixels) override;
26
27 bool load_pixels_tile(const ImageMetaData &metadata,
28 int miplevel,
29 int64_t x,
30 int64_t y,
31 int64_t w,
32 int64_t h,
33 int64_t x_stride,
34 int64_t y_stride,
35 int64_t padding,
36 ExtensionType extension,
37 uint8_t *pixels) override;
38
39 string name() const override;
40
41 bool equals(const ImageLoader &other) const override;
42
43 protected:
44 const string &get_filepath() const;
45
50};
51
long long int int64_t
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
Definition btQuadWord.h:119
bool texture_cache_file_handle_failed
Definition image_oiio.h:49
const string & get_filepath() const
bool equals(const ImageLoader &other) const override
OIIOImageLoader(const string &filepath)
string texture_cache_filepath_
Definition image_oiio.h:47
bool load_metadata(ImageMetaData &metadata, const ImageLoaderParams &params, Progress &progress) override
CacheHandle< ImageInput > texture_cache_file_handle
Definition image_oiio.h:48
bool load_pixels(const ImageMetaData &metadata, void *pixels) override
~OIIOImageLoader() override
bool load_pixels_tile(const ImageMetaData &metadata, int miplevel, int64_t x, int64_t y, int64_t w, int64_t h, int64_t x_stride, int64_t y_stride, int64_t padding, ExtensionType extension, uint8_t *pixels) override
string name() const override
string original_filepath_
Definition image_oiio.h:46
#define CCL_NAMESPACE_END
ExtensionType
Definition types_image.h:80