===========================
- Do not show frame boundary border when stabilization isn't enabled.
- Separate stabilization settings from display in clip editor.
Now clip can contain stabilization data but still be displayed
un-stabilized in clip editor.
- Internal changes in stabilization:
* Use separated location/scale parameters rather than 4x4 matrix.
In some ares "decomposed" data is needed (text draw functions, i.e.).
Also such decomposed data could be used in compositor.
* MovieClip now uses own structure for cache where additional data
can be stored. MovieCache structure now one of properties in
this new structure.
* Get rid of stable image buffer stored in MovieClipStabilization
structure. Pre-created buffer for scaling still stored there.
This helps to keep playback realtime -- re-creating this buffer
introduces ~15% slowdown.
- Added sliders to 2D stabilization panel which controls intensity
of translation/scale which applies on shot.
- Added filter type to Stabilize2D compositor node. Supports nearest,
bilinear and bicubic interpolation.
- After discussion with Sebastian and Francois added new node called
Transformation. It can apply translation, rotation and scale. It's
not the same thing as applying this components separately -- all
transformation is happening inside "canvas". And it should be more
accurate on interpolation and sub-pixel translation.
Need to check order of applying translation/scale/rotation btw.
- Added output sockets to movie clip compositor node. They holds
stabilization data which can be used by Translate or Transform
nodes.
- Minor fix of UI issues in Display panel.
65 lines
2.2 KiB
C++
65 lines
2.2 KiB
C++
/*
|
|
* $Id$
|
|
*
|
|
* ***** BEGIN GPL LICENSE BLOCK *****
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*
|
|
* The Original Code is Copyright (C) 2009 Blender Foundation.
|
|
* All rights reserved.
|
|
*
|
|
* Contributor(s): Blender Foundation,
|
|
* Sergey Sharybin
|
|
*
|
|
* ***** END GPL LICENSE BLOCK *****
|
|
*/
|
|
|
|
/** \file ED_clip.h
|
|
* \ingroup editors
|
|
*/
|
|
|
|
#ifndef ED_MOVIECLIP_H
|
|
#define ED_MOVIECLIP_H
|
|
|
|
struct ARegion;
|
|
struct bContext;
|
|
struct ImBuf;
|
|
struct Main;
|
|
struct MovieClip;
|
|
struct SpaceClip;
|
|
struct wmEvent;
|
|
|
|
/* clip_editor.c */
|
|
void ED_space_clip_set(struct bContext *C, struct SpaceClip *sc, struct MovieClip *clip);
|
|
struct MovieClip *ED_space_clip(struct SpaceClip *sc);
|
|
void ED_space_clip_size(struct SpaceClip *sc, int *width, int *height);
|
|
void ED_space_clip_zoom(struct SpaceClip *sc, ARegion *ar, float *zoomx, float *zoomy);
|
|
void ED_clip_aspect(struct MovieClip *clip, float *aspx, float *aspy);
|
|
void ED_space_clip_aspect(struct SpaceClip *sc, float *aspx, float *aspy);
|
|
|
|
struct ImBuf *ED_space_clip_acquire_buffer(struct SpaceClip *sc);
|
|
struct ImBuf *ED_space_clip_acquire_stable_buffer(struct SpaceClip *sc, float loc[2], float *scale);
|
|
|
|
void ED_clip_update_frame(const struct Main *mainp, int cfra);
|
|
void ED_clip_view_selection(struct SpaceClip *sc, struct ARegion *ar, int fit);
|
|
|
|
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]);
|
|
|
|
/* clip_ops.c */
|
|
void ED_operatormacros_clip(void);
|
|
|
|
#endif /* ED_TEXT_H */
|