Blender V5.3
blendthumb.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2008-2021 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
12
13#pragma once
14
15#include <optional>
16
17#include "BLI_array.hh"
18#include "BLI_vector.hh"
19
20namespace blender {
21
22struct FileReader;
23
29
40
41std::optional<Vector<uint8_t>> blendthumb_create_png_data_from_thumb(const Thumbnail *thumb);
46eThumbStatus blendthumb_create_thumb_from_file(FileReader *rawfile, Thumbnail *thumb);
47
48/* INTEGER CODES */
49/* NOTE: this is endianness-sensitive. */
50#define MAKE_ID(a, b, c, d) (int(d) << 24 | int(c) << 16 | (b) << 8 | (a))
51
52} // namespace blender
BMesh Iterators.
eThumbStatus blendthumb_create_thumb_from_file(FileReader *rawfile, Thumbnail *thumb)
std::optional< Vector< uint8_t > > blendthumb_create_png_data_from_thumb(const Thumbnail *thumb)
@ BT_DECOMPRESS_ERR
Definition blendthumb.hh:34
@ BT_COMPRES_ERR
Definition blendthumb.hh:33
@ BT_INVALID_THUMB
Definition blendthumb.hh:37
@ BT_INVALID_FILE
Definition blendthumb.hh:35
@ BT_FILE_ERR
Definition blendthumb.hh:32
@ BT_EARLY_VERSION
Definition blendthumb.hh:36
Array< uint8_t > data
Definition blendthumb.hh:25