Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/movieclip.c
| Show First 20 Lines • Show All 1,919 Lines • ▼ Show 20 Lines | if (ibuf) { | ||||
| } | } | ||||
| if (tmpibuf != ibuf) { | if (tmpibuf != ibuf) { | ||||
| IMB_freeImBuf(tmpibuf); | IMB_freeImBuf(tmpibuf); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| bool BKE_movieclip_proxy_enabled(MovieClip *clip) | |||||
| { | |||||
| return clip->flag & MCLIP_USE_PROXY; | |||||
| } | |||||
| float BKE_movieclip_remap_scene_to_clip_frame(const MovieClip *clip, float framenr) | float BKE_movieclip_remap_scene_to_clip_frame(const MovieClip *clip, float framenr) | ||||
| { | { | ||||
| return framenr - (float)clip->start_frame + 1.0f; | return framenr - (float)clip->start_frame + 1.0f; | ||||
| } | } | ||||
| float BKE_movieclip_remap_clip_to_scene_frame(const MovieClip *clip, float framenr) | float BKE_movieclip_remap_clip_to_scene_frame(const MovieClip *clip, float framenr) | ||||
| { | { | ||||
| return framenr + (float)clip->start_frame - 1.0f; | return framenr + (float)clip->start_frame - 1.0f; | ||||
| ▲ Show 20 Lines • Show All 213 Lines • Show Last 20 Lines | |||||