Blender V5.3
image_maketx.h File Reference
#include <cstdlib>
#include <string>
#include "util/image_metadata.h"
#include "util/param.h"
#include "util/string.h"
#include "util/types_image.h"

Go to the source code of this file.

Macros

#define TX_FILE_FORMAT_VERSION   0

Functions

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)

Macro Definition Documentation

◆ TX_FILE_FORMAT_VERSION

#define TX_FILE_FORMAT_VERSION   0

Definition at line 21 of file image_maketx.h.

Referenced by ImageMetaData::detect_tiles(), make_tx(), and unique_filename_tx().

Function Documentation

◆ make_tx()

bool make_tx ( const string & filepath,
const string & out_filepath,
ustring colorspace,
const ImageAlphaType alpha_type,
const ImageFormatType format_type )

◆ make_tx_get_file_colorspace()

◆ resolve_tx()

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 )