Files
2017-08-16 17:37:54 +02:00

32 lines
3.1 KiB
Plaintext

let fun000 = fun(ref<ref<array<char,1>>> scene, ref<int<4>> numFrames, ref<collection<collection<file<ref<array<char,1>>>>>> frames, int<4> counterStart, int<4> counterStop, int<4> counterStep) -> unit { (*@\label{povray:inspire:pfor_lambda:start}@*)
for(decl int<4> forCounter = counterStart .. counterStop : counterStep) {
decl ref<file<ref<array<char,1>>>> povFile = (var(undefined(type<file<ref<array<char,1>>>>)));
_iwir_atomic_("SceneFile", "SceneFile", _iwir_input_wrapper_(scene), "scene", _iwir_output_wrapper_(povFile), "povFile");
decl ref<collection<file<ref<array<char,1>>>>> renderFrames = (var(undefined(type<collection<file<ref<array<char,1>>>>>)));
_iwir_atomic_("Render", "Render", _iwir_input_wrapper_(povFile), "povFile", _iwir_input_wrapper_(forCounter), "forCounter", _iwir_input_wrapper_(numFrames), "numFrames", _iwir_output_wrapper_(renderFrames), "renderFrames");
(ref_collection_at(frames, forCounter) := ( *renderFrames));
};
}; (*@\label{povray:inspire:pfor_lambda:end}@*)
let fun001 = fun(ref<ref<array<char,1>>> scene, ref<int<4>> totalFrames, ref<int<4>> framesPerActivity, ref<collection<collection<file<ref<array<char,1>>>>>> frames) -> unit { (*@\label{povray:inspire:pfor:start}@*)
pfor(getThreadGroup(0), 1, ( *totalFrames), ( *framesPerActivity), bind(counterStart, counterStop, counterStep){fun000(_iwir_input_wrapper_(scene), _iwir_input_wrapper_(framesPerActivity), _iwir_output_wrapper_(frames), counterStart, counterStop, counterStep)}); (*@\label{povray:inspire:pfor:loopstart}@*)
}; (*@\label{povray:inspire:pfor:end}@*)
let fun002 = fun(ref<ref<array<char,1>>> scene, ref<int<4>> totalFrames, ref<int<4>> framesPerActivity, decl ref<file<ref<array<char,1>>>> outFile) -> unit { (*@\label{povray:inspire:toplevel:start}@*)
decl ref<collection<collection<file<ref<array<char,1>>>>>> frames = (var(undefined(type<collection<collection<file<ref<array<char,1>>>>>>)));
fun001(_iwir_input_wrapper_(scene), _iwir_input_wrapper_(totalFrames), _iwir_input_wrapper_(framesPerActivity), _iwir_output_wrapper_(frames))
_iwir_atomic_("Convert", "Convert", _iwir_input_wrapper_(frames), "frames", _iwir_output_wrapper_(outFile), "outfile"); (*@\label{povray:inspire:convert:end}@*)
_iwir_wf_output_(type<file<ref<array<char,1>>>>, outFile)
}; (*@\label{povray:inspire:toplevel:end}@*)
let fun003 = fun() -> unit { (*@\label{povray:inspire:wfstart:start}@*)
decl ref<ref<array<char,1>>> scene = _iwir_wf_input_(type<ref<array<char,1>>>); (*@\label{povray:inspire:wfinputs:start}@*)
decl ref<int<4>> totalFrames = _iwir_wf_input_(type<int<4>>);
decl ref<int<4>> framesPerActivity = _iwir_wf_input_(type<int<4>>); (*@\label{povray:inspire:wfinputs:end}@*)
decl ref<file<ref<array<char,1>>>> outFile = (var(undefined(type<file<ref<array<char,1>>>>)));
fun002(_iwir_input_wrapper_(scene), _iwir_input_wrapper_(totalFrames), _iwir_input_wrapper_(framesPerActivity), _iwir_output_wrapper_(outFile))
_iwir_wf_output_(type<file<ref<array<char,1>>>>, outFile) (*@\label{povray:inspire:wfoutput}@*)
}; (*@\label{povray:inspire:wfstart:end}@*)
fun003() (*@\label{povray:inspire:programroot}@*)