diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-04-30 20:19:12 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-04-30 20:19:12 +0400 |
commit | 323aedb81e8f606cfb1357053891e989ff393099 (patch) | |
tree | 1a499a859af45f363fa55effaa3293e9012dd69c /source/blender/editors/include/ED_clip.h | |
parent | 0dc49198227c82b91703a3f6bb4961a27fbdc167 (diff) |
Camera tracking: use texture buffers (if supported) to display clip editor frames
Use texture buffers to display frames of footage in clip editor. This allows
to apply bilinear filtering of proxied resolution which.
This also resolves incredibly slow performance when drawing 4K footage on
some videocards (was originally noticed on macbook pro). Also this allows
to avoid sending the whole frame to the video memory when working with a
single frame (i.e. before this patch the whole frame would be send to the
videocard when panning frame).
Diffstat (limited to 'source/blender/editors/include/ED_clip.h')
-rw-r--r-- | source/blender/editors/include/ED_clip.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_clip.h b/source/blender/editors/include/ED_clip.h index dfd0f258fc0..1a890b533ce 100644 --- a/source/blender/editors/include/ED_clip.h +++ b/source/blender/editors/include/ED_clip.h @@ -61,6 +61,11 @@ void ED_clip_point_undistorted_pos(SpaceClip *sc, float co[2], float nco[2]); void ED_clip_point_stable_pos(struct bContext *C, float x, float y, float *xr, float *yr); void ED_clip_mouse_pos(struct bContext *C, struct wmEvent *event, float co[2]); +int ED_space_clip_texture_buffer_supported(struct SpaceClip *sc); +int ED_space_clip_load_movieclip_buffer(struct SpaceClip *sc, struct ImBuf *ibuf); +void ED_space_clip_unload_movieclip_buffer(struct SpaceClip *sc); +void ED_space_clip_free_texture_buffer(struct SpaceClip *sc); + int ED_space_clip_show_trackedit(struct SpaceClip *sc); /* clip_ops.c */ |