57static void draw_keyframe(
int frame,
int cfra,
int sfra,
float framelen,
int width,
uint pos)
59 int height = (frame == cfra) ? 22 : 10;
60 int x = (frame - sfra) * framelen;
88 const int marker_index)
95 BLI_assert(marker_index < plane_track->markersnr);
104 const int marker_index)
119 const int marker_index)
126 BLI_assert(marker_index < plane_track->markersnr);
136 int *points, totseg, i, a;
137 float sfra = scene->
r.
sfra, efra = scene->
r.
efra, framelen = region->
winx / (efra - sfra + 1);
158 for (i = sfra - clip->
start_frame + 1, a = 0; i <= efra - clip->start_frame + 1; i++) {
162 while (a < markersnr) {
165 if (marker_framenr >= i) {
169 if (a < markersnr - 1 &&
178 a =
min_ii(a, markersnr - 1);
204 int n = reconstruction->
camnr;
209 for (i = sfra, a = 0; i <= efra; i++) {
213 if (cameras[a].framenr == i) {
217 if (cameras[a].framenr > i) {
270 bool full_redraw =
false;
272 if (tracking->
stats) {
283 float fill_color[4] = {0.0f, 0.0f, 0.0f, 0.6f};
299 immRectf(pos,
x,
y,
x + zoomx * width,
y + zoomy * height);
314 bool use_filter =
true;
344 x,
y, ibuf, &frame, zoomx * width / ibuf->
x, zoomy * height / ibuf->
y);
349 SpaceClip *sc,
ARegion *region,
int width,
int height,
float zoomx,
float zoomy)
373 float viewport_size[4];
429 int point_index = count;
431 for (
int i = 0; i < count; ++i) {
435 point_index += direction;
436 current_frame += direction;
447 uint position_attribute,
448 const int start_point,
449 const int num_points)
451 if (num_points == 0) {
455 for (
int i = 0; i < num_points; i++) {
463 uint position_attribute,
464 const int start_point,
465 const int num_points)
468 for (
int i = 0; i < num_points; i++) {
478 uint position_attribute,
479 const int start_point,
480 const int num_points)
482 if (num_points < 2) {
486 for (
int i = 0; i < num_points; i++) {
495#define MAX_STATIC_PATH 64
515 if (num_points_before == 0 && num_points_after == 0) {
519 int num_all_points = num_points_before + num_points_after;
521 if (num_points_before != 0 && num_points_after != 0) {
525 const int path_start_index = count - num_points_before + 1;
526 const int path_center_index = count;
577 if (path != path_static) {
581#undef MAX_STATIC_PATH
587 const float marker_pos[2],
593 bool show_search =
false;
596 px[0] = 1.0f / width / sc->
zoom;
597 px[1] = 1.0f / height / sc->
zoom;
705 const bool is_track_active,
706 const bool is_area_selected,
707 const float color[3],
708 const float selected_color[3])
711 if (is_track_active) {
714 else if (is_area_selected) {
722 if (is_track_active) {
725 else if (is_area_selected) {
740 const float marker_pos[2],
748 bool show_search =
false;
749 float col[3], scol[3];
755 px[0] = 1.0f / width / sc->
zoom;
756 px[1] = 1.0f / height / sc->
zoom;
897 for (
int i = 0; i < 4; i++) {
898 int next = (i + 1) % 4;
900 len_sq =
min_ff(cur_len, len_sq);
903 return sqrtf(len_sq);
907 float x,
float y,
float dx,
float dy,
int outline,
const float px[2],
uint pos)
923 float x,
float y,
float dx,
float dy,
int outline,
const float px[2],
uint pos)
945 const float marker_pos[2],
953 float dx, dy, patdx, patdy, searchdx, searchdy;
955 float col[3], scol[3], px[2], side;
976 dx = 6.0f / width / sc->
zoom;
977 dy = 6.0f / height / sc->
zoom;
986 px[0] = 1.0f / sc->
zoom / width / sc->
scale;
987 px[1] = 1.0f / sc->
zoom / height / sc->
scale;
1004 float pat_min[2], pat_max[2];
1013 for (
int i = 0; i < 4; i++) {
1046 const float marker_pos[2],
1053 char str[128] = {0},
state[64] = {0};
1054 float dx = 0.0f, dy = 0.0f, fontsize, pos[3];
1055 uiStyle *style =
U.uistyles.first();
1086 float pat_min[2], pat_max[2];
1093 pos[0] = (marker_pos[0] + dx) * width;
1094 pos[1] = (marker_pos[1] + dy) * height;
1099 pos[0] = pos[0] * zoomx;
1100 pos[1] = pos[1] * zoomy - fontsize;
1149 const float start_corner[2],
1150 const float end_corner[2],
1158 direction[0] *= width;
1159 direction[1] *= height;
1162 direction[0] /= width;
1163 direction[1] /= height;
1170 gl_matrix[0][0] = matrix[0][0];
1171 gl_matrix[0][1] = matrix[0][1];
1172 gl_matrix[0][2] = 0.0f;
1173 gl_matrix[0][3] = matrix[0][2];
1175 gl_matrix[1][0] = matrix[1][0];
1176 gl_matrix[1][1] = matrix[1][1];
1177 gl_matrix[1][2] = 0.0f;
1178 gl_matrix[1][3] = matrix[1][2];
1180 gl_matrix[2][0] = 0.0f;
1181 gl_matrix[2][1] = 0.0f;
1182 gl_matrix[2][2] = 1.0f;
1183 gl_matrix[2][3] = 0.0f;
1185 gl_matrix[3][0] = matrix[2][0];
1186 gl_matrix[3][1] = matrix[2][1];
1187 gl_matrix[3][2] = 0.0f;
1188 gl_matrix[3][3] = matrix[2][2];
1196 if (
image ==
nullptr) {
1207 imm_format,
"texCoord", gpu::VertAttrType::SFLOAT_32_32);
1221 const void *texture_data =
nullptr;
1227 texture_format = gpu::TextureFormat::SFLOAT_16_16_16_16;
1230 texture_format = gpu::TextureFormat::SFLOAT_16_16_16;
1233 texture_format = gpu::TextureFormat::SFLOAT_16;
1239 texture_format = gpu::TextureFormat::UNORM_8_8_8_8;
1243 float frame_corners[4][2] = {{0.0f, 0.0f}, {1.0f, 0.0f}, {1.0f, 1.0f}, {0.0f, 1.0f}};
1244 float perspective_matrix[3][3];
1245 float gl_matrix[4][4];
1246 bool transparent =
false;
1248 frame_corners, plane_marker->
corners, perspective_matrix);
1307 bool is_active_track,
1313 bool is_selected_track = (plane_track->
flag &
SELECT) != 0;
1314 const bool has_image = plane_track->
image !=
nullptr &&
1316 const bool draw_plane_quad = !has_image || plane_track->
image_opacity == 0.0f;
1318 float color[3], selected_color[3];
1320 px[0] = 1.0f / width / sc->
zoom;
1321 px[1] = 1.0f / height / sc->
zoom;
1324 if (draw_outline ==
false) {
1328 if (draw_plane_quad || is_selected_track) {
1334 float viewport_size[4];
1341 if (is_selected_track) {
1345 if (draw_plane_quad) {
1346 const bool stipple = !draw_outline && tiny;
1347 const bool thick = draw_outline && !tiny;
1375 if (!draw_outline) {
1412 if (is_selected_track) {
1422 for (
int i = 0; i < 4; i++) {
1450 bool is_active_track,
1455 sc, scene, plane_track, plane_marker, is_active_track,
false, width, height);
1462 bool is_active_track,
1471 draw_plane_marker(sc, scene, plane_track, plane_marker, is_active_track, width, height);
1491 float *marker_pos =
nullptr, *fp, *active_pos =
nullptr, cur_pos[2];
1514 sc, scene, &plane_track, framenr, &plane_track == active_plane_track, width, height);
1549 if (&track == active_track) {
1599 const int act = &track == active_track;
1629 float pos[4], vec[4], mat[4][4], aspy;
1650 pos[0] = (pos[0] / (pos[3] * 2.0f) + 0.5f) * width;
1651 pos[1] = (pos[1] / (pos[3] * 2.0f) + 0.5f) * height * aspy;
1655 if (npos[0] >= 0.0f && npos[1] >= 0.0f && npos[0] <= width && npos[1] <= height * aspy) {
1656 vec[0] = (marker->
pos[0] + track.
offset[0]) * width;
1657 vec[1] = (marker->
pos[1] + track.
offset[1]) * height * aspy;
1662 float4(0.0f, 1.0f, 0.0f, 1.0f) :
1663 float4(1.0f, 0.0f, 0.0f, 1.0f));
1694 const int act = &track == active_track;
1698 draw_marker_texts(sc, &track, marker, cur_pos, act, width, height, zoomx, zoomy);
1710 MEM_delete(marker_pos);
1724 float tpos[2], grid[11][11][2];
1728 float dx =
float(width) / n, dy =
float(height) / n * aspy;
1729 float offsx = 0.0f, offsy = 0.0f;
1754 float val[4][2], idx[4][2];
1757 for (
int a = 0; a < 4; a++) {
1766 for (
int i = 0; i <= n; i++) {
1767 for (
int j = 0; j <= n; j++) {
1768 if (i == 0 || j == 0 || i == n || j == n) {
1769 const float pos[2] = {dx * j, dy * i};
1772 for (
int a = 0; a < 4; a++) {
1776 ok = tpos[a % 2] < val[a][a % 2];
1779 ok = tpos[a % 2] > val[a][a % 2];
1794 for (
int a = 0; a < 4; a++) {
1795 const float pos[2] = {idx[a][0] * dx, idx[a][1] * dy};
1802 dx = (
max[0] -
min[0]) / n;
1803 dy = (
max[1] -
min[1]) / n;
1805 for (
int i = 0; i <= n; i++) {
1806 for (
int j = 0; j <= n; j++) {
1807 const float pos[2] = {
min[0] + dx * j,
min[1] + dy * i};
1811 grid[i][j][0] /= width;
1812 grid[i][j][1] /= height * aspy;
1818 for (
int i = 0; i <= n; i++) {
1821 for (
int j = 0; j <= n; j++) {
1828 for (
int j = 0; j <= n; j++) {
1831 for (
int i = 0; i <= n; i++) {
1865 for (
int i = 0; i < stroke->
totpoints - 1; i++) {
1866 float pos[2], npos[2], dpos[2],
len;
1869 pos[0] = (stroke->
points[i].
x + offsx) * width;
1870 pos[1] = (stroke->
points[i].
y + offsy) * height * aspy;
1872 npos[0] = (stroke->
points[i + 1].
x + offsx) * width;
1873 npos[1] = (stroke->
points[i + 1].
y + offsy) * height * aspy;
1889 for (
int j = 0; j <= steps; j++) {
1906 stroke = stroke->
next;
1909 frame = frame->
next;
1925 ImBuf *ibuf =
nullptr;
1939 float translation[2];
1941 float smat[4][4], ismat[4][4];
1947 if (ibuf !=
nullptr && width != ibuf->
x) {
1958 smat[0][0] = 1.0f / width;
1959 smat[1][1] = 1.0f / height;
1984 if (width && height) {
2021 if (is_track_source) {
#define TRACK_VIEW_SELECTED(sc, track)
#define mul_m4_series(...)
#define SNPRINTF_UTF8(dst, format,...)
#define STRNCPY_UTF8(dst, src)
Read Blender memory allocation and freeing.
#define INIT_MINMAX2(min, max)
#define UNUSED_VARS_NDEBUG(...)
TEX_TEMPLATE DataVec texture(T, FltCoord, float=0.0f) RET
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
void font_theme_color_set(int fontid, int colorid)
void get_color_3fv(int colorid, float col[3])
void get_color_4fv(int colorid, float col[4])
void get_color_shade_4fv(int colorid, int offset, float col[4])
void get_color_shade_4ubv(int colorid, int offset, unsigned char col[4])
void view2d_view_to_region_fl(const View2D *v2d, float x, float y, float *r_region_x, float *r_region_y) ATTR_NONNULL()
void view2d_view_to_region(const View2D *v2d, float x, float y, int *r_region_x, int *r_region_y) ATTR_NONNULL()
MINLINE float min_ff(float a, float b)
static void draw_marker_slide_triangle(float x, float y, float dx, float dy, int outline, const float px[2], uint pos)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void ED_space_clip_get_size(const SpaceClip *sc, int *r_width, int *r_height)
MovieTrackingMarker * BKE_tracking_marker_get_exact(MovieTrackingTrack *track, int framenr)
static void draw_track_path(SpaceClip *sc, MovieClip *, MovieTrackingTrack *track)
static void homogeneous_2d_to_gl_matrix(float matrix[3][3], float gl_matrix[4][4])
static void draw_stabilization_border(SpaceClip *sc, ARegion *region, int width, int height, float zoomx, float zoomy)
void BKE_tracking_get_projection_matrix(MovieTracking *tracking, MovieTrackingObject *tracking_object, int framenr, int winx, int winy, float mat[4][4])
void GPU_texture_update(gpu::Texture *texture, eGPUDataFormat data_format, const void *data)
ImBuf * ED_space_clip_get_buffer(const SpaceClip *sc)
static void draw_movieclip_muted(ARegion *region, int width, int height, float zoomx, float zoomy)
void BLF_position(int fontid, float x, float y, float z)
static void draw_marker_texts(SpaceClip *sc, const MovieTrackingTrack *track, const MovieTrackingMarker *marker, const float marker_pos[2], int act, int width, int height, float zoomx, float zoomy)
void immUniformColor3f(float r, float g, float b)
void ED_annotation_draw_2dimage(const bContext *C)
static void draw_tracking_tracks(SpaceClip *sc, Scene *scene, ARegion *region, MovieClip *clip, int width, int height, float zoomx, float zoomy)
MINLINE void copy_v3_v3(float r[3], const float a[3])
void IMB_colormanagement_finish_glsl_draw()
MINLINE void add_v2_v2v2(float r[2], const float a[2], const float b[2])
static void draw_plane_marker(SpaceClip *sc, Scene *scene, MovieTrackingPlaneTrack *plane_track, MovieTrackingPlaneMarker *plane_marker, bool is_active_track, int width, int height)
static int track_to_path_segment(SpaceClip *sc, MovieTrackingTrack *track, int direction, TrackPathPoint *path)
void immUniformColor4ub(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
MINLINE void mul_v2_fl(float r[2], float f)
void immUniform2f(const char *name, float x, float y)
void immBeginAtMost(GPUPrimType, uint max_vertex_len)
static void draw_plane_marker_image(Scene *scene, MovieTrackingPlaneTrack *plane_track, MovieTrackingPlaneMarker *plane_marker)
MINLINE void copy_v2_v2(float r[2], const float a[2])
void imm_draw_box_checker_2d(float x1, float y1, float x2, float y2, bool clear_alpha=false)
MovieTrackingObject * BKE_tracking_object_get_active(const MovieTracking *tracking)
GPUVertFormat * immVertexFormat()
void ED_clip_point_undistorted_pos(const SpaceClip *sc, const float co[2], float r_co[2])
void GPU_point_size(float size)
void ED_region_cache_draw_background(ARegion *region)
SpaceClip * CTX_wm_space_clip(const bContext *C)
bool invert_m4_m4(float inverse[4][4], const float mat[4][4])
void immBegin(GPUPrimType, uint vertex_len)
bool IMB_colormanagement_setup_glsl_draw_from_space(const ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings, const ColorSpace *from_colorspace, float dither, bool predivide, bool do_overlay_merge, ColorManagedDisplaySpace display_space=DISPLAY_SPACE_DRAW, float opacity=1.0f)
MINLINE void sub_v2_v2v2(float r[2], const float a[2], const float b[2])
MINLINE float normalize_v2(float n[2])
@ TH_PATH_KEYFRAME_BEFORE
void immUniformColor4fv(const float rgba[4])
static void draw_plane_track(SpaceClip *sc, Scene *scene, MovieTrackingPlaneTrack *plane_track, int framenr, bool is_active_track, int width, int height)
static bool generic_track_is_marker_keyframed(const MovieTrackingTrack *track, const MovieTrackingPlaneTrack *plane_track, const int marker_index)
void BKE_tracking_stabilization_data_to_mat4(int width, int height, float aspect, float translation[2], float scale, float angle, float mat[4][4])
@ MCLIP_PROXY_RENDER_UNDISTORT
static void draw_track_path_keyframe_points(const TrackPathPoint *path, uint position_attribute, const int start_point, const int num_points)
void immAttr2f(uint attr_id, float x, float y)
@ MCLIP_PROXY_RENDER_SIZE_FULL
@ MCLIP_PROXY_RENDER_SIZE_100
void ED_region_cache_draw_cached_segments(ARegion *region, int num_segments, const int *points, int sfra, int efra)
static void draw_plane_marker_outline(SpaceClip *sc, Scene *scene, MovieTrackingPlaneTrack *plane_track, MovieTrackingPlaneMarker *plane_marker, int width, int height)
static void track_colors(const MovieTrackingTrack *track, int act, float r_col[3], float r_scol[3])
static float get_shortest_pattern_side(const MovieTrackingMarker *marker)
void GPU_matrix_mul(const float m[4][4])
void GPU_line_width(float width)
void GPU_matrix_scale_2f(float x, float y)
BLI_INLINE bool ED_space_clip_marker_is_visible(const SpaceClip *space_clip, const MovieTrackingObject *tracking_object, const MovieTrackingTrack *track, const MovieTrackingMarker *marker)
static bool generic_track_is_marker_enabled(const MovieTrackingTrack *track, const MovieTrackingPlaneTrack *plane_track, const int marker_index)
VecBase< float, 4 > float4
void immBindBuiltinProgram(GPUBuiltinShader shader_id)
static void draw_track_path_points(const TrackPathPoint *path, uint position_attribute, const int start_point, const int num_points)
void BKE_movieclip_get_cache_segments(MovieClip *clip, const MovieClipUser *user, int *r_totseg, int **r_points)
void mul_m4_v3(const float M[4][4], float r[3])
void BKE_tracking_marker_pattern_minmax(const MovieTrackingMarker *marker, float min[2], float max[2])
static int generic_track_get_marker_framenr(const MovieTrackingTrack *track, const MovieTrackingPlaneTrack *plane_track, const int marker_index)
void immUniformThemeColor(int color_id)
void BLF_size(int fontid, float size)
void IMB_freeImBuf(ImBuf *ibuf)
void immUniform1f(const char *name, float x)
void immVertex2f(uint attr_id, float x, float y)
MINLINE void add_v2_v2(float r[2], const float a[2])
@ GPU_TEXTURE_USAGE_SHADER_READ
void BKE_tracking_undistort_v2(MovieTracking *tracking, int image_width, int image_height, const float co[2], float r_co[2])
void minmax_v2v2_v2(float min[2], float max[2], const float vec[2])
void clip_draw_main(const bContext *C, SpaceClip *sc, ARegion *region)
void GPU_viewport_size_get_f(float coords[4])
@ GPU_SHADER_3D_UNIFORM_COLOR
@ GPU_SHADER_3D_POINT_UNIFORM_COLOR
@ GPU_SHADER_3D_LINE_DASHED_UNIFORM_COLOR
int ED_space_clip_get_clip_frame_number(const SpaceClip *sc)
void immUniformThemeColorShade(int color_id, int offset)
void clip_draw_grease_pencil(bContext *C, int onlyv2d)
void GPU_texture_filter_mode(gpu::Texture *texture, bool use_filter)
void clip_draw_cache_and_notes(const bContext *C, SpaceClip *sc, ARegion *region)
ImBuf * ED_space_clip_get_stable_buffer(const SpaceClip *sc, float loc[2], float *scale, float *angle)
static void draw_plane_marker_ex(SpaceClip *sc, Scene *scene, MovieTrackingPlaneTrack *plane_track, MovieTrackingPlaneMarker *plane_marker, bool is_active_track, bool draw_outline, int width, int height)
static void marker_to_path_point(SpaceClip *sc, const MovieTrackingTrack *track, const MovieTrackingMarker *marker, TrackPathPoint *point)
void immUniformColor4f(float r, float g, float b, float a)
static void draw_keyframe(int frame, int cfra, int sfra, float framelen, int width, uint pos)
void unit_m4(float m[4][4])
void ED_region_image_metadata_draw(int x, int y, const ImBuf *ibuf, const rctf *frame, float zoomx, float zoomy)
@ TRACKING_2D_STABILIZATION
int isect_point_quad_v2(const float p[2], const float v1[2], const float v2[2], const float v3[2], const float v4[2])
void BKE_tracking_homography_between_two_quads(float reference_corners[4][2], float corners[4][2], float H[3][3])
@ PATH_POINT_FLAG_KEYFRAME
static void draw_movieclip_notes(SpaceClip *sc, ARegion *region)
MINLINE void mul_v2_v2fl(float r[2], const float a[2], float f)
void GPU_matrix_translate_2f(float x, float y)
void BLF_draw(int fontid, const char *str, size_t str_len, ResultBLF *r_info=nullptr) ATTR_NONNULL(2)
uint GPU_vertformat_attr_add(GPUVertFormat *format, StringRef name, gpu::VertAttrType type)
void BLF_color4ubv(int fontid, const unsigned char rgba[4])
static void draw_marker_slide_zones(SpaceClip *sc, const MovieTrackingTrack *track, const MovieTrackingMarker *marker, const float marker_pos[2], int outline, int sel, int act, int width, int height, uint pos)
void ED_draw_imbuf_ctx(const bContext *C, const ImBuf *ibuf, float x, float y, bool use_filter, float zoom_x, float zoom_y)
bool IMB_alpha_affects_rgb(const ImBuf *ibuf)
ImBuf * BKE_image_acquire_ibuf(Image *ima, ImageUser *iuser, void **r_lock)
MINLINE void mul_v3_v3fl(float r[3], const float a[3], float f)
MINLINE float len_squared_v2(const float v[2]) ATTR_WARN_UNUSED_RESULT
static void draw_movieclip_buffer(const bContext *C, SpaceClip *sc, ARegion *region, const ImBuf *ibuf, int width, int height, float zoomx, float zoomy)
int BLF_height_max(int fontid) ATTR_WARN_UNUSED_RESULT
static void draw_distortion(SpaceClip *sc, ARegion *region, MovieClip *clip, int width, int height, float zoomx, float zoomy)
void ED_region_grid_draw(ARegion *region, float zoomx, float zoomy, float x0, float y0)
MovieClip * ED_space_clip_get_clip(const SpaceClip *sc)
void imm_draw_box_wire_2d(uint pos, float x1, float y1, float x2, float y2)
void ED_mask_draw_frames(Mask *mask, ARegion *region, int cfra, int sfra, int efra)
void GPU_texture_bind(gpu::Texture *texture, int unit)
void GPU_texture_free(gpu::Texture *texture)
MINLINE float len_v2v2(const float v1[2], const float v2[2]) ATTR_WARN_UNUSED_RESULT
static void plane_track_colors(bool is_active, float r_color[3], float r_selected_color[3])
MovieTrackingPlaneMarker * BKE_tracking_plane_marker_get(MovieTrackingPlaneTrack *plane_track, int framenr)
bool BKE_image_has_ibuf(Image *ima, ImageUser *iuser)
static void draw_movieclip_cache(SpaceClip *sc, ARegion *region, MovieClip *clip, Scene *scene)
static void draw_marker_outline(SpaceClip *sc, const MovieTrackingTrack *track, const MovieTrackingMarker *marker, const float marker_pos[2], int width, int height, uint position)
void GPU_texture_unbind(gpu::Texture *texture)
void GPU_matrix_translate_2fv(const float vec[2])
Scene * CTX_data_scene(const bContext *C)
void ED_annotation_draw_view2d(const bContext *C, bool onlyv2d)
MINLINE void sub_v2_v2(float r[2], const float a[2])
void immUniformColor3fv(const float rgb[3])
void immVertex3f(uint attr_id, float x, float y, float z)
void GPU_blend(GPUBlend blend)
static void getArrowEndPoint(const int width, const int height, const float zoom, const float start_corner[2], const float end_corner[2], float end_point[2])
void immUniform1i(const char *name, int x)
VecBase< float, 3 > float3
MINLINE float len_squared_v2v2(const float a[2], const float b[2]) ATTR_WARN_UNUSED_RESULT
void immVertex2fv(uint attr_id, const float data[2])
MINLINE int min_ii(int a, int b)
void immRectf(uint pos, float x1, float y1, float x2, float y2)
MINLINE void zero_v2(float r[2])
void ED_space_clip_get_zoom(const SpaceClip *sc, const ARegion *region, float *r_zoomx, float *r_zoomy)
static int generic_track_get_markersnr(const MovieTrackingTrack *track, const MovieTrackingPlaneTrack *plane_track)
void ED_region_cache_draw_curfra_label(int framenr, float x, float y)
static void set_draw_marker_area_color(const MovieTrackingTrack *track, const MovieTrackingMarker *marker, const bool is_track_active, const bool is_area_selected, const float color[3], const float selected_color[3])
static void draw_marker_slide_square(float x, float y, float dx, float dy, int outline, const float px[2], uint pos)
void ED_region_info_draw(ARegion *region, const char *text, const float fill_color[4], bool full_redraw)
void BKE_tracking_distort_v2(MovieTracking *tracking, int image_width, int image_height, const float co[2], float r_co[2])
gpu::Texture * GPU_texture_create_2d(const char *name, int width, int height, int mip_len, gpu::TextureFormat format, eGPUTextureUsage usage, const float *data)
ocio::ColorSpace ColorSpace
void mul_v4_m4v4(float r[4], const float mat[4][4], const float v[4])
static void draw_track_path_lines(const TrackPathPoint *path, uint position_attribute, const int start_point, const int num_points)
void * MEM_new_array_zeroed(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
void BLI_rctf_init(struct rctf *rect, float xmin, float xmax, float ymin, float ymax)
static void draw_marker_areas(SpaceClip *sc, const MovieTrackingTrack *track, const MovieTrackingMarker *marker, const float marker_pos[2], int width, int height, int act, int sel, const uint shdr_pos)
void BKE_image_release_ibuf(Image *ima, ImBuf *ibuf, void *lock)
MovieTrackingMarker * BKE_tracking_marker_get(MovieTrackingTrack *track, int framenr)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
const ColorSpace * colorspace
const ColorSpace * colorspace
ImBufFloatBuffer float_buffer
ImBufByteBuffer byte_buffer
const uint8_t * byte_data() const
const float * float_data() const
bool can_contain_alpha() const
eMovieClipProxy_RenderFlag render_flag
eMovieClipProxy_RenderSize render_size
struct MovieTracking tracking
float pattern_corners[4][2]
MovieTrackingPlaneTrack * active_plane_track
MovieTrackingReconstruction reconstruction
ListBaseT< MovieTrackingTrack > tracks
ListBaseT< MovieTrackingPlaneTrack > plane_tracks
MovieTrackingTrack * active_track
TrackingPlaneMarkerFlag flag
MovieTrackingPlaneMarker * markers
TrackingPlaneTrackFlag flag
struct MovieReconstructedCamera * cameras
TrackingReconstructionFlag flag
TrackingStabilizationFlag flag
MovieTrackingMarker * markers
TrackingTrackFlag search_flag
TrackingTrackFlag pat_flag
MovieTrackingStats * stats
MovieTrackingCamera camera
MovieTrackingStabilization stabilization
ColorManagedViewSettings view_settings
ColorManagedDisplaySettings display_settings
eSpaceClip_GPencil_Source gpencil_src
struct MovieClipUser user
struct SpaceClipOverlay overlay
ListBaseT< bGPDstroke > strokes
ListBaseT< bGPDlayer > layers