Add Chromium-only Blender WebEngine parity work
This commit is contained in:
39
blender-5.2.0/intern/cycles/util/image_maketx.h
Normal file
39
blender-5.2.0/intern/cycles/util/image_maketx.h
Normal file
@@ -0,0 +1,39 @@
|
||||
/* SPDX-FileCopyrightText: 2025 OpenImageIO project
|
||||
* 2026 Blender Authors
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* This is a modified version of maketexture.cpp from OpenImageIO, to add a few
|
||||
* features missing in the native implementation. */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
|
||||
#include "util/image_metadata.h"
|
||||
#include "util/param.h"
|
||||
#include "util/string.h"
|
||||
#include "util/types_image.h"
|
||||
|
||||
CCL_NAMESPACE_BEGIN
|
||||
|
||||
#define TX_FILE_FORMAT_VERSION 0
|
||||
|
||||
bool resolve_tx(const string &filepath,
|
||||
const string &texture_cache_path,
|
||||
ustring colorspace,
|
||||
const ImageAlphaType alpha_type,
|
||||
const ImageFormatType format_type,
|
||||
std::string &out_filepath,
|
||||
ImageMetaData &out_metadata);
|
||||
|
||||
bool make_tx(const string &filepath,
|
||||
const string &out_filepath,
|
||||
ustring colorspace,
|
||||
const ImageAlphaType alpha_type,
|
||||
const ImageFormatType format_type);
|
||||
|
||||
ustring make_tx_get_file_colorspace(const ImageMetaData &metadata);
|
||||
|
||||
CCL_NAMESPACE_END
|
||||
Reference in New Issue
Block a user