Giter Club home page Giter Club logo

Comments (5)

delhoume avatar delhoume commented on August 12, 2024 1

I made a PR, please check and make changes you find usefull

from tinyexr.

syoyo avatar syoyo commented on August 12, 2024

PR of suppressing warnings much appreciated.

from tinyexr.

delhoume avatar delhoume commented on August 12, 2024

I will make one. meanwhile here is my sample:

`#define TINYEXR_USE_MINIZ 0
#define TINYEXR_USE_STB_ZLIB 1
#define TINYEXR_IMPLEMENTATION
#include <tinyexr.h>

#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include <stb_image_write.h>

#include

int
main(int argc, char* argv[]) {
int width, height;
float* image;
const char* error;

int ret = LoadEXR(&image, &width, &height, argv[1], &error);
if (ret == TINYEXR_SUCCESS) {
    free(image);
} else {
    std::cout << error << std::endl;
    FreeEXRErrorMessage(error);
}
return 0;

}`

Note that I have this error also : \tinyexr.h(1332): error C2065: 'ret': undeclared identifier
this is trivial to correct, just rename r to ret in defined portion for TINYEXR_USE_STB_ZLIB

from tinyexr.

syoyo avatar syoyo commented on August 12, 2024

Note that I have this error also : \tinyexr.h(1332): error C2065: 'ret': undeclared identifier

👀

tinyexr/tinyexr.h

Line 1332 in bb37f77

assert(ret);

It'd be better to report an error instead of assertion, by modifying void CompressZip to bool CompressZip.

from tinyexr.

syoyo avatar syoyo commented on August 12, 2024

Closed via #172

from tinyexr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.