#include #include #include #include #include #include #include #include unsigned int Imf_3_0__DeepScanLineOutputFile_ctor( Imf_DeepScanLineOutputFile_t * * this_ , char const * fileName , Imf_Header_t const * header , int numThreads) { try { to_c(this_, new Imf_3_0::DeepScanLineOutputFile(fileName, to_cpp_ref(header), numThreads)); return 0; } catch (Iex::BaseExc& e) { TLG_EXCEPTION_STRING = e.what(); return 2; } catch (std::exception& e) { TLG_EXCEPTION_STRING = e.what(); return -1; } } unsigned int Imf_3_0__DeepScanLineOutputFile_dtor( Imf_DeepScanLineOutputFile_t * this_) { try { delete to_cpp(this_); return 0; } catch (std::exception& e) { TLG_EXCEPTION_STRING = e.what(); return -1; } } unsigned int Imf_3_0__DeepScanLineOutputFile_fileName( Imf_DeepScanLineOutputFile_t const * this_ , char const * * return_) { try { *(return_) = (to_cpp(this_)) -> fileName(); return 0; } catch (std::exception& e) { TLG_EXCEPTION_STRING = e.what(); return -1; } } unsigned int Imf_3_0__DeepScanLineOutputFile_header( Imf_DeepScanLineOutputFile_t const * this_ , Imf_Header_t const * * return_) { try { to_c(return_, (to_cpp(this_)) -> header()); return 0; } catch (std::exception& e) { TLG_EXCEPTION_STRING = e.what(); return -1; } } unsigned int Imf_3_0__DeepScanLineOutputFile_setFrameBuffer( Imf_DeepScanLineOutputFile_t * this_ , Imf_DeepFrameBuffer_t const * frameBuffer) { try { (to_cpp(this_)) -> setFrameBuffer(to_cpp_ref(frameBuffer)); return 0; } catch (Iex::ArgExc& e) { TLG_EXCEPTION_STRING = e.what(); return 1; } catch (std::exception& e) { TLG_EXCEPTION_STRING = e.what(); return -1; } } unsigned int Imf_3_0__DeepScanLineOutputFile_frameBuffer( Imf_DeepScanLineOutputFile_t const * this_ , Imf_DeepFrameBuffer_t const * * return_) { try { to_c(return_, (to_cpp(this_)) -> frameBuffer()); return 0; } catch (std::exception& e) { TLG_EXCEPTION_STRING = e.what(); return -1; } } unsigned int Imf_3_0__DeepScanLineOutputFile_writePixels( Imf_DeepScanLineOutputFile_t * this_ , int numScanLines) { try { (to_cpp(this_)) -> writePixels(numScanLines); return 0; } catch (Iex::IoExc& e) { TLG_EXCEPTION_STRING = e.what(); return 4; } catch (Iex::ArgExc& e) { TLG_EXCEPTION_STRING = e.what(); return 1; } catch (Iex::BaseExc& e) { TLG_EXCEPTION_STRING = e.what(); return 2; } catch (std::exception& e) { TLG_EXCEPTION_STRING = e.what(); return -1; } } unsigned int Imf_3_0__DeepScanLineOutputFile_currentScanLine( Imf_DeepScanLineOutputFile_t const * this_ , int * return_) { try { *(return_) = (to_cpp(this_)) -> currentScanLine(); return 0; } catch (std::exception& e) { TLG_EXCEPTION_STRING = e.what(); return -1; } } unsigned int Imf_3_0__DeepScanLineOutputFile_copyPixels_from_file( Imf_DeepScanLineOutputFile_t * this_ , Imf_DeepScanLineInputFile_t * in) { try { (to_cpp(this_)) -> copyPixels(to_cpp_ref(in)); return 0; } catch (Iex::ArgExc& e) { TLG_EXCEPTION_STRING = e.what(); return 1; } catch (Iex::LogicExc& e) { TLG_EXCEPTION_STRING = e.what(); return 3; } catch (std::exception& e) { TLG_EXCEPTION_STRING = e.what(); return -1; } } unsigned int Imf_3_0__DeepScanLineOutputFile_copyPixels_from_part( Imf_DeepScanLineOutputFile_t * this_ , Imf_DeepScanLineInputPart_t * in) { try { (to_cpp(this_)) -> copyPixels(to_cpp_ref(in)); return 0; } catch (Iex::ArgExc& e) { TLG_EXCEPTION_STRING = e.what(); return 1; } catch (Iex::LogicExc& e) { TLG_EXCEPTION_STRING = e.what(); return 3; } catch (std::exception& e) { TLG_EXCEPTION_STRING = e.what(); return -1; } } unsigned int Imf_3_0__DeepScanLineOutputFile_updatePreviewImage( Imf_DeepScanLineOutputFile_t * this_ , Imf_PreviewRgba_t const * newPixels) { try { (to_cpp(this_)) -> updatePreviewImage(to_cpp(newPixels)); return 0; } catch (Iex::BaseExc& e) { TLG_EXCEPTION_STRING = e.what(); return 2; } catch (Iex::LogicExc& e) { TLG_EXCEPTION_STRING = e.what(); return 3; } catch (std::exception& e) { TLG_EXCEPTION_STRING = e.what(); return -1; } }