Blender V2.61 - r43446
|
00001 /* 00002 * ***** BEGIN GPL LICENSE BLOCK ***** 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License 00006 * as published by the Free Software Foundation; either version 2 00007 * of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software Foundation, 00016 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00017 * 00018 * The Original Code is Copyright (C) 2009 Blender Foundation. 00019 * All rights reserved. 00020 * 00021 * Contributor(s): Blender Foundation, 00022 * Sergey Sharybin 00023 * 00024 * ***** END GPL LICENSE BLOCK ***** 00025 */ 00026 00031 #ifndef ED_MOVIECLIP_H 00032 #define ED_MOVIECLIP_H 00033 00034 struct ARegion; 00035 struct bContext; 00036 struct ImBuf; 00037 struct Main; 00038 struct MovieClip; 00039 struct SpaceClip; 00040 struct wmEvent; 00041 00042 /* clip_editor.c */ 00043 int ED_space_clip_poll(struct bContext *C); 00044 00045 void ED_space_clip_set(struct bContext *C, struct SpaceClip *sc, struct MovieClip *clip); 00046 struct MovieClip *ED_space_clip(struct SpaceClip *sc); 00047 void ED_space_clip_size(struct SpaceClip *sc, int *width, int *height); 00048 void ED_space_clip_zoom(struct SpaceClip *sc, ARegion *ar, float *zoomx, float *zoomy); 00049 void ED_space_clip_aspect(struct SpaceClip *sc, float *aspx, float *aspy); 00050 00051 struct ImBuf *ED_space_clip_get_buffer(struct SpaceClip *sc); 00052 struct ImBuf *ED_space_clip_get_stable_buffer(struct SpaceClip *sc, float loc[2], float *scale, float *angle); 00053 00054 void ED_clip_update_frame(const struct Main *mainp, int cfra); 00055 int ED_clip_view_selection(struct SpaceClip *sc, struct ARegion *ar, int fit); 00056 00057 void ED_clip_point_undistorted_pos(SpaceClip *sc, float co[2], float nco[2]); 00058 void ED_clip_point_stable_pos(struct bContext *C, float x, float y, float *xr, float *yr); 00059 void ED_clip_mouse_pos(struct bContext *C, struct wmEvent *event, float co[2]); 00060 00061 /* clip_ops.c */ 00062 void ED_operatormacros_clip(void); 00063 00064 #endif /* ED_TEXT_H */