17 const char *texture_cache_directory,
18 std::string &r_tx_filepath)
20 ccl::ImageMetaData tx_metadata;
21 return ccl::resolve_tx(filepath,
22 texture_cache_directory,
23 ccl::ustring(
image->colorspace_settings.name),
24 ccl::ImageAlphaType(
image->alpha_mode),
25 ccl::IMAGE_FORMAT_PLAIN,
32 const char *texture_cache_directory)
34 std::string tx_filepath;
35 ccl::ImageMetaData tx_metadata;
36 const bool is_valid = ccl::resolve_tx(filepath,
37 texture_cache_directory,
38 ccl::ustring(
image->colorspace_settings.name),
39 ccl::ImageAlphaType(
image->alpha_mode),
40 ccl::IMAGE_FORMAT_PLAIN,
48 if (tx_filepath.empty()) {
54 ccl::ustring(
image->colorspace_settings.name),
55 ccl::ImageAlphaType(
image->alpha_mode),
56 ccl::IMAGE_FORMAT_PLAIN);
bool make_tx(const string &filepath, const string &out_filepath, ustring colorspace, const ImageAlphaType alpha_type, const ImageFormatType format_type)