Changeset View
Changeset View
Standalone View
Standalone View
source/blender/sequencer/intern/render.c
| Show First 20 Lines • Show All 1,017 Lines • ▼ Show 20 Lines | static ImBuf *seq_render_image_strip(const SeqRenderData *context, | ||||
| } | } | ||||
| BLI_join_dirfile(name, sizeof(name), seq->strip->dir, s_elem->name); | BLI_join_dirfile(name, sizeof(name), seq->strip->dir, s_elem->name); | ||||
| BLI_path_abs(name, BKE_main_blendfile_path_from_global()); | BLI_path_abs(name, BKE_main_blendfile_path_from_global()); | ||||
| /* Try to get a proxy image. */ | /* Try to get a proxy image. */ | ||||
| ibuf = seq_proxy_fetch(context, seq, timeline_frame); | ibuf = seq_proxy_fetch(context, seq, timeline_frame); | ||||
| if (ibuf != NULL) { | if (ibuf != NULL) { | ||||
| s_elem->orig_width = ibuf->x; | |||||
| s_elem->orig_height = ibuf->y; | |||||
| *r_is_proxy_image = true; | *r_is_proxy_image = true; | ||||
| return ibuf; | return ibuf; | ||||
| } | } | ||||
| /* Proxy not found, render original. */ | /* Proxy not found, render original. */ | ||||
| const int totfiles = seq_num_files(context->scene, seq->views_format, true); | const int totfiles = seq_num_files(context->scene, seq->views_format, true); | ||||
| bool is_multiview_render = seq_image_strip_is_multiview_render( | bool is_multiview_render = seq_image_strip_is_multiview_render( | ||||
| context->scene, seq, totfiles, name, prefix, ext); | context->scene, seq, totfiles, name, prefix, ext); | ||||
| ▲ Show 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | else { | ||||
| ibuf = seq_render_movie_strip_view( | ibuf = seq_render_movie_strip_view( | ||||
| context, seq, frame_index, timeline_frame, sanim, r_is_proxy_image); | context, seq, frame_index, timeline_frame, sanim, r_is_proxy_image); | ||||
| } | } | ||||
| if (ibuf == NULL) { | if (ibuf == NULL) { | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| if (*r_is_proxy_image == false) { | |||||
| seq->strip->stripdata->orig_width = ibuf->x; | seq->strip->stripdata->orig_width = ibuf->x; | ||||
| seq->strip->stripdata->orig_height = ibuf->y; | seq->strip->stripdata->orig_height = ibuf->y; | ||||
| } | |||||
| return ibuf; | return ibuf; | ||||
| } | } | ||||
| static ImBuf *seq_get_movieclip_ibuf(Sequence *seq, MovieClipUser user) | static ImBuf *seq_get_movieclip_ibuf(Sequence *seq, MovieClipUser user) | ||||
| { | { | ||||
| ImBuf *ibuf = NULL; | ImBuf *ibuf = NULL; | ||||
| float tloc[2], tscale, tangle; | float tloc[2], tscale, tangle; | ||||
| ▲ Show 20 Lines • Show All 802 Lines • Show Last 20 Lines | |||||