9 const string_view pass,
11 : filepath_(filepath), pass_(pass), log_(
log)
22 if (!(
tile.size ==
tile.full_size)) {
29 if (image_output ==
nullptr) {
30 log_(
"Failed to create image file");
38 if (!image_output->open(
filepath_, spec)) {
39 log_(
"Failed to create image file");
44 if (!
tile.get_pass_pixels(
pass_, 4, pixels.data())) {
45 log_(
"Failed to read render pass pixels");
53 -
width * 4 *
sizeof(
float),
55 image_output->close();
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei height
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei width
void write_render_tile(const Tile &tile) override
virtual ~OIIOOutputDriver()
function< void(const string &)> LogFunction
OIIOOutputDriver(const string_view filepath, const string_view pass, LogFunction log)
#define CCL_NAMESPACE_END
ccl_global const KernelWorkTile * tile
ccl_device_inline float3 log(float3 v)
std::unique_ptr< IDProperty, IDPropertyDeleter > create(StringRefNull prop_name, int32_t value)
Allocate a new IDProperty of type IDP_INT, set its name and value.
CCL_NAMESPACE_BEGIN string string_printf(const char *format,...)