Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/sequencer.c
| Show First 20 Lines • Show All 629 Lines • ▼ Show 20 Lines | void BKE_sequencer_new_render_data(Main *bmain, | ||||
| r_context->preview_render_size = preview_render_size; | r_context->preview_render_size = preview_render_size; | ||||
| r_context->for_render = for_render; | r_context->for_render = for_render; | ||||
| r_context->motion_blur_samples = 0; | r_context->motion_blur_samples = 0; | ||||
| r_context->motion_blur_shutter = 0; | r_context->motion_blur_shutter = 0; | ||||
| r_context->skip_cache = false; | r_context->skip_cache = false; | ||||
| r_context->is_proxy_render = false; | r_context->is_proxy_render = false; | ||||
| r_context->view_id = 0; | r_context->view_id = 0; | ||||
| r_context->gpu_offscreen = NULL; | r_context->gpu_offscreen = NULL; | ||||
| r_context->gpu_samples = (scene->r.mode & R_OSA) ? scene->r.osa : 0; | |||||
| r_context->gpu_full_samples = (r_context->gpu_samples) && (scene->r.scemode & R_FULL_SAMPLE); | |||||
| } | } | ||||
| /* ************************* iterator ************************** */ | /* ************************* iterator ************************** */ | ||||
| /* *************** (replaces old WHILE_SEQ) ********************* */ | /* *************** (replaces old WHILE_SEQ) ********************* */ | ||||
| /* **************** use now SEQ_BEGIN () SEQ_END ***************** */ | /* **************** use now SEQ_BEGIN () SEQ_END ***************** */ | ||||
| /* sequence strip iterator: | /* sequence strip iterator: | ||||
| * - builds a full array, recursively into meta strips | * - builds a full array, recursively into meta strips | ||||
| ▲ Show 20 Lines • Show All 2,139 Lines • ▼ Show 20 Lines | if (seq->flag & SEQ_MAKE_FLOAT) { | ||||
| } | } | ||||
| } | } | ||||
| if (mul != 1.0f) { | if (mul != 1.0f) { | ||||
| multibuf(ibuf, mul); | multibuf(ibuf, mul); | ||||
| } | } | ||||
| if (ibuf->x != context->rectx || ibuf->y != context->recty) { | if (ibuf->x != context->rectx || ibuf->y != context->recty) { | ||||
| if (scene->r.mode & R_OSA) { | if (scene->display.render_aa > SCE_DISPLAY_AA_FXAA) { | ||||
| IMB_scaleImBuf(ibuf, (short)context->rectx, (short)context->recty); | IMB_scaleImBuf(ibuf, (short)context->rectx, (short)context->recty); | ||||
| } | } | ||||
| else { | else { | ||||
| IMB_scalefastImBuf(ibuf, (short)context->rectx, (short)context->recty); | IMB_scalefastImBuf(ibuf, (short)context->rectx, (short)context->recty); | ||||
| } | } | ||||
| } | } | ||||
| if (seq->modifiers.first) { | if (seq->modifiers.first) { | ||||
| ▲ Show 20 Lines • Show All 714 Lines • ▼ Show 20 Lines | #endif | ||||
| if ((sequencer_view3d_cb && do_seq_gl && camera) && is_thread_main) { | if ((sequencer_view3d_cb && do_seq_gl && camera) && is_thread_main) { | ||||
| char err_out[256] = "unknown"; | char err_out[256] = "unknown"; | ||||
| const int width = (scene->r.xsch * scene->r.size) / 100; | const int width = (scene->r.xsch * scene->r.size) / 100; | ||||
| const int height = (scene->r.ysch * scene->r.size) / 100; | const int height = (scene->r.ysch * scene->r.size) / 100; | ||||
| const char *viewname = BKE_scene_multiview_render_view_name_get(&scene->r, context->view_id); | const char *viewname = BKE_scene_multiview_render_view_name_get(&scene->r, context->view_id); | ||||
| unsigned int draw_flags = V3D_OFSDRAW_NONE; | unsigned int draw_flags = V3D_OFSDRAW_NONE; | ||||
| draw_flags |= (use_gpencil) ? V3D_OFSDRAW_SHOW_ANNOTATION : 0; | draw_flags |= (use_gpencil) ? V3D_OFSDRAW_SHOW_ANNOTATION : 0; | ||||
| draw_flags |= (context->gpu_full_samples) ? V3D_OFSDRAW_USE_FULL_SAMPLE : 0; | |||||
| draw_flags |= (context->scene->r.seq_flag & R_SEQ_OVERRIDE_SCENE_SETTINGS) ? | draw_flags |= (context->scene->r.seq_flag & R_SEQ_OVERRIDE_SCENE_SETTINGS) ? | ||||
| V3D_OFSDRAW_OVERRIDE_SCENE_SETTINGS : | V3D_OFSDRAW_OVERRIDE_SCENE_SETTINGS : | ||||
| 0; | 0; | ||||
| /* for old scene this can be uninitialized, | /* for old scene this can be uninitialized, | ||||
| * should probably be added to do_versions at some point if the functionality stays */ | * should probably be added to do_versions at some point if the functionality stays */ | ||||
| if (context->scene->r.seq_prev_type == 0) { | if (context->scene->r.seq_prev_type == 0) { | ||||
| context->scene->r.seq_prev_type = 3 /* == OB_SOLID */; | context->scene->r.seq_prev_type = 3 /* == OB_SOLID */; | ||||
| Show All 9 Lines | ibuf = sequencer_view3d_cb( | ||||
| &context->scene->display.shading, | &context->scene->display.shading, | ||||
| context->scene->r.seq_prev_type, | context->scene->r.seq_prev_type, | ||||
| camera, | camera, | ||||
| width, | width, | ||||
| height, | height, | ||||
| IB_rect, | IB_rect, | ||||
| draw_flags, | draw_flags, | ||||
| scene->r.alphamode, | scene->r.alphamode, | ||||
| context->gpu_samples, | 0, /* no aa samples */ | ||||
| viewname, | viewname, | ||||
| context->gpu_offscreen, | context->gpu_offscreen, | ||||
| err_out); | err_out); | ||||
| if (ibuf == NULL) { | if (ibuf == NULL) { | ||||
| fprintf(stderr, "seq_render_scene_strip failed to get opengl buffer: %s\n", err_out); | fprintf(stderr, "seq_render_scene_strip failed to get opengl buffer: %s\n", err_out); | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| ▲ Show 20 Lines • Show All 2,453 Lines • Show Last 20 Lines | |||||