NVIDIA Iray API — software examples nvidia_logo_transpbg.gif Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
example_psd_exporter.cpp File Reference
#include <cassert>
#include <cstdio>
#include <iostream>
#include <limits>
#include <mi/neuraylib.h>
#include "example_shared.h"
#include <arpa/inet.h>

Go to the source code of this file.

Classes

class  Render_target
 

Functions

void write_int8 (mi::Uint8 data)
 
void write_int16 (mi::Uint16 data)
 
void write_int32 (mi::Uint32 data)
 
void write_buf (const void *p, mi::Size length)
 
void write_str (const char *s)
 
void write_str_pascal (const char *s, mi::Size padding)
 
void write_channel (const mi::Uint8 *input, mi::Uint32 width, mi::Uint32 height, mi::Uint32 bytes_per_channel, mi::Uint32 stride)
 
mi::Uint32 get_channel_count (const char *pixel_type)
 
mi::Uint32 get_bytes_per_channel (const char *pixel_type)
 
const char * get_pixel_type (mi::Uint32 bytes_per_channel, mi::Uint32 channels)
 
bool export_psd (const mi::IArray *canvases, const mi::IArray *names, const char *filename, mi::neuraylib::IImage_api *image_api)
 
bool export_psd (Render_target *render_target, const char *filename, mi::neuraylib::IFactory *factory, mi::neuraylib::IImage_api *image_api)
 
void configuration (mi::neuraylib::INeuray *neuray, const char *mdl_path)
 
void rendering (mi::neuraylib::INeuray *neuray, const char *scene_file)
 
int main (int argc, char *argv[])
 

Variables

FILE * g_file
 

Function Documentation

void configuration ( mi::neuraylib::INeuray neuray,
const char *  mdl_path 
)

Definition at line 422 of file example_psd_exporter.cpp.

bool export_psd ( const mi::IArray canvases,
const mi::IArray names,
const char *  filename,
mi::neuraylib::IImage_api image_api 
)

Definition at line 173 of file example_psd_exporter.cpp.

bool export_psd ( Render_target render_target,
const char *  filename,
mi::neuraylib::IFactory factory,
mi::neuraylib::IImage_api image_api 
)

Definition at line 396 of file example_psd_exporter.cpp.

mi::Uint32 get_bytes_per_channel ( const char *  pixel_type)

Definition at line 141 of file example_psd_exporter.cpp.

mi::Uint32 get_channel_count ( const char *  pixel_type)

Definition at line 130 of file example_psd_exporter.cpp.

const char* get_pixel_type ( mi::Uint32  bytes_per_channel,
mi::Uint32  channels 
)

Definition at line 151 of file example_psd_exporter.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 584 of file example_psd_exporter.cpp.

void rendering ( mi::neuraylib::INeuray neuray,
const char *  scene_file 
)

Definition at line 515 of file example_psd_exporter.cpp.

void write_buf ( const void *  p,
mi::Size  length 
)

Definition at line 88 of file example_psd_exporter.cpp.

void write_channel ( const mi::Uint8 input,
mi::Uint32  width,
mi::Uint32  height,
mi::Uint32  bytes_per_channel,
mi::Uint32  stride 
)

Definition at line 113 of file example_psd_exporter.cpp.

void write_int16 ( mi::Uint16  data)

Definition at line 74 of file example_psd_exporter.cpp.

void write_int32 ( mi::Uint32  data)

Definition at line 81 of file example_psd_exporter.cpp.

void write_int8 ( mi::Uint8  data)

Definition at line 68 of file example_psd_exporter.cpp.

void write_str ( const char *  s)

Definition at line 94 of file example_psd_exporter.cpp.

void write_str_pascal ( const char *  s,
mi::Size  padding 
)

Definition at line 100 of file example_psd_exporter.cpp.

Variable Documentation

FILE* g_file

Definition at line 65 of file example_psd_exporter.cpp.