Blender V2.61 - r43446
|
#include <session.h>
CCL_NAMESPACE_BEGIN Session::Session | ( | const SessionParams & | params | ) |
Definition at line 34 of file session.cpp.
References SessionParams::background, buffers, addon::engine::create(), delayed_reset, SessionParams::device, device, DEVICE_CPU, device_use_gl, display, display_outdated, Session::DelayedReset::do_reset, gpu_draw_ready, gpu_need_tonemap, NULL, params, pause, paused_time, preview_time, reset_time, sample, Session::DelayedReset::samples, scene, session_thread, start_time, SessionParams::threads, and DeviceInfo::type.
Session::~Session | ( | ) |
Definition at line 62 of file session.cpp.
References buffers, device, display, gpu_need_tonemap, gpu_need_tonemap_cond, SessionParams::output_path, params, pause, pause_cond, pause_mutex, progress, scene, session_thread, tonemap(), wait(), and DisplayBuffer::write().
bool Session::draw | ( | BufferParams & | params | ) |
Definition at line 447 of file session.cpp.
References device_use_gl, draw_cpu(), and draw_gpu().
Referenced by BlenderSession::draw().
bool Session::draw_cpu | ( | BufferParams & | params | ) | [protected] |
Definition at line 283 of file session.cpp.
References device, display, display_outdated, DisplayBuffer::draw(), DisplayBuffer::draw_ready(), BufferParams::modified(), DisplayBuffer::mutex, params, DisplayBuffer::params, reset_time, SessionParams::text_timeout, and time_dt().
Referenced by draw().
bool Session::draw_gpu | ( | BufferParams & | params | ) | [protected] |
Definition at line 128 of file session.cpp.
References buffers, device, display, display_outdated, DisplayBuffer::draw(), gpu_draw_ready, gpu_need_tonemap, gpu_need_tonemap_cond, BufferParams::modified(), RenderBuffers::mutex, DisplayBuffer::mutex, params, DisplayBuffer::params, reset_time, SessionParams::text_timeout, time_dt(), and tonemap().
Referenced by draw().
void Session::path_trace | ( | Tile & | tile | ) | [protected] |
Definition at line 580 of file session.cpp.
References TileManager::State::buffer, RenderBuffers::buffer, DeviceTask::buffer, buffers, device, device_memory::device_pointer, BufferParams::full_x, BufferParams::full_y, BufferParams::get_offset_stride(), DeviceTask::h, Tile::h, DeviceTask::offset, DeviceTask::PATH_TRACE, DeviceTask::resolution, TileManager::State::resolution, DeviceTask::rng_state, RenderBuffers::rng_state, DeviceTask::sample, TileManager::State::sample, TileManager::state, DeviceTask::stride, Device::task_add(), tile_manager, DeviceTask::w, Tile::w, DeviceTask::x, Tile::x, DeviceTask::y, and Tile::y.
bool Session::ready_to_reset | ( | ) |
Definition at line 97 of file session.cpp.
References SessionParams::cancel_timeout, display_outdated, params, reset_time, SessionParams::reset_timeout, and time_dt().
Referenced by BlenderSession::draw(), and BlenderSession::synchronize().
void Session::reset | ( | BufferParams & | params, |
int | samples | ||
) |
Definition at line 474 of file session.cpp.
References device_use_gl, reset_cpu(), and reset_gpu().
Referenced by BlenderSession::create_session(), BlenderSession::draw(), and BlenderSession::synchronize().
void Session::reset_ | ( | BufferParams & | params, |
int | samples | ||
) | [protected] |
Definition at line 455 of file session.cpp.
References SessionParams::background, buffers, device, display, gpu_draw_ready, BufferParams::modified(), params, RenderBuffers::params, paused_time, preview_time, progress, TileManager::reset(), DisplayBuffer::reset(), RenderBuffers::reset(), sample, start_time, tile_manager, and time_dt().
Referenced by reset_gpu(), and run_cpu().
void Session::reset_cpu | ( | BufferParams & | params, |
int | samples | ||
) | [protected] |
Definition at line 268 of file session.cpp.
References delayed_reset, device, display_outdated, Session::DelayedReset::do_reset, Session::DelayedReset::mutex, Session::DelayedReset::params, pause_cond, reset_time, Session::DelayedReset::samples, Device::task_cancel(), and time_dt().
Referenced by reset().
void Session::reset_gpu | ( | BufferParams & | params, |
int | samples | ||
) | [protected] |
Definition at line 109 of file session.cpp.
References buffers, display, display_outdated, gpu_need_tonemap, gpu_need_tonemap_cond, RenderBuffers::mutex, DisplayBuffer::mutex, pause_cond, reset_(), reset_time, and time_dt().
Referenced by reset().
void Session::run | ( | ) | [protected] |
Definition at line 414 of file session.cpp.
References device, device_use_gl, Device::error_message(), SessionParams::experimental, Device::load_kernels(), params, progress, run_cpu(), and run_gpu().
Referenced by start().
void Session::run_cpu | ( | ) | [protected] |
Definition at line 304 of file session.cpp.
References SessionParams::background, buffers, delayed_reset, device, display, Session::DelayedReset::do_reset, Device::error_message(), RenderBuffers::mutex, DisplayBuffer::mutex, Session::DelayedReset::mutex, TileManager::next(), params, Session::DelayedReset::params, path_trace(), pause, pause_cond, pause_mutex, paused_time, progress, reset_(), Session::DelayedReset::samples, start_time, TileManager::state, Device::task_wait(), tile_manager, TileManager::State::tiles, time_dt(), tonemap(), update_scene(), and update_status_time().
Referenced by run().
void Session::run_gpu | ( | ) | [protected] |
Definition at line 159 of file session.cpp.
References SessionParams::background, buffers, device, Device::error_message(), gpu_draw_ready, gpu_need_tonemap, gpu_need_tonemap_cond, RenderBuffers::mutex, TileManager::next(), params, path_trace(), pause, pause_cond, pause_mutex, paused_time, progress, reset_time, start_time, TileManager::state, Device::task_wait(), tile_manager, TileManager::State::tiles, time_dt(), update_scene(), and update_status_time().
Referenced by run().
void Session::set_pause | ( | bool | pause | ) |
Definition at line 495 of file session.cpp.
References pause, pause_cond, and pause_mutex.
Referenced by BlenderSession::create_session(), and BlenderSession::synchronize().
void Session::set_samples | ( | int | samples | ) |
Definition at line 482 of file session.cpp.
References params, pause_cond, pause_mutex, SessionParams::samples, TileManager::set_samples(), and tile_manager.
Referenced by BlenderSession::synchronize().
void Session::start | ( | ) |
Definition at line 92 of file session.cpp.
References function_bind, run(), and session_thread.
Referenced by BlenderSession::BlenderSession(), BlenderSession::render(), and BlenderSession::synchronize().
void Session::tonemap | ( | ) | [protected] |
Definition at line 598 of file session.cpp.
References TileManager::State::buffer, RenderBuffers::buffer, DeviceTask::buffer, buffers, device, device_memory::device_pointer, display, display_outdated, DisplayBuffer::draw_set(), BufferParams::full_x, BufferParams::full_y, BufferParams::get_offset_stride(), DeviceTask::h, BufferParams::height, DeviceTask::offset, DeviceTask::resolution, TileManager::State::resolution, DisplayBuffer::rgba, DeviceTask::rgba, DeviceTask::sample, TileManager::State::sample, TileManager::state, DeviceTask::stride, Device::task_add(), Device::task_wait(), tile_manager, DeviceTask::TONEMAP, DeviceTask::w, BufferParams::width, DeviceTask::x, and DeviceTask::y.
Referenced by draw_gpu(), run_cpu(), and ~Session().
void Session::update_scene | ( | ) | [protected] |
Definition at line 520 of file session.cpp.
References TileManager::State::buffer, Scene::camera, device, Scene::device_update(), BufferParams::full_height, BufferParams::full_width, Camera::height, Scene::mutex, Scene::need_update(), progress, scene, TileManager::state, Camera::tag_update(), tile_manager, and Camera::width.
void Session::update_status_time | ( | bool | show_pause = false , |
bool | show_done = false |
||
) | [protected] |
Definition at line 544 of file session.cpp.
References params, paused_time, preview_time, progress, SessionParams::progressive, TileManager::State::resolution, sample, TileManager::State::sample, SessionParams::samples, TileManager::state, string_printf(), tile_manager, and time_dt().
void Session::wait | ( | ) |
Definition at line 512 of file session.cpp.
References NULL, and session_thread.
Referenced by BlenderSession::render(), and ~Session().
Definition at line 101 of file session.h.
Referenced by draw_gpu(), path_trace(), reset_(), reset_gpu(), run_cpu(), run_gpu(), Session(), tonemap(), BlenderSession::write_render_result(), and ~Session().
struct Session::DelayedReset Session::delayed_reset [protected] |
Referenced by reset_cpu(), run_cpu(), and Session().
Definition at line 99 of file session.h.
Referenced by draw_cpu(), draw_gpu(), path_trace(), reset_(), reset_cpu(), run(), run_cpu(), run_gpu(), Session(), tonemap(), update_scene(), and ~Session().
bool Session::device_use_gl [protected] |
Definition at line 102 of file session.h.
Referenced by draw_cpu(), draw_gpu(), reset_(), reset_gpu(), run_cpu(), Session(), tonemap(), and ~Session().
volatile bool Session::display_outdated [protected] |
Definition at line 149 of file session.h.
Referenced by draw_cpu(), draw_gpu(), ready_to_reset(), reset_cpu(), reset_gpu(), Session(), and tonemap().
volatile bool Session::gpu_draw_ready [protected] |
volatile bool Session::gpu_need_tonemap [protected] |
Definition at line 152 of file session.h.
Referenced by draw_gpu(), reset_gpu(), run_gpu(), Session(), and ~Session().
Definition at line 153 of file session.h.
Referenced by draw_gpu(), reset_gpu(), run_gpu(), and ~Session().
Definition at line 104 of file session.h.
Referenced by draw_cpu(), draw_gpu(), BlenderSession::get_progress(), ready_to_reset(), reset_(), run(), run_cpu(), run_gpu(), Session(), set_samples(), BlenderSession::synchronize(), update_status_time(), and ~Session().
bool Session::pause [protected] |
Definition at line 155 of file session.h.
Referenced by run_cpu(), run_gpu(), Session(), set_pause(), and ~Session().
thread_condition_variable Session::pause_cond [protected] |
Definition at line 156 of file session.h.
Referenced by reset_cpu(), reset_gpu(), run_cpu(), run_gpu(), set_pause(), set_samples(), and ~Session().
thread_mutex Session::pause_mutex [protected] |
Definition at line 157 of file session.h.
Referenced by run_cpu(), run_gpu(), set_pause(), set_samples(), and ~Session().
double Session::paused_time [protected] |
double Session::preview_time [protected] |
Definition at line 161 of file session.h.
Referenced by reset_(), Session(), and update_status_time().
Definition at line 103 of file session.h.
Referenced by BlenderSession::create_session(), BlenderSession::get_progress(), BlenderSession::get_status(), BlenderSession::render(), reset_(), run(), run_cpu(), run_gpu(), BlenderSession::test_cancel(), update_scene(), update_status_time(), BlenderSession::write_render_result(), and ~Session().
double Session::reset_time [protected] |
Definition at line 160 of file session.h.
Referenced by draw_cpu(), draw_gpu(), ready_to_reset(), reset_cpu(), reset_gpu(), run_gpu(), and Session().
int Session::sample |
Definition at line 105 of file session.h.
Referenced by reset_(), Session(), and update_status_time().
Definition at line 100 of file session.h.
Referenced by BlenderSession::create_session(), BlenderSession::draw(), Session(), BlenderSession::synchronize(), update_scene(), and ~Session().
thread* Session::session_thread [protected] |
double Session::start_time [protected] |
TileManager Session::tile_manager [protected] |
Definition at line 144 of file session.h.
Referenced by path_trace(), reset_(), run_cpu(), run_gpu(), set_samples(), tonemap(), update_scene(), and update_status_time().