libkate 0.4.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files
- Examples

- File List
- Globals

kate.h
Go to the documentation of this file.
1 /* Copyright (C) 2008, 2009 Vincent Penquerc'h.
2 This file is part of the Kate codec library.
3 Written by Vincent Penquerc'h.
4
5 Use, distribution and reproduction of this library is governed
6 by a BSD style source license included with this source in the
7 file 'COPYING'. Please read these terms before distributing. */
8
9
10 #ifndef KATE_kate_h_GUARD
11 #define KATE_kate_h_GUARD
12
17 #include "kate/kate_config.h"
18
21 #define KATE_VERSION_MAJOR 0
22 #define KATE_VERSION_MINOR 4
23 #define KATE_VERSION_PATCH 1
28 #define KATE_BITSTREAM_VERSION_MAJOR 0
29 #define KATE_BITSTREAM_VERSION_MINOR 7
33 typedef enum {
34 kate_utf8
35 } kate_text_encoding;
36
38 typedef enum {
39 kate_markup_none,
40 kate_markup_simple
41 } kate_markup_type;
42
44 typedef enum {
45 kate_pixel,
46 kate_percentage,
47 kate_millionths
48 } kate_space_metric;
49
50 struct kate_meta;
51 typedef struct kate_meta kate_meta;
52
54 typedef struct kate_region {
55 kate_space_metric metric;
56 int x;
57 int y;
58 int w;
59 int h;
60 int style;
61 unsigned int clip:1;
62 unsigned int pad0:31;
63 kate_meta *meta;
64 kate_uintptr_t pad1[5];
65 } kate_region;
66
68 typedef struct kate_color {
69 unsigned char r;
70 unsigned char g;
71 unsigned char b;
72 unsigned char a;
73 } kate_color;
74
76 typedef enum {
77 kate_wrap_word,
78 kate_wrap_none
79 } kate_wrap_mode;
80
82 typedef struct kate_style {
83 kate_float halign;
84 kate_float valign;
86 kate_color text_color;
87 kate_color background_color;
88 kate_color draw_color;
90 kate_space_metric font_metric;
91 kate_float font_width;
92 kate_float font_height;
94 kate_space_metric margin_metric;
95 kate_float left_margin;
96 kate_float top_margin;
97 kate_float right_margin;
98 kate_float bottom_margin;
100 unsigned int bold:1;
101 unsigned int italics:1;
102 unsigned int underline:1;
103 unsigned int strike:1;
104 unsigned int justify:1;
105 unsigned int wrap_mode:2;
106 unsigned int pad0:25;
107
108 kate_const char *font;
110 kate_meta *meta;
111
112 kate_uintptr_t pad1[8];
113 } kate_style;
114
116 typedef enum kate_curve_type {
117 kate_curve_none,
118 kate_curve_static,
119 kate_curve_linear,
120 kate_curve_catmull_rom_spline,
121 kate_curve_bezier_cubic_spline,
122 kate_curve_bspline
123 } kate_curve_type;
124
126 typedef struct kate_curve {
127 kate_curve_type type;
128 size_t npts;
129 kate_float *pts;
130 kate_uintptr_t pad[5];
131 } kate_curve;
132
134 typedef enum kate_motion_mapping {
135 /* these can be used for a x/y position mapping */
136 kate_motion_mapping_none,
137 kate_motion_mapping_frame,
138 kate_motion_mapping_window,
139 kate_motion_mapping_region,
140 kate_motion_mapping_event_duration,
141 kate_motion_mapping_bitmap_size,
143 #if 0
144 text is useful, find a way to readd it easily
145 kate_motion_mapping_text,
146 #endif
147
148 /* more mapping may be added in future versions */
149
150 kate_motion_mapping_user=128
151 } kate_motion_mapping;
152
154 typedef enum kate_motion_semantics {
155 kate_motion_semantics_time,
156 kate_motion_semantics_z,
157 kate_motion_semantics_region_position,
158 kate_motion_semantics_region_size,
159 kate_motion_semantics_text_alignment_int,
160 kate_motion_semantics_text_alignment_ext,
161 kate_motion_semantics_text_position,
162 kate_motion_semantics_text_size,
163 kate_motion_semantics_marker1_position,
164 kate_motion_semantics_marker2_position,
165 kate_motion_semantics_marker3_position,
166 kate_motion_semantics_marker4_position,
167 kate_motion_semantics_glyph_pointer_1,
168 kate_motion_semantics_glyph_pointer_2,
169 kate_motion_semantics_glyph_pointer_3,
170 kate_motion_semantics_glyph_pointer_4,
171 kate_motion_semantics_text_color_rg,
172 kate_motion_semantics_text_color_ba,
173 kate_motion_semantics_background_color_rg,
174 kate_motion_semantics_background_color_ba,
175 kate_motion_semantics_draw_color_rg,
176 kate_motion_semantics_draw_color_ba,
177 kate_motion_semantics_style_morph,
178 kate_motion_semantics_text_path,
179 kate_motion_semantics_text_path_section,
180 kate_motion_semantics_draw,
181 kate_motion_semantics_text_visible_section,
182 kate_motion_semantics_horizontal_margins,
183 kate_motion_semantics_vertical_margins,
184 kate_motion_semantics_bitmap_position,
185 kate_motion_semantics_bitmap_size,
186 kate_motion_semantics_marker1_bitmap,
187 kate_motion_semantics_marker2_bitmap,
188 kate_motion_semantics_marker3_bitmap,
189 kate_motion_semantics_marker4_bitmap,
190 kate_motion_semantics_glyph_pointer_1_bitmap,
191 kate_motion_semantics_glyph_pointer_2_bitmap,
192 kate_motion_semantics_glyph_pointer_3_bitmap,
193 kate_motion_semantics_glyph_pointer_4_bitmap,
194 kate_motion_semantics_draw_width,
196 /* more semantics may be added in future versions */
197
198 kate_motion_semantics_user = 128
199 } kate_motion_semantics;
200
202 typedef struct kate_motion {
203 size_t ncurves;
204 kate_curve **curves;
205 kate_float *durations;
206 kate_motion_mapping x_mapping;
207 kate_motion_mapping y_mapping;
208 kate_motion_semantics semantics;
209 unsigned int periodic:1;
210 unsigned int pad0:31;
211 kate_meta *meta;
212 kate_uintptr_t pad1[4];
213 } kate_motion;
214
216 typedef enum kate_text_directionality {
217 kate_l2r_t2b,
218 kate_r2l_t2b,
219 kate_t2b_r2l,
220 kate_t2b_l2r
221 } kate_text_directionality;
222
224 typedef struct kate_palette {
225 size_t ncolors;
226 kate_color *colors;
227 kate_meta *meta;
228 kate_uintptr_t pad[1];
229 } kate_palette;
230
232 typedef enum kate_bitmap_type {
233 kate_bitmap_type_paletted,
234 kate_bitmap_type_png
235 } kate_bitmap_type;
236
238 typedef struct kate_bitmap {
239 size_t width;
240 size_t height;
241 unsigned char bpp;
242 kate_bitmap_type type;
243 unsigned char pad0[1];
244 unsigned char internal;
245 int palette;
246 unsigned char *pixels;
247 size_t size;
248 int x_offset;
249 int y_offset;
250 kate_meta *meta;
251 kate_uintptr_t pad1[14];
252 } kate_bitmap;
253
255 typedef struct kate_font_range {
256 int first_code_point;
257 int last_code_point;
258 int first_bitmap;
259 kate_uintptr_t pad[5];
260 } kate_font_range;
261
263 typedef struct kate_font_mapping {
264 size_t nranges;
265 kate_font_range **ranges;
266 kate_uintptr_t pad[6];
267 } kate_font_mapping;
268
274 typedef struct kate_info {
275 unsigned char bitstream_version_major;
276 unsigned char bitstream_version_minor;
277 unsigned char pad0[2];
278
279 kate_text_encoding text_encoding;
280 kate_text_directionality text_directionality;
282 unsigned char num_headers;
283 unsigned char granule_shift;
284 unsigned char pad1[2];
285
286 kate_uint32_t gps_numerator;
287 kate_uint32_t gps_denominator;
289 kate_const char *language;
291 kate_const char *category;
293 size_t nregions;
294 kate_const kate_region *kate_const *regions;
296 size_t nstyles;
297 kate_const kate_style *kate_const *styles;
299 size_t ncurves;
300 kate_const kate_curve *kate_const *curves;
302 size_t nmotions;
303 kate_const kate_motion *kate_const *motions;
305 size_t npalettes;
306 kate_const kate_palette *kate_const *palettes;
308 size_t nbitmaps;
309 kate_const kate_bitmap *kate_const *bitmaps;
311 size_t nfont_ranges;
312 kate_const kate_font_range *kate_const *font_ranges;
314 size_t nfont_mappings;
315 kate_const kate_font_mapping *kate_const *font_mappings;
317 kate_markup_type text_markup_type;
319 size_t original_canvas_width;
320 size_t original_canvas_height;
322 kate_uintptr_t pad2[11];
323
324 /* internal */
325 int remove_markup;
326 int no_limits;
327 int probe;
328
329 kate_uintptr_t pad3[13];
330 } kate_info;
331
332 struct kate_encode_state; /* internal */
333 struct kate_decode_state; /* internal */
334
336 typedef struct kate_state {
337 kate_const kate_info *ki;
339 /* internal */
340 kate_const struct kate_encode_state *kes;
341 kate_const struct kate_decode_state *kds;
342
343 kate_uintptr_t pad[5];
344 } kate_state;
345
347 typedef struct kate_comment {
348 char **user_comments;
349 int *comment_lengths;
350 int comments;
351 char *vendor;
352 } kate_comment;
353
358 typedef struct kate_event {
359 kate_int64_t start;
360 kate_int64_t duration;
361 kate_int64_t backlink;
363 kate_float start_time;
364 kate_float end_time;
366 kate_int32_t id;
368 kate_text_encoding text_encoding;
369 kate_text_directionality text_directionality;
370 kate_const char *language;
371 kate_const char *text;
372 size_t len;
373 size_t len0;
375 size_t nmotions;
376 kate_const kate_motion *kate_const *motions;
378 kate_const kate_region *region;
379 kate_const kate_style *style;
380 kate_const kate_style *secondary_style;
381 kate_const kate_font_mapping *font_mapping;
382 kate_const kate_palette *palette;
383 kate_const kate_bitmap *bitmap;
385 kate_markup_type text_markup_type;
387 size_t nbitmaps;
388 kate_const kate_bitmap *kate_const *bitmaps;
390 kate_meta *meta;
391
392 kate_uintptr_t pad0[5];
393
394 /* internal */
395 const kate_info *ki;
396 size_t trackers;
397
398 kate_uintptr_t pad1[10];
399 } kate_event;
400
401 struct kate_tracker_internal; /* internal */
402
404 typedef struct kate_tracker {
405 const kate_info *ki;
406 kate_const kate_event *event;
407 kate_float t;
409 struct {
410 unsigned int region:1;
411 unsigned int text_alignment_int:1;
412 unsigned int text_alignment_ext:1;
413 unsigned int text_pos:1;
414 unsigned int text_size:1;
415 unsigned int marker_pos:4;
416 unsigned int text_color:1;
417 unsigned int background_color:1;
418 unsigned int draw_color:1;
419 unsigned int glyph_pointer:4;
420 unsigned int path:1;
421 unsigned int draw:1;
422 unsigned int visible_section:1;
423 unsigned int z:1;
424 unsigned int hmargins:1;
425 unsigned int vmargins:1;
426 unsigned int bitmap_pos:1;
427 unsigned int bitmap_size:1;
428 unsigned int marker_bitmap:4;
429 unsigned int glyph_pointer_bitmap:4;
430 unsigned int draw_width:1;
431 /* 33 bits */
432 unsigned int pad0:31;
433 /* 64 bits */
434 } has;
436 int window_w;
437 int window_h;
438 int frame_x;
439 int frame_y;
440 int frame_w;
441 int frame_h;
443 /* has.region */
444 kate_float region_x;
445 kate_float region_y;
446 kate_float region_w;
447 kate_float region_h;
449 /* has.text_alignment (int/ext) */
450 kate_float text_halign;
451 kate_float text_valign;
453 /* has.text_pos */
454 kate_float text_x;
455 kate_float text_y;
457 /* has.text_size */
458 kate_float text_size_x;
459 kate_float text_size_y;
461 /* has.marker_pos&(1<<n) */
462 kate_float marker_x[4];
463 kate_float marker_y[4];
465 /* has.text_color */
466 kate_color text_color;
468 /* has.background_color */
469 kate_color background_color;
471 /* has.draw_color */
472 kate_color draw_color;
474 /* has.glyph_pointer&(1<<n) */
475 kate_float glyph_pointer[4];
476 kate_float glyph_height[4];
478 /* has.path */
479 kate_float path_start;
480 kate_float path_end;
482 /* has.draw */
483 kate_float draw_x;
484 kate_float draw_y;
486 /* has.visible_section */
487 kate_float visible_x;
488 kate_float visible_y;
490 /* has.z */
491 kate_float z;
493 /* has.hmargins */
494 kate_float left_margin;
495 kate_float right_margin;
497 /* has.vmargins */
498 kate_float top_margin;
499 kate_float bottom_margin;
501 /* has.bitmap_pos */
502 kate_float bitmap_x;
503 kate_float bitmap_y;
505 /* has.bitmap_size */
506 kate_float bitmap_size_x;
507 kate_float bitmap_size_y;
509 /* has.marker_bitmap&(1<<n) */
510 const kate_bitmap *marker_bitmap[4];
512 /* has.glyph_pointer_bitmap&(1<<n) */
513 const kate_bitmap *glyph_pointer_bitmap[4];
515 /* has.draw_width */
516 kate_float draw_width;
518 /* internal */
519 struct kate_tracker_internal *internal;
520
521 kate_uintptr_t pad[19];
522
523 } kate_tracker;
524
526 typedef struct kate_packet {
527 size_t nbytes;
528 void *data;
529 } kate_packet;
530
531 #ifdef __cplusplus
532 extern "C" {
533 #endif
534
536 extern int kate_get_version(void);
537 extern const char *kate_get_version_string(void);
538 extern int kate_get_bitstream_version(void);
539 extern const char *kate_get_bitstream_version_string(void);
540
542 extern int kate_info_init(kate_info *ki);
543 extern int kate_info_set_granule_encoding(kate_info *ki,kate_float resolution,kate_float max_length,kate_float max_event_lifetime);
544 extern int kate_info_set_language(kate_info *ki,const char *language);
545 extern int kate_info_set_text_directionality(kate_info *ki,kate_text_directionality text_directionality);
546 extern int kate_info_set_markup_type(kate_info *ki,kate_markup_type text_markup_type);
547 extern int kate_info_set_category(kate_info *ki,const char *category);
548 extern int kate_info_set_original_canvas_size(kate_info *ki,size_t width,size_t height);
549 extern int kate_info_add_region(kate_info *ki,kate_region *kr);
550 extern int kate_info_add_style(kate_info *ki,kate_style *ks);
551 extern int kate_info_add_curve(kate_info *ki,kate_curve *kc);
552 extern int kate_info_add_motion(kate_info *ki,kate_motion *km);
553 extern int kate_info_add_palette(kate_info *ki,kate_palette *kp);
554 extern int kate_info_add_bitmap(kate_info *ki,kate_bitmap *kb);
555 extern int kate_info_add_font_range(kate_info *ki,kate_font_range *kfr);
556 extern int kate_info_add_font_mapping(kate_info *ki,kate_font_mapping *kfm);
557 extern int kate_info_matches_language(const kate_info *ki,const char *language);
558 extern int kate_info_remove_markup(kate_info *ki,int flag);
559 extern int kate_info_no_limits(kate_info *ki,int flag);
560 extern int kate_info_clear(kate_info *ki);
561
563 extern int kate_granule_shift(const kate_info *ki);
564 extern int kate_granule_split_time(const kate_info *ki,kate_int64_t granulepos,kate_float *base,kate_float *offset);
565 extern kate_float kate_granule_time(const kate_info *ki,kate_int64_t granulepos);
566 extern kate_int64_t kate_duration_granule(const kate_info *ki,kate_float duration);
567 extern kate_float kate_granule_duration(const kate_info *ki,kate_int64_t duration);
568
570 extern int kate_clear(kate_state *k);
571 extern int kate_motion_get_point(const kate_motion *km,kate_float duration,kate_float t,kate_float *x,kate_float *y);
572 extern int kate_curve_get_point(const kate_curve *kc,kate_float t,kate_float *x,kate_float *y);
573 extern int kate_region_init(kate_region *kr);
574 extern int kate_style_init(kate_style *ks);
575 extern int kate_palette_init(kate_palette *kp);
576 extern int kate_bitmap_init(kate_bitmap *kb);
577 extern int kate_bitmap_init_new(kate_bitmap *kb);
578 extern int kate_curve_init(kate_curve *kc);
579 extern int kate_motion_init(kate_motion *km);
580
582 extern int kate_text_get_character(kate_text_encoding text_encoding,const char ** const text,size_t *len0);
583 extern int kate_text_set_character(kate_text_encoding text_encoding,int c,char ** const text,size_t *len0);
584 extern int kate_text_remove_markup(kate_text_encoding text_encoding,char *text,size_t *len0);
585 extern int kate_text_validate(kate_text_encoding text_encoding,const char *text,size_t len0);
586
588 extern int kate_comment_init(kate_comment *kc);
589 extern int kate_comment_clear(kate_comment *kc);
590 extern int kate_comment_add(kate_comment *kc,const char *comment);
591 extern int kate_comment_add_length(kate_comment *kc,const char *comment,size_t len);
592 extern int kate_comment_add_tag(kate_comment *kc,const char *tag,const char *value);
593 extern const char *kate_comment_query(const kate_comment *kc,const char *tag,int count);
594 extern int kate_comment_query_count(const kate_comment *kc,const char *tag);
595
597 extern int kate_encode_init(kate_state *k,kate_info *ki);
598 extern int kate_encode_headers(kate_state *k,kate_comment *kc,kate_packet *kp);
599 extern int kate_encode_text(kate_state *k,kate_float start_time,kate_float stop_time,const char *text,size_t sz,kate_packet *kp); /* text is not null terminated */
600 extern int kate_encode_text_raw_times(kate_state *k,kate_int64_t start_time,kate_int64_t stop_time,const char *text,size_t sz,kate_packet *kp); /* text is not null terminated */
601 extern int kate_encode_keepalive(kate_state *k,kate_float t,kate_packet *kp);
602 extern int kate_encode_keepalive_raw_times(kate_state *k,kate_int64_t t,kate_packet *kp);
603 extern int kate_encode_repeat(kate_state *k,kate_float t,kate_float threshold,kate_packet *kp);
604 extern int kate_encode_repeat_raw_times(kate_state *k,kate_int64_t t,kate_int64_t threshold,kate_packet *kp);
605 extern int kate_encode_finish(kate_state *k,kate_float t,kate_packet *kp); /* t may be negative to use the end granule of the last event */
606 extern int kate_encode_finish_raw_times(kate_state *k,kate_int64_t t,kate_packet *kp); /* t may be negative to use the end granule of the last event */
607 extern int kate_encode_set_id(kate_state *k,kate_int32_t id);
608 extern int kate_encode_set_language(kate_state *k,const char *language); /* language can be NULL */
609 extern int kate_encode_set_text_encoding(kate_state *k,kate_text_encoding text_encoding);
610 extern int kate_encode_set_text_directionality(kate_state *k,kate_text_directionality text_directionality);
611 extern int kate_encode_set_region_index(kate_state *k,size_t region);
612 extern int kate_encode_set_region(kate_state *k,const kate_region *kr);
613 extern int kate_encode_set_style_index(kate_state *k,size_t style);
614 extern int kate_encode_set_style(kate_state *k,const kate_style *ks);
615 extern int kate_encode_set_secondary_style_index(kate_state *k,size_t style);
616 extern int kate_encode_set_secondary_style(kate_state *k,const kate_style *ks);
617 extern int kate_encode_set_font_mapping_index(kate_state *k,size_t font_mapping);
618 extern int kate_encode_add_motion(kate_state *k,kate_motion *km,int destroy);
619 extern int kate_encode_add_motion_index(kate_state *k,size_t motion);
620 extern int kate_encode_set_palette_index(kate_state *k,size_t palette);
621 extern int kate_encode_set_palette(kate_state *k,const kate_palette *kp);
622 extern int kate_encode_set_bitmap_index(kate_state *k,size_t bitmap);
623 extern int kate_encode_set_bitmap(kate_state *k,const kate_bitmap *kb);
624 extern int kate_encode_add_bitmap(kate_state *k,const kate_bitmap *kb);
625 extern int kate_encode_add_bitmap_index(kate_state *k,size_t bitmap);
626 extern int kate_encode_set_markup_type(kate_state *k,int markup_type);
627 extern int kate_encode_merge_meta(kate_state *k,kate_meta *meta);
628 extern int kate_encode_add_meta(kate_state *k,const kate_meta *meta);
629 extern kate_int64_t kate_encode_get_granule(const kate_state *k);
630
632 extern int kate_decode_is_idheader(const kate_packet *kp);
633 extern int kate_decode_init(kate_state *k,kate_info *ki);
634 extern int kate_decode_headerin(kate_info *ki,kate_comment *kc,kate_packet *kp);
635 extern int kate_decode_packetin(kate_state *k,kate_packet *kp);
636 extern int kate_decode_eventout(kate_state *k,kate_const kate_event **ev); /* event can be NULL */
637 extern int kate_decode_seek(kate_state *k);
638
640 extern int kate_tracker_init(kate_tracker *kin,const kate_info *ki,kate_const kate_event *ev);
641 extern int kate_tracker_clear(kate_tracker *kin);
642 extern int kate_tracker_update(kate_tracker *kin,kate_float t,int window_w,int window_h,int frame_x,int frame_y,int frame_w,int frame_h);
643 extern int kate_tracker_morph_styles(kate_style *style,kate_float t,const kate_style *from,const kate_style *to);
644 extern int kate_tracker_get_text_path_position(kate_tracker *kin,size_t glyph,int *x,int *y);
645 extern int kate_tracker_update_property_at_duration(const kate_tracker *kin,kate_float duration,kate_float t,kate_motion_semantics semantics,kate_float *x,kate_float *y);
646 extern int kate_tracker_remap(const kate_tracker *kin,kate_motion_mapping x_mapping,kate_motion_mapping y_mapping,kate_float *x,kate_float *y);
647
649 extern int kate_font_get_index_from_code_point(const kate_font_mapping *kfm,int c);
650
652 extern int kate_high_decode_init(kate_state *k);
653 extern int kate_high_decode_packetin(kate_state *k,kate_packet *kp,kate_const kate_event **ev);
654 extern int kate_high_decode_clear(kate_state *k);
655 extern const kate_comment *kate_high_decode_get_comments(kate_state *k);
656
658 extern int kate_packet_wrap(kate_packet *kp,size_t nbytes,const void *data);
659 extern int kate_packet_init(kate_packet *kp,size_t nbytes,const void *data);
660 extern int kate_packet_clear(kate_packet *kp);
661
663 extern int kate_meta_create(kate_meta **km);
664 extern int kate_meta_destroy(kate_meta *km);
665 extern int kate_meta_add(kate_meta *km,const char *tag,const char *value,size_t len);
666 extern int kate_meta_add_string(kate_meta *km,const char *tag,const char *value);
667 extern int kate_meta_query_tag_count(const kate_meta *km,const char *tag);
668 extern int kate_meta_query_tag(const kate_meta *km,const char *tag,unsigned int idx,const char **value,size_t *len);
669 extern int kate_meta_remove_tag(kate_meta *km,const char *tag,unsigned int idx);
670 extern int kate_meta_query_count(const kate_meta *km);
671 extern int kate_meta_query(const kate_meta *km,unsigned int idx,const char **tag,const char **value,size_t *len);
672 extern int kate_meta_remove(kate_meta *km,unsigned int idx);
673 extern int kate_meta_merge(kate_meta *km,kate_meta *km2);
674
675 #ifdef __cplusplus
676 }
677 #endif
678
681 #define KATE_E_NOT_FOUND (-1)
682 #define KATE_E_INVALID_PARAMETER (-2)
683 #define KATE_E_OUT_OF_MEMORY (-3)
684 #define KATE_E_BAD_GRANULE (-4)
685 #define KATE_E_INIT (-5)
686 #define KATE_E_BAD_PACKET (-6)
687 #define KATE_E_TEXT (-7)
688 #define KATE_E_LIMIT (-8)
689 #define KATE_E_VERSION (-9)
690 #define KATE_E_NOT_KATE (-10)
691 #define KATE_E_BAD_TAG (-11)
692 #define KATE_E_IMPL (-12)
695 #endif
696
kate_motion_semantics_draw_color_ba
Definition: kate.h:176
kate_tracker::draw_width
unsigned int draw_width
Definition: kate.h:430
kate_comment_query
const char * kate_comment_query(const kate_comment *kc, const char *tag, int count)
Definition: kate_comment.c:184
kate_tracker::path_start
kate_float path_start
Definition: kate.h:479
kate_bitmap::type
kate_bitmap_type type
Definition: kate.h:242
kate_tracker::hmargins
unsigned int hmargins
Definition: kate.h:424
kate_encode_set_region_index
int kate_encode_set_region_index(kate_state *k, size_t region)
Definition: kate_encode.c:1374
kate_tracker::right_margin
kate_float right_margin
Definition: kate.h:495
kate_event::secondary_style
kate_const kate_style * secondary_style
Definition: kate.h:380
kate_encode_set_palette_index
int kate_encode_set_palette_index(kate_state *k, size_t palette)
Definition: kate_encode.c:1485
kate_event::text
kate_const char * text
Definition: kate.h:371
kate_bitmap::width
size_t width
Definition: kate.h:239
kate_decode_init
int kate_decode_init(kate_state *k, kate_info *ki)
Definition: kate_decode.c:1160
kate_info
Definition: kate.h:274
kate_comment
struct kate_comment kate_comment
kate_motion_semantics_draw
Definition: kate.h:180
kate_tracker::z
kate_float z
Definition: kate.h:491
kate_markup_type
kate_markup_type
Definition: kate.h:38
kate_decode_is_idheader
int kate_decode_is_idheader(const kate_packet *kp)
Definition: kate_decode.c:237
kate_motion_semantics_text_color_ba
Definition: kate.h:172
kate_style::background_color
kate_color background_color
Definition: kate.h:87
kate_tracker::region_y
kate_float region_y
Definition: kate.h:445
kate_info_add_palette
int kate_info_add_palette(kate_info *ki, kate_palette *kp)
Definition: kate_info.c:407
kate_encode_add_motion
int kate_encode_add_motion(kate_state *k, kate_motion *km, int destroy)
Definition: kate_encode.c:1306
kate_info_add_font_mapping
int kate_info_add_font_mapping(kate_info *ki, kate_font_mapping *kfm)
Definition: kate_info.c:446
kate_bitmap
struct kate_bitmap kate_bitmap
kate_encode_keepalive_raw_times
int kate_encode_keepalive_raw_times(kate_state *k, kate_int64_t t, kate_packet *kp)
Definition: kate_encode.c:1071
kate_motion_mapping_window
Definition: kate.h:138
kate_state
Definition: kate.h:336
kate_motion_semantics_glyph_pointer_1_bitmap
Definition: kate.h:190
kate_meta_remove_tag
int kate_meta_remove_tag(kate_meta *km, const char *tag, unsigned int idx)
Definition: kate_meta.c:279
kate_info_add_style
int kate_info_add_style(kate_info *ki, kate_style *ks)
Definition: kate_info.c:368
kate_region::y
int y
Definition: kate.h:57
kate_info_set_text_directionality
int kate_info_set_text_directionality(kate_info *ki, kate_text_directionality text_directionality)
Definition: kate_info.c:265
kate_info_set_language
int kate_info_set_language(kate_info *ki, const char *language)
Definition: kate_info.c:176
kate_bitmap
Definition: kate.h:238
kate_curve_get_point
int kate_curve_get_point(const kate_curve *kc, kate_float t, kate_float *x, kate_float *y)
Definition: kate_motion.c:64
kate_motion_semantics_marker4_position
Definition: kate.h:166
kate_motion_semantics_glyph_pointer_4
Definition: kate.h:170
kate_encode_finish
int kate_encode_finish(kate_state *k, kate_float t, kate_packet *kp)
Definition: kate_encode.c:1256
kate_color::a
unsigned char a
Definition: kate.h:72
kate_palette
struct kate_palette kate_palette
kate_high_decode_clear
int kate_high_decode_clear(kate_state *k)
Definition: kate_high.c:123
kate_info::original_canvas_height
size_t original_canvas_height
Definition: kate.h:320
kate_tracker::marker_y
kate_float marker_y[4]
Definition: kate.h:463
kate_tracker::region_x
kate_float region_x
Definition: kate.h:444
kate_info
struct kate_info kate_info
kate_tracker::path_end
kate_float path_end
Definition: kate.h:480
kate_text_remove_markup
int kate_text_remove_markup(kate_text_encoding text_encoding, char *text, size_t *len0)
Definition: kate_text.c:283
kate_encode_add_motion_index
int kate_encode_add_motion_index(kate_state *k, size_t motion)
Definition: kate_encode.c:1322
kate_style::font_height
kate_float font_height
Definition: kate.h:92
kate_curve::pts
kate_float * pts
Definition: kate.h:129
kate_motion_mapping
kate_motion_mapping
Definition: kate.h:134
kate_meta_create
int kate_meta_create(kate_meta **km)
Definition: kate_meta.c:40
kate_bitmap_init
int kate_bitmap_init(kate_bitmap *kb)
Definition: kate.c:200
kate_info::num_headers
unsigned char num_headers
Definition: kate.h:282
kate_packet_clear
int kate_packet_clear(kate_packet *kp)
Definition: kate_packet.c:76
kate_curve_init
int kate_curve_init(kate_curve *kc)
Definition: kate.c:267
kate_font_mapping
struct kate_font_mapping kate_font_mapping
kate_info::nfont_mappings
size_t nfont_mappings
Definition: kate.h:314
kate_tracker::text_size_y
kate_float text_size_y
Definition: kate.h:459
kate_encode_add_bitmap
int kate_encode_add_bitmap(kate_state *k, const kate_bitmap *kb)
Definition: kate_encode.c:1340
kate_motion_semantics_time
Definition: kate.h:155
kate_encode_set_bitmap
int kate_encode_set_bitmap(kate_state *k, const kate_bitmap *kb)
Definition: kate_encode.c:1541
kate_packet
Definition: kate.h:526
kate_tracker::bitmap_x
kate_float bitmap_x
Definition: kate.h:502
kate_info_add_font_range
int kate_info_add_font_range(kate_info *ki, kate_font_range *kfr)
Definition: kate_info.c:433
kate_motion_semantics_marker4_bitmap
Definition: kate.h:189
kate_motion_semantics_text_alignment_ext
Definition: kate.h:160
kate_meta_add
int kate_meta_add(kate_meta *km, const char *tag, const char *value, size_t len)
Definition: kate_meta.c:116
kate_info::gps_numerator
kate_uint32_t gps_numerator
Definition: kate.h:286
kate_motion_semantics_text_position
Definition: kate.h:161
kate_motion::semantics
kate_motion_semantics semantics
Definition: kate.h:208
kate_motion_semantics_glyph_pointer_1
Definition: kate.h:167
kate_tracker::bitmap_size_x
kate_float bitmap_size_x
Definition: kate.h:506
kate_packet_wrap
int kate_packet_wrap(kate_packet *kp, size_t nbytes, const void *data)
Definition: kate_packet.c:30
kate_tracker::marker_pos
unsigned int marker_pos
Definition: kate.h:415
kate_motion_mapping_user
Definition: kate.h:150
kate_tracker
struct kate_tracker kate_tracker
kate_bitmap::height
size_t height
Definition: kate.h:240
kate_comment_query_count
int kate_comment_query_count(const kate_comment *kc, const char *tag)
Definition: kate_comment.c:213
kate_event::palette
kate_const kate_palette * palette
Definition: kate.h:382
kate_info_no_limits
int kate_info_no_limits(kate_info *ki, int flag)
Definition: kate_info.c:524
kate_duration_granule
kate_int64_t kate_duration_granule(const kate_info *ki, kate_float duration)
Definition: kate_granule.c:108
kate_tracker::bitmap_size_y
kate_float bitmap_size_y
Definition: kate.h:507
kate_info_remove_markup
int kate_info_remove_markup(kate_info *ki, int flag)
Definition: kate_info.c:508
kate_r2l_t2b
Definition: kate.h:218
kate_encode_get_granule
kate_int64_t kate_encode_get_granule(const kate_state *k)
Definition: kate_encode.c:1708
kate_tracker::frame_w
int frame_w
Definition: kate.h:440
kate_color
Definition: kate.h:68
kate_motion::durations
kate_float * durations
Definition: kate.h:205
kate_curve_bspline
Definition: kate.h:122
kate_granule_time
kate_float kate_granule_time(const kate_info *ki, kate_int64_t granulepos)
Definition: kate_granule.c:90
kate_motion::periodic
unsigned int periodic
Definition: kate.h:209
kate_text_get_character
int kate_text_get_character(kate_text_encoding text_encoding, const char **const text, size_t *len0)
Definition: kate_text.c:218
kate_info::bitmaps
kate_const kate_bitmap *kate_const * bitmaps
Definition: kate.h:309
kate_style::wrap_mode
unsigned int wrap_mode
Definition: kate.h:105
kate_bitmap::y_offset
int y_offset
Definition: kate.h:249
kate_tracker::frame_h
int frame_h
Definition: kate.h:441
kate_motion_semantics_text_visible_section
Definition: kate.h:181
kate_comment::comment_lengths
int * comment_lengths
Definition: kate.h:349
kate_palette
Definition: kate.h:224
kate_tracker::bitmap_pos
unsigned int bitmap_pos
Definition: kate.h:426
kate_tracker::z
unsigned int z
Definition: kate.h:423
kate_motion_semantics_region_position
Definition: kate.h:157
kate_motion_semantics_draw_color_rg
Definition: kate.h:175
kate_info::gps_denominator
kate_uint32_t gps_denominator
Definition: kate.h:287
kate_bitmap_type
kate_bitmap_type
Definition: kate.h:232
kate_motion_semantics_bitmap_position
Definition: kate.h:184
kate_tracker::text_pos
unsigned int text_pos
Definition: kate.h:413
kate_packet::nbytes
size_t nbytes
Definition: kate.h:527
kate_motion_semantics_text_path_section
Definition: kate.h:179
kate_t2b_l2r
Definition: kate.h:220
kate_packet
struct kate_packet kate_packet
kate_font_range
struct kate_font_range kate_font_range
kate_text_directionality
kate_text_directionality
Definition: kate.h:216
kate_event::region
kate_const kate_region * region
Definition: kate.h:378
kate_style::strike
unsigned int strike
Definition: kate.h:103
kate_palette::ncolors
size_t ncolors
Definition: kate.h:225
kate_tracker::text_color
kate_color text_color
Definition: kate.h:466
kate_info_add_region
int kate_info_add_region(kate_info *ki, kate_region *kr)
Definition: kate_info.c:354
kate_tracker_init
int kate_tracker_init(kate_tracker *kin, const kate_info *ki, kate_const kate_event *ev)
Definition: kate_tracker.c:33
kate_state
struct kate_state kate_state
kate_tracker::vmargins
unsigned int vmargins
Definition: kate.h:425
kate_tracker::draw_color
kate_color draw_color
Definition: kate.h:472
kate_motion_semantics_horizontal_margins
Definition: kate.h:182
kate_get_bitstream_version
int kate_get_bitstream_version(void)
Definition: kate.c:52
kate_comment_add_length
int kate_comment_add_length(kate_comment *kc, const char *comment, size_t len)
Definition: kate_comment.c:86
kate_encode_set_style_index
int kate_encode_set_style_index(kate_state *k, size_t style)
Definition: kate_encode.c:1411
kate_info::curves
kate_const kate_curve *kate_const * curves
Definition: kate.h:300
kate_encode_set_secondary_style
int kate_encode_set_secondary_style(kate_state *k, const kate_style *ks)
Definition: kate_encode.c:1467
kate_markup_simple
Definition: kate.h:40
kate_tracker::text_size_x
kate_float text_size_x
Definition: kate.h:458
kate_palette::colors
kate_color * colors
Definition: kate.h:226
kate_info::npalettes
size_t npalettes
Definition: kate.h:305
kate_high_decode_packetin
int kate_high_decode_packetin(kate_state *k, kate_packet *kp, kate_const kate_event **ev)
Definition: kate_high.c:85
kate_font_get_index_from_code_point
int kate_font_get_index_from_code_point(const kate_font_mapping *kfm, int c)
Definition: kate_font.c:23
kate_get_version_string
const char * kate_get_version_string(void)
Definition: kate.c:42
kate_meta_merge
int kate_meta_merge(kate_meta *km, kate_meta *km2)
Definition: kate_meta.c:327
kate_tracker::frame_y
int frame_y
Definition: kate.h:439
kate_motion_semantics_draw_width
Definition: kate.h:194
kate_motion::y_mapping
kate_motion_mapping y_mapping
Definition: kate.h:207
kate_tracker::t
kate_float t
Definition: kate.h:407
kate_motion
Definition: kate.h:202
kate_event::nbitmaps
size_t nbitmaps
Definition: kate.h:387
kate_wrap_none
Definition: kate.h:78
kate_event
struct kate_event kate_event
kate_text_validate
int kate_text_validate(kate_text_encoding text_encoding, const char *text, size_t len0)
Definition: kate_text.c:341
kate_tracker::draw_y
kate_float draw_y
Definition: kate.h:484
kate_t2b_r2l
Definition: kate.h:219
kate_high_decode_init
int kate_high_decode_init(kate_state *k)
Definition: kate_high.c:27
kate_tracker::text_halign
kate_float text_halign
Definition: kate.h:450
kate_info::nbitmaps
size_t nbitmaps
Definition: kate.h:308
kate_encode_set_text_encoding
int kate_encode_set_text_encoding(kate_state *k, kate_text_encoding text_encoding)
Definition: kate_encode.c:1578
kate_bitmap::pixels
unsigned char * pixels
Definition: kate.h:246
kate_encode_text
int kate_encode_text(kate_state *k, kate_float start_time, kate_float stop_time, const char *text, size_t sz, kate_packet *kp)
Definition: kate_encode.c:1056
kate_tracker::bitmap_y
kate_float bitmap_y
Definition: kate.h:503
kate_event::bitmap
kate_const kate_bitmap * bitmap
Definition: kate.h:383
kate_encode_merge_meta
int kate_encode_merge_meta(kate_state *k, kate_meta *meta)
Definition: kate_encode.c:1693
kate_info_clear
int kate_info_clear(kate_info *ki)
Definition: kate_info.c:539
kate_info::styles
kate_const kate_style *kate_const * styles
Definition: kate.h:297
kate_encode_set_font_mapping_index
int kate_encode_set_font_mapping_index(kate_state *k, size_t font_mapping)
Definition: kate_encode.c:1560
kate_tracker::text_y
kate_float text_y
Definition: kate.h:455
kate_color::g
unsigned char g
Definition: kate.h:70
kate_meta_query_count
int kate_meta_query_count(const kate_meta *km)
Definition: kate_meta.c:263
kate_encode_set_secondary_style_index
int kate_encode_set_secondary_style_index(kate_state *k, size_t style)
Definition: kate_encode.c:1448
kate_event::start_time
kate_float start_time
Definition: kate.h:363
kate_style::font
kate_const char * font
Definition: kate.h:108
kate_info::font_ranges
kate_const kate_font_range *kate_const * font_ranges
Definition: kate.h:312
kate_tracker::glyph_height
kate_float glyph_height[4]
Definition: kate.h:476
kate_event::nmotions
size_t nmotions
Definition: kate.h:375
kate_comment::comments
int comments
Definition: kate.h:350
kate_comment
Definition: kate.h:347
kate_curve::npts
size_t npts
Definition: kate.h:128
kate_event::motions
kate_const kate_motion *kate_const * motions
Definition: kate.h:376
kate_tracker::text_alignment_ext
unsigned int text_alignment_ext
Definition: kate.h:412
kate_curve_linear
Definition: kate.h:119
kate_event
Definition: kate.h:358
kate_curve_bezier_cubic_spline
Definition: kate.h:121
kate_motion_semantics_z
Definition: kate.h:156
kate_event::text_markup_type
kate_markup_type text_markup_type
Definition: kate.h:385
kate_motion_semantics_glyph_pointer_4_bitmap
Definition: kate.h:193
kate_tracker::region_w
kate_float region_w
Definition: kate.h:446
kate_tracker::draw_width
kate_float draw_width
Definition: kate.h:516
kate_comment::user_comments
char ** user_comments
Definition: kate.h:348
kate_info::palettes
kate_const kate_palette *kate_const * palettes
Definition: kate.h:306
kate_event::language
kate_const char * language
Definition: kate.h:370
kate_info::bitstream_version_major
unsigned char bitstream_version_major
Definition: kate.h:275
kate_style::italics
unsigned int italics
Definition: kate.h:101
kate_palette_init
int kate_palette_init(kate_palette *kp)
Definition: kate.c:179
kate_wrap_word
Definition: kate.h:77
kate_event::end_time
kate_float end_time
Definition: kate.h:364
kate_motion_mapping_region
Definition: kate.h:139
kate_event::bitmaps
kate_const kate_bitmap *kate_const * bitmaps
Definition: kate.h:388
kate_motion::ncurves
size_t ncurves
Definition: kate.h:203
kate_info_matches_language
int kate_info_matches_language(const kate_info *ki, const char *language)
Definition: kate_info.c:467
kate_decode_eventout
int kate_decode_eventout(kate_state *k, kate_const kate_event **ev)
Definition: kate_decode.c:1589
kate_percentage
Definition: kate.h:46
kate_style::font_width
kate_float font_width
Definition: kate.h:91
kate_granule_split_time
int kate_granule_split_time(const kate_info *ki, kate_int64_t granulepos, kate_float *base, kate_float *offset)
Definition: kate_granule.c:67
kate_motion::curves
kate_curve ** curves
Definition: kate.h:204
kate_event::text_encoding
kate_text_encoding text_encoding
Definition: kate.h:368
kate_tracker::draw_x
kate_float draw_x
Definition: kate.h:483
kate_encode_keepalive
int kate_encode_keepalive(kate_state *k, kate_float t, kate_packet *kp)
Definition: kate_encode.c:1117
kate_info::language
kate_const char * language
Definition: kate.h:289
kate_event::backlink
kate_int64_t backlink
Definition: kate.h:361
kate_info_add_motion
int kate_info_add_motion(kate_info *ki, kate_motion *km)
Definition: kate_info.c:394
kate_granule_shift
int kate_granule_shift(const kate_info *ki)
Definition: kate_granule.c:22
kate_tracker::text_valign
kate_float text_valign
Definition: kate.h:451
kate_info::nfont_ranges
size_t nfont_ranges
Definition: kate.h:311
kate_tracker_get_text_path_position
int kate_tracker_get_text_path_position(kate_tracker *kin, size_t glyph, int *x, int *y)
Definition: kate_tracker.c:613
kate_font_range::first_code_point
int first_code_point
Definition: kate.h:256
kate_style::text_color
kate_color text_color
Definition: kate.h:86
kate_meta_query_tag_count
int kate_meta_query_tag_count(const kate_meta *km, const char *tag)
Definition: kate_meta.c:238
kate_tracker::left_margin
kate_float left_margin
Definition: kate.h:494
kate_tracker_update_property_at_duration
int kate_tracker_update_property_at_duration(const kate_tracker *kin, kate_float duration, kate_float t, kate_motion_semantics semantics, kate_float *x, kate_float *y)
Definition: kate_tracker.c:234
kate_clear
int kate_clear(kate_state *k)
Definition: kate.c:74
kate_meta_query_tag
int kate_meta_query_tag(const kate_meta *km, const char *tag, unsigned int idx, const char **value, size_t *len)
Definition: kate_meta.c:189
kate_encode_add_bitmap_index
int kate_encode_add_bitmap_index(kate_state *k, size_t bitmap)
Definition: kate_encode.c:1356
kate_info::text_encoding
kate_text_encoding text_encoding
Definition: kate.h:279
kate_motion_semantics_marker3_position
Definition: kate.h:165
kate_font_mapping
Definition: kate.h:263
kate_info::regions
kate_const kate_region *kate_const * regions
Definition: kate.h:294
kate_curve_static
Definition: kate.h:118
kate_motion_semantics_vertical_margins
Definition: kate.h:183
kate_info::nmotions
size_t nmotions
Definition: kate.h:302
kate_motion_mapping_none
Definition: kate.h:136
kate_wrap_mode
kate_wrap_mode
Definition: kate.h:76
kate_tracker::bitmap_size
unsigned int bitmap_size
Definition: kate.h:427
kate_space_metric
kate_space_metric
Definition: kate.h:44
kate_event::font_mapping
kate_const kate_font_mapping * font_mapping
Definition: kate.h:381
kate_motion_semantics_background_color_ba
Definition: kate.h:174
kate_tracker_clear
int kate_tracker_clear(kate_tracker *kin)
Definition: kate_tracker.c:65
kate_comment_add_tag
int kate_comment_add_tag(kate_comment *kc, const char *tag, const char *value)
Definition: kate_comment.c:156
kate_style::top_margin
kate_float top_margin
Definition: kate.h:96
kate_motion
struct kate_motion kate_motion
kate_style::justify
unsigned int justify
Definition: kate.h:104
kate_curve::type
kate_curve_type type
Definition: kate.h:127
kate_style::bottom_margin
kate_float bottom_margin
Definition: kate.h:98
kate_info::text_directionality
kate_text_directionality text_directionality
Definition: kate.h:280
kate_style::draw_color
kate_color draw_color
Definition: kate.h:88
kate_motion_semantics_region_size
Definition: kate.h:158
kate_region::h
int h
Definition: kate.h:59
kate_text_encoding
kate_text_encoding
Definition: kate.h:33
kate_millionths
Definition: kate.h:47
kate_color::r
unsigned char r
Definition: kate.h:69
kate_tracker::region
unsigned int region
Definition: kate.h:410
kate_info::font_mappings
kate_const kate_font_mapping *kate_const * font_mappings
Definition: kate.h:315
kate_info_add_bitmap
int kate_info_add_bitmap(kate_info *ki, kate_bitmap *kb)
Definition: kate_info.c:420
kate_bitmap::palette
int palette
Definition: kate.h:245
kate_utf8
Definition: kate.h:34
kate_encode_set_text_directionality
int kate_encode_set_text_directionality(kate_state *k, kate_text_directionality text_directionality)
Definition: kate_encode.c:1594
kate_info::original_canvas_width
size_t original_canvas_width
Definition: kate.h:319
kate_motion_semantics
kate_motion_semantics
Definition: kate.h:154
kate_encode_init
int kate_encode_init(kate_state *k, kate_info *ki)
Definition: kate_encode.c:36
kate_motion_semantics_marker2_position
Definition: kate.h:164
kate_info_add_curve
int kate_info_add_curve(kate_info *ki, kate_curve *kc)
Definition: kate_info.c:381
kate_curve_catmull_rom_spline
Definition: kate.h:120
kate_tracker::frame_x
int frame_x
Definition: kate.h:438
kate_tracker::text_size
unsigned int text_size
Definition: kate.h:414
kate_info_init
int kate_info_init(kate_info *ki)
Definition: kate_info.c:29
kate_info::motions
kate_const kate_motion *kate_const * motions
Definition: kate.h:303
kate_bitmap_type_png
Definition: kate.h:234
kate_state::ki
kate_const kate_info * ki
Definition: kate.h:337
kate_style::left_margin
kate_float left_margin
Definition: kate.h:95
kate_font_mapping::ranges
kate_font_range ** ranges
Definition: kate.h:265
kate_tracker::visible_section
unsigned int visible_section
Definition: kate.h:422
kate_tracker::draw_color
unsigned int draw_color
Definition: kate.h:418
kate_granule_duration
kate_float kate_granule_duration(const kate_info *ki, kate_int64_t duration)
Definition: kate_granule.c:128
kate_style
Definition: kate.h:82
kate_tracker::text_color
unsigned int text_color
Definition: kate.h:416
kate_tracker::marker_bitmap
unsigned int marker_bitmap
Definition: kate.h:428
kate_style
struct kate_style kate_style
kate_meta_remove
int kate_meta_remove(kate_meta *km, unsigned int idx)
Definition: kate_meta.c:308
kate_packet::data
void * data
Definition: kate.h:528
kate_info::granule_shift
unsigned char granule_shift
Definition: kate.h:283
kate_tracker::glyph_pointer
unsigned int glyph_pointer
Definition: kate.h:419
kate_decode_headerin
int kate_decode_headerin(kate_info *ki, kate_comment *kc, kate_packet *kp)
Definition: kate_decode.c:1069
kate_font_mapping::nranges
size_t nranges
Definition: kate.h:264
kate_high_decode_get_comments
const kate_comment * kate_high_decode_get_comments(kate_state *k)
Definition: kate_high.c:149
kate_meta_query
int kate_meta_query(const kate_meta *km, unsigned int idx, const char **tag, const char **value, size_t *len)
Definition: kate_meta.c:219
kate_markup_none
Definition: kate.h:39
kate_motion_semantics_text_color_rg
Definition: kate.h:171
kate_motion_semantics_marker1_bitmap
Definition: kate.h:186
kate_comment::vendor
char * vendor
Definition: kate.h:351
kate_encode_set_region
int kate_encode_set_region(kate_state *k, const kate_region *kr)
Definition: kate_encode.c:1393
kate_tracker::visible_y
kate_float visible_y
Definition: kate.h:488
kate_encode_set_language
int kate_encode_set_language(kate_state *k, const char *language)
Definition: kate_encode.c:1630
kate_encode_set_bitmap_index
int kate_encode_set_bitmap_index(kate_state *k, size_t bitmap)
Definition: kate_encode.c:1522
kate_tracker::event
kate_const kate_event * event
Definition: kate.h:406
kate_get_bitstream_version_string
const char * kate_get_bitstream_version_string(void)
Definition: kate.c:62
kate_motion_semantics_bitmap_size
Definition: kate.h:185
kate_tracker::path
unsigned int path
Definition: kate.h:420
kate_style::right_margin
kate_float right_margin
Definition: kate.h:97
kate_tracker_update
int kate_tracker_update(kate_tracker *kin, kate_float t, int window_w, int window_h, int frame_x, int frame_y, int frame_w, int frame_h)
Definition: kate_tracker.c:327
kate_info_set_original_canvas_size
int kate_info_set_original_canvas_size(kate_info *ki, size_t width, size_t height)
Definition: kate_info.c:319
kate_tracker::bottom_margin
kate_float bottom_margin
Definition: kate.h:499
kate_motion_semantics_marker1_position
Definition: kate.h:163
kate_comment_add
int kate_comment_add(kate_comment *kc, const char *comment)
Definition: kate_comment.c:136
kate_event::start
kate_int64_t start
Definition: kate.h:359
kate_bitmap::size
size_t size
Definition: kate.h:247
kate_style::font_metric
kate_space_metric font_metric
Definition: kate.h:90
kate_info_set_category
int kate_info_set_category(kate_info *ki, const char *category)
Definition: kate_info.c:287
kate_motion_get_point
int kate_motion_get_point(const kate_motion *km, kate_float duration, kate_float t, kate_float *x, kate_float *y)
Definition: kate_motion.c:188
kate_style::valign
kate_float valign
Definition: kate.h:84
kate_motion_semantics_user
Definition: kate.h:198
kate_event::duration
kate_int64_t duration
Definition: kate.h:360
kate_tracker::visible_x
kate_float visible_x
Definition: kate.h:487
kate_info::nstyles
size_t nstyles
Definition: kate.h:296
kate_motion_semantics_glyph_pointer_3_bitmap
Definition: kate.h:192
kate_region
Definition: kate.h:54
kate_style::halign
kate_float halign
Definition: kate.h:83
kate_color::b
unsigned char b
Definition: kate.h:71
kate_comment_init
int kate_comment_init(kate_comment *kc)
Definition: kate_comment.c:29
kate_encode_text_raw_times
int kate_encode_text_raw_times(kate_state *k, kate_int64_t start_time, kate_int64_t stop_time, const char *text, size_t sz, kate_packet *kp)
Definition: kate_encode.c:953
kate_tracker_morph_styles
int kate_tracker_morph_styles(kate_style *style, kate_float t, const kate_style *from, const kate_style *to)
Definition: kate_tracker.c:90
kate_tracker::ki
const kate_info * ki
Definition: kate.h:405
kate_tracker::marker_x
kate_float marker_x[4]
Definition: kate.h:462
kate_get_version
int kate_get_version(void)
Definition: kate.c:32
kate_info::bitstream_version_minor
unsigned char bitstream_version_minor
Definition: kate.h:276
kate_tracker::glyph_pointer_bitmap
unsigned int glyph_pointer_bitmap
Definition: kate.h:429
kate_info_set_granule_encoding
int kate_info_set_granule_encoding(kate_info *ki, kate_float resolution, kate_float max_length, kate_float max_event_lifetime)
Definition: kate_info.c:100
kate_info::category
kate_const char * category
Definition: kate.h:291
kate_info_set_markup_type
int kate_info_set_markup_type(kate_info *ki, kate_markup_type text_markup_type)
Definition: kate_info.c:303
kate_style::bold
unsigned int bold
Definition: kate.h:100
kate_encode_set_style
int kate_encode_set_style(kate_state *k, const kate_style *ks)
Definition: kate_encode.c:1430
kate_motion_semantics_text_size
Definition: kate.h:162
kate_event::id
kate_int32_t id
Definition: kate.h:366
kate_motion_semantics_style_morph
Definition: kate.h:177
kate_event::text_directionality
kate_text_directionality text_directionality
Definition: kate.h:369
kate_encode_set_markup_type
int kate_encode_set_markup_type(kate_state *k, int markup_type)
Definition: kate_encode.c:1659
kate_motion_mapping_event_duration
Definition: kate.h:140
kate_tracker::background_color
kate_color background_color
Definition: kate.h:469
kate_region::w
int w
Definition: kate.h:58
kate_color
struct kate_color kate_color
kate_curve
struct kate_curve kate_curve
kate_motion_semantics_marker3_bitmap
Definition: kate.h:188
kate_encode_set_palette
int kate_encode_set_palette(kate_state *k, const kate_palette *kp)
Definition: kate_encode.c:1504
kate_encode_set_id
int kate_encode_set_id(kate_state *k, kate_int32_t id)
Definition: kate_encode.c:1612
kate_style::underline
unsigned int underline
Definition: kate.h:102
kate_font_range::last_code_point
int last_code_point
Definition: kate.h:257
kate_bitmap_init_new
int kate_bitmap_init_new(kate_bitmap *kb)
Definition: kate.c:239
kate_motion_mapping_bitmap_size
Definition: kate.h:141
kate_tracker
Definition: kate.h:404
kate_region::metric
kate_space_metric metric
Definition: kate.h:55
kate_style_init
int kate_style_init(kate_style *ks)
Definition: kate.c:144
kate_pixel
Definition: kate.h:45
kate_motion_semantics_text_path
Definition: kate.h:178
kate_info::text_markup_type
kate_markup_type text_markup_type
Definition: kate.h:317
kate_encode_add_meta
int kate_encode_add_meta(kate_state *k, const kate_meta *meta)
Definition: kate_encode.c:1677
kate_font_range
Definition: kate.h:255
kate_tracker::window_h
int window_h
Definition: kate.h:437
kate_meta_destroy
int kate_meta_destroy(kate_meta *km)
Definition: kate_meta.c:84
kate_motion_init
int kate_motion_init(kate_motion *km)
Definition: kate.c:288
kate_bitmap::x_offset
int x_offset
Definition: kate.h:248
kate_curve_type
kate_curve_type
Definition: kate.h:116
kate_region::x
int x
Definition: kate.h:56
kate_packet_init
int kate_packet_init(kate_packet *kp, size_t nbytes, const void *data)
Definition: kate_packet.c:55
kate_bitmap::bpp
unsigned char bpp
Definition: kate.h:241
kate_encode_finish_raw_times
int kate_encode_finish_raw_times(kate_state *k, kate_int64_t t, kate_packet *kp)
Definition: kate_encode.c:1209
kate_text_set_character
int kate_text_set_character(kate_text_encoding text_encoding, int c, char **const text, size_t *len0)
Definition: kate_text.c:251
kate_decode_packetin
int kate_decode_packetin(kate_state *k, kate_packet *kp)
Definition: kate_decode.c:1548
kate_motion_semantics_marker2_bitmap
Definition: kate.h:187
kate_info::ncurves
size_t ncurves
Definition: kate.h:299
kate_decode_seek
int kate_decode_seek(kate_state *k)
Definition: kate_decode.c:1611
kate_region::clip
unsigned int clip
Definition: kate.h:61
kate_curve_none
Definition: kate.h:117
kate_motion_mapping_frame
Definition: kate.h:137
kate_style::margin_metric
kate_space_metric margin_metric
Definition: kate.h:94
kate_tracker::background_color
unsigned int background_color
Definition: kate.h:417
kate_region_init
int kate_region_init(kate_region *kr)
Definition: kate.c:120
kate_motion_semantics_glyph_pointer_2_bitmap
Definition: kate.h:191
kate_font_range::first_bitmap
int first_bitmap
Definition: kate.h:258
kate_info::nregions
size_t nregions
Definition: kate.h:293
kate_tracker::top_margin
kate_float top_margin
Definition: kate.h:498
kate_meta_add_string
int kate_meta_add_string(kate_meta *km, const char *tag, const char *value)
Definition: kate_meta.c:164
kate_motion_semantics_text_alignment_int
Definition: kate.h:159
kate_tracker_remap
int kate_tracker_remap(const kate_tracker *kin, kate_motion_mapping x_mapping, kate_motion_mapping y_mapping, kate_float *x, kate_float *y)
Definition: kate_tracker.c:147
kate_encode_headers
int kate_encode_headers(kate_state *k, kate_comment *kc, kate_packet *kp)
Definition: kate_encode.c:1274
kate_region::style
int style
Definition: kate.h:60
kate_tracker::has
struct kate_tracker::@0 has
kate_tracker::window_w
int window_w
Definition: kate.h:436
kate_motion_semantics_background_color_rg
Definition: kate.h:173
kate_encode_repeat_raw_times
int kate_encode_repeat_raw_times(kate_state *k, kate_int64_t t, kate_int64_t threshold, kate_packet *kp)
Definition: kate_encode.c:1141
kate_event::len0
size_t len0
Definition: kate.h:373
kate_event::len
size_t len
Definition: kate.h:372
kate_region
struct kate_region kate_region
kate_motion_semantics_glyph_pointer_3
Definition: kate.h:169
kate_tracker::text_alignment_int
unsigned int text_alignment_int
Definition: kate.h:411
kate_curve
Definition: kate.h:126
kate_motion::x_mapping
kate_motion_mapping x_mapping
Definition: kate.h:206
kate_motion_semantics_glyph_pointer_2
Definition: kate.h:168
kate_bitmap_type_paletted
Definition: kate.h:233
kate_tracker::text_x
kate_float text_x
Definition: kate.h:454
kate_comment_clear
int kate_comment_clear(kate_comment *kc)
Definition: kate_comment.c:48
kate_l2r_t2b
Definition: kate.h:217
kate_event::style
kate_const kate_style * style
Definition: kate.h:379
kate_encode_repeat
int kate_encode_repeat(kate_state *k, kate_float t, kate_float threshold, kate_packet *kp)
Definition: kate_encode.c:1192
kate_tracker::draw
unsigned int draw
Definition: kate.h:421
kate_tracker::region_h
kate_float region_h
Definition: kate.h:447