Blender V4.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
13#pragma once
14
15#include <optional>
16
17#include "BLI_array.hh"
18#include "BLI_vector.hh"
19
20struct FileReader;
21
27
38
39std::optional<blender::Vector<uint8_t>> blendthumb_create_png_data_from_thumb(
40 const Thumbnail *thumb);
46
47/* INTEGER CODES */
48#ifdef __BIG_ENDIAN__
49/* Big Endian */
50# define MAKE_ID(a, b, c, d) ((int)(a) << 24 | (int)(b) << 16 | (c) << 8 | (d))
51#else
52/* Little Endian */
53# define MAKE_ID(a, b, c, d) ((int)(d) << 24 | (int)(c) << 16 | (b) << 8 | (a))
54#endif
eThumbStatus blendthumb_create_thumb_from_file(FileReader *rawfile, Thumbnail *thumb)
eThumbStatus
Definition blendthumb.hh:28
@ BT_COMPRES_ERR
Definition blendthumb.hh:31
@ BT_EARLY_VERSION
Definition blendthumb.hh:34
@ BT_INVALID_FILE
Definition blendthumb.hh:33
@ BT_ERROR
Definition blendthumb.hh:36
@ BT_FILE_ERR
Definition blendthumb.hh:30
@ BT_INVALID_THUMB
Definition blendthumb.hh:35
@ BT_DECOMPRESS_ERR
Definition blendthumb.hh:32
@ BT_OK
Definition blendthumb.hh:29
std::optional< blender::Vector< uint8_t > > blendthumb_create_png_data_from_thumb(const Thumbnail *thumb)
blender::Array< uint8_t > data
Definition blendthumb.hh:23