Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/imbuf/intern/openexr/openexr_api.cpp')
-rw-r--r--source/blender/imbuf/intern/openexr/openexr_api.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/source/blender/imbuf/intern/openexr/openexr_api.cpp b/source/blender/imbuf/intern/openexr/openexr_api.cpp
index aff9257d1f2..9948aaac5da 100644
--- a/source/blender/imbuf/intern/openexr/openexr_api.cpp
+++ b/source/blender/imbuf/intern/openexr/openexr_api.cpp
@@ -155,15 +155,15 @@ class IMemStream : public Imf::IStream {
class IFileStream : public Imf::IStream {
public:
- IFileStream(const char *filename) : IStream(filename)
+ IFileStream(const char *filepath) : IStream(filepath)
{
/* utf-8 file path support on windows */
#if defined(WIN32)
- wchar_t *wfilename = alloc_utf16_from_8(filename, 0);
- ifs.open(wfilename, std::ios_base::binary);
- free(wfilename);
+ wchar_t *wfilepath = alloc_utf16_from_8(filepath, 0);
+ ifs.open(wfilepath, std::ios_base::binary);
+ free(wfilepath);
#else
- ifs.open(filename, std::ios_base::binary);
+ ifs.open(filepath, std::ios_base::binary);
#endif
if (!ifs) {
@@ -261,15 +261,15 @@ class OMemStream : public OStream {
class OFileStream : public OStream {
public:
- OFileStream(const char *filename) : OStream(filename)
+ OFileStream(const char *filepath) : OStream(filepath)
{
/* utf-8 file path support on windows */
#if defined(WIN32)
- wchar_t *wfilename = alloc_utf16_from_8(filename, 0);
- ofs.open(wfilename, std::ios_base::binary);
- free(wfilename);
+ wchar_t *wfilepath = alloc_utf16_from_8(filepath, 0);
+ ofs.open(wfilepath, std::ios_base::binary);
+ free(wfilepath);
#else
- ofs.open(filename, std::ios_base::binary);
+ ofs.open(filepath, std::ios_base::binary);
#endif
if (!ofs) {
@@ -834,7 +834,7 @@ void IMB_exr_add_channel(void *handle,
}
bool IMB_exr_begin_write(void *handle,
- const char *filename,
+ const char *filepath,
int width,
int height,
int compress,
@@ -872,7 +872,7 @@ bool IMB_exr_begin_write(void *handle,
/* avoid crash/abort when we don't have permission to write here */
/* manually create ofstream, so we can handle utf-8 filepaths on windows */
try {
- data->ofile_stream = new OFileStream(filename);
+ data->ofile_stream = new OFileStream(filepath);
data->ofile = new OutputFile(*(data->ofile_stream), header);
}
catch (const std::exception &exc) {
@@ -889,7 +889,7 @@ bool IMB_exr_begin_write(void *handle,
}
void IMB_exrtile_begin_write(
- void *handle, const char *filename, int mipmap, int width, int height, int tilex, int tiley)
+ void *handle, const char *filepath, int mipmap, int width, int height, int tilex, int tiley)
{
ExrHandle *data = (ExrHandle *)handle;
Header header(width, height);
@@ -941,7 +941,7 @@ void IMB_exrtile_begin_write(
/* avoid crash/abort when we don't have permission to write here */
/* manually create ofstream, so we can handle utf-8 filepaths on windows */
try {
- data->ofile_stream = new OFileStream(filename);
+ data->ofile_stream = new OFileStream(filepath);
data->mpofile = new MultiPartOutputFile(*(data->ofile_stream), &headers[0], headers.size());
}
catch (const std::exception &) {
@@ -954,19 +954,19 @@ void IMB_exrtile_begin_write(
}
bool IMB_exr_begin_read(
- void *handle, const char *filename, int *width, int *height, const bool parse_channels)
+ void *handle, const char *filepath, int *width, int *height, const bool parse_channels)
{
ExrHandle *data = (ExrHandle *)handle;
ExrChannel *echan;
/* 32 is arbitrary, but zero length files crashes exr. */
- if (!(BLI_exists(filename) && BLI_file_size(filename) > 32)) {
+ if (!(BLI_exists(filepath) && BLI_file_size(filepath) > 32)) {
return false;
}
/* avoid crash/abort when we don't have permission to write here */
try {
- data->ifile_stream = new IFileStream(filename);
+ data->ifile_stream = new IFileStream(filepath);
data->ifile = new MultiPartInputFile(*(data->ifile_stream));
}
catch (const std::exception &) {