Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2020-10-28 17:34:43 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-10-28 17:36:01 +0300
commita5d237ac85c7ed67edad5e75f4cc3f8a67a30776 (patch)
treefc7b9b534dada9ed48743a1f41ec883dc6aaed2f /source/blender/editors/gpencil/gpencil_trace.h
parent73378c2ba2d5845c0023077f4ebc32b78f5aa625 (diff)
GPencil: New support to trace sequence images
Now it's possible to trace a sequence of images and not just a single one When the trace is for more than one image, a bacth job is started to process all frames. Note: All trace data is generated by Potrace library. Differential revision: https://developer.blender.org/D9316
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_trace.h')
-rw-r--r--source/blender/editors/gpencil/gpencil_trace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_trace.h b/source/blender/editors/gpencil/gpencil_trace.h
index 3adde7651cd..85eb4e0609f 100644
--- a/source/blender/editors/gpencil/gpencil_trace.h
+++ b/source/blender/editors/gpencil/gpencil_trace.h
@@ -56,6 +56,10 @@ struct bGPDframe;
#define BM_INV(bm, x, y) (bm_safe(bm, x, y) ? BM_UINV(bm, x, y) : 0)
#define BM_PUT(bm, x, y, b) (bm_safe(bm, x, y) ? BM_UPUT(bm, x, y, b) : 0)
+/* Trace modes */
+#define GPENCIL_TRACE_MODE_SINGLE 0
+#define GPENCIL_TRACE_MODE_SEQUENCE 1
+
void ED_gpencil_trace_bitmap_print(FILE *f, const potrace_bitmap_t *bm);
potrace_bitmap_t *ED_gpencil_trace_bitmap_new(int32_t w, int32_t h);