This file is indexed.

/usr/share/gtk-doc/html/libucil/libucil-ucil.html.upstream is in libucil-docs 0.9.5-1.1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ucil</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="UCIL Reference Manual">
<link rel="up" href="ch01.html" title="UCIL">
<link rel="prev" href="libucil-draw.html" title="draw">
<link rel="next" href="libucil-ucil-version.html" title="ucil_version">
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libucil-draw.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">UCIL Reference Manual</th>
<td><a accesskey="n" href="libucil-ucil-version.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libucil-ucil.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#libucil-ucil.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="libucil-ucil"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libucil-ucil.top_of_page"></a>ucil</span></h2>
<p>ucil</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="libucil-ucil.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">#define             <a class="link" href="libucil-ucil.html#UCIL-FOURCC:CAPS" title="UCIL_FOURCC()">UCIL_FOURCC</a>                         (a,
                                                         b,
                                                         c,
                                                         d)
typedef             <a class="link" href="libucil-ucil.html#ucil-rgb24-t" title="ucil_rgb24_t">ucil_rgb24_t</a>;
typedef             <a class="link" href="libucil-ucil.html#ucil-rgb32-t" title="ucil_rgb32_t">ucil_rgb32_t</a>;
typedef             <a class="link" href="libucil-ucil.html#ucil-yuv-t" title="ucil_yuv_t">ucil_yuv_t</a>;
typedef             <a class="link" href="libucil-ucil.html#ucil-y8-t" title="ucil_y8_t">ucil_y8_t</a>;
typedef             <a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t">ucil_color_t</a>;
<span class="returnvalue">void</span>                <a class="link" href="libucil-ucil.html#ucil-convolution-mask" title="ucil_convolution_mask ()">ucil_convolution_mask</a>               (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *dest</code></em>,
                                                         <em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *src</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-convolution-mask-t" title="ucil_convolution_mask_t"><span class="type">ucil_convolution_mask_t</span></a> *mask</code></em>);
typedef             <a class="link" href="libucil-ucil.html#ucil-convolution-mask-t" title="ucil_convolution_mask_t">ucil_convolution_mask_t</a>;
typedef             <a class="link" href="libucil-ucil.html#ucil-font-object-t" title="ucil_font_object_t">ucil_font_object_t</a>;
typedef             <a class="link" href="libucil-ucil.html#ucil-video-file-object-t" title="ucil_video_file_object_t">ucil_video_file_object_t</a>;
<span class="returnvalue">unicap_status_t</span>     <a class="link" href="libucil-ucil.html#ucil-check-version" title="ucil_check_version ()">ucil_check_version</a>                  (<em class="parameter"><code>unsigned <span class="type">int</span> major</code></em>,
                                                         <em class="parameter"><code>unsigned <span class="type">int</span> minor</code></em>,
                                                         <em class="parameter"><code>unsigned <span class="type">int</span> micro</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libucil-draw.html#ucil-set-pixel" title="ucil_set_pixel ()">ucil_set_pixel</a>                      (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *data_buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *color</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libucil-ucil.html#ucil-set-pixel-alpha" title="ucil_set_pixel_alpha ()">ucil_set_pixel_alpha</a>                (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *data_buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *color</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> alpha</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libucil-draw.html#ucil-draw-line" title="ucil_draw_line ()">ucil_draw_line</a>                      (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *data_buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *color</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x1</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y1</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x2</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y2</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libucil-draw.html#ucil-draw-rect" title="ucil_draw_rect ()">ucil_draw_rect</a>                      (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *data_buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *color</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x1</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y1</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x2</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y2</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libucil-draw.html#ucil-fill" title="ucil_fill ()">ucil_fill</a>                           (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *data_buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *color</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libucil-draw.html#ucil-draw-box" title="ucil_draw_box ()">ucil_draw_box</a>                       (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *data_buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *color</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x1</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y1</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x2</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y2</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libucil-ucil.html#ucil-draw-circle" title="ucil_draw_circle ()">ucil_draw_circle</a>                    (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *dest</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *color</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> cx</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> cy</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> r</code></em>);
<a class="link" href="libucil-ucil.html#ucil-font-object-t" title="ucil_font_object_t"><span class="returnvalue">ucil_font_object_t</span></a> * <a class="link" href="libucil-ucil.html#ucil-create-font-object" title="ucil_create_font_object ()">ucil_create_font_object</a>            (<em class="parameter"><code><span class="type">int</span> size</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *font</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libucil-ucil.html#ucil-draw-text" title="ucil_draw_text ()">ucil_draw_text</a>                      (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *dest</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *color</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-font-object-t" title="ucil_font_object_t"><span class="type">ucil_font_object_t</span></a> *fobj</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libucil-ucil.html#ucil-destroy-font-object" title="ucil_destroy_font_object ()">ucil_destroy_font_object</a>            (<em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-font-object-t" title="ucil_font_object_t"><span class="type">ucil_font_object_t</span></a> *fobj</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libucil-ucil.html#ucil-text-get-size" title="ucil_text_get_size ()">ucil_text_get_size</a>                  (<em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-font-object-t" title="ucil_font_object_t"><span class="type">ucil_font_object_t</span></a> *fobj</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *width</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *height</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libucil-ucil.html#ucil-get-pixel" title="ucil_get_pixel ()">ucil_get_pixel</a>                      (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *data_buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *color</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libucil-draw.html#ucil-convert-color" title="ucil_convert_color ()">ucil_convert_color</a>                  (<em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *src</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *dest</code></em>);
<span class="returnvalue">unicap_status_t</span>     <a class="link" href="libucil-ucil.html#ucil-convert-buffer" title="ucil_convert_buffer ()">ucil_convert_buffer</a>                 (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *dest</code></em>,
                                                         <em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *src</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="libucil-ucil.html#ucil-conversion-supported" title="ucil_conversion_supported ()">ucil_conversion_supported</a>           (<em class="parameter"><code>unsigned <span class="type">int</span> dest_fourcc</code></em>,
                                                         <em class="parameter"><code>unsigned <span class="type">int</span> src_fourcc</code></em>);
<span class="returnvalue">ucil_colorspace_t</span>   <a class="link" href="libucil-ucil.html#ucil-get-colorspace-from-fourcc" title="ucil_get_colorspace_from_fourcc ()">ucil_get_colorspace_from_fourcc</a>     (<em class="parameter"><code>unsigned <span class="type">int</span> fourcc</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libucil-ucil.html#ucil-blend-alpha" title="ucil_blend_alpha ()">ucil_blend_alpha</a>                    (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *dest</code></em>,
                                                         <em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *bg</code></em>,
                                                         <em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *fg</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> alpha</code></em>);
<a class="link" href="libucil-ucil.html#ucil-convolution-mask-t" title="ucil_convolution_mask_t"><span class="returnvalue">ucil_convolution_mask_t</span></a> * <a class="link" href="libucil-ucil.html#ucil-create-convolution-mask" title="ucil_create_convolution_mask ()">ucil_create_convolution_mask</a>  (<em class="parameter"><code>unsigned <span class="type">char</span> *array</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> size</code></em>,
                                                         <em class="parameter"><code><span class="type">ucil_colorspace_t</span> cs</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> mode</code></em>);
<a class="link" href="libucil-ucil.html#ucil-video-file-object-t" title="ucil_video_file_object_t"><span class="returnvalue">ucil_video_file_object_t</span></a> * <a class="link" href="libucil-ucil.html#ucil-create-video-file" title="ucil_create_video_file ()">ucil_create_video_file</a>       (<em class="parameter"><code>const <span class="type">char</span> *path</code></em>,
                                                         <em class="parameter"><code><span class="type">unicap_format_t</span> *format</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *codec</code></em>,
                                                         <em class="parameter"><code>...</code></em>);
<span class="returnvalue">unicap_status_t</span>     <a class="link" href="libucil-ucil.html#ucil-encode-frame" title="ucil_encode_frame ()">ucil_encode_frame</a>                   (<em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-video-file-object-t" title="ucil_video_file_object_t"><span class="type">ucil_video_file_object_t</span></a> *vobj</code></em>,
                                                         <em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *buffer</code></em>);
<span class="returnvalue">unicap_status_t</span>     <a class="link" href="libucil-ucil.html#ucil-close-video-file" title="ucil_close_video_file ()">ucil_close_video_file</a>               (<em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-video-file-object-t" title="ucil_video_file_object_t"><span class="type">ucil_video_file_object_t</span></a> *vobj</code></em>);
<span class="returnvalue">unicap_status_t</span>     <a class="link" href="libucil-ucil.html#ucil-open-video-file" title="ucil_open_video_file ()">ucil_open_video_file</a>                (<em class="parameter"><code><span class="type">unicap_handle_t</span> *unicap_handle</code></em>,
                                                         <em class="parameter"><code><span class="type">char</span> *filename</code></em>);
const <span class="returnvalue">char</span> *        <a class="link" href="libucil-ucil.html#ucil-get-video-file-extension" title="ucil_get_video_file_extension ()">ucil_get_video_file_extension</a>       (<em class="parameter"><code>const <span class="type">char</span> *codec</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libucil-ucil.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1">
<a name="libucil-ucil.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="UCIL-FOURCC:CAPS"></a><h3>UCIL_FOURCC()</h3>
<pre class="programlisting">#define UCIL_FOURCC(a,b,c,d) (unsigned int)((((unsigned int)d)&lt;&lt;24)+(((unsigned int)c)&lt;&lt;16)+(((unsigned int)b)&lt;&lt;8)+a)
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ucil-rgb24-t"></a><h3>ucil_rgb24_t</h3>
<pre class="programlisting">typedef struct ucil_rgb24_t ucil_rgb24_t;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ucil-rgb32-t"></a><h3>ucil_rgb32_t</h3>
<pre class="programlisting">typedef struct ucil_rgb32_t ucil_rgb32_t;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ucil-yuv-t"></a><h3>ucil_yuv_t</h3>
<pre class="programlisting">typedef struct ucil_yuv_t ucil_yuv_t;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ucil-y8-t"></a><h3>ucil_y8_t</h3>
<pre class="programlisting">typedef struct ucil_y8_t ucil_y8_t;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ucil-color-t"></a><h3>ucil_color_t</h3>
<pre class="programlisting">typedef struct ucil_color_t ucil_color_t;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ucil-convolution-mask"></a><h3>ucil_convolution_mask ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                ucil_convolution_mask               (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *dest</code></em>,
                                                         <em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *src</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-convolution-mask-t" title="ucil_convolution_mask_t"><span class="type">ucil_convolution_mask_t</span></a> *mask</code></em>);</pre>
<p>
Apply a convolution mask
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dest</code></em> :</span></p></td>
<td>target buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>src</code></em> :</span></p></td>
<td>source buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mask</code></em> :</span></p></td>
<td>an <a class="link" href="libucil-ucil.html#ucil-convolution-mask" title="ucil_convolution_mask ()"><span class="type">ucil_convolution_mask</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ucil-convolution-mask-t"></a><h3>ucil_convolution_mask_t</h3>
<pre class="programlisting">typedef struct ucil_convolution_mask_t ucil_convolution_mask_t;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ucil-font-object-t"></a><h3>ucil_font_object_t</h3>
<pre class="programlisting">typedef struct ucil_font_object_t ucil_font_object_t;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ucil-video-file-object-t"></a><h3>ucil_video_file_object_t</h3>
<pre class="programlisting">typedef struct ucil_video_file_object_t ucil_video_file_object_t;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ucil-check-version"></a><h3>ucil_check_version ()</h3>
<pre class="programlisting"><span class="returnvalue">unicap_status_t</span>     ucil_check_version                  (<em class="parameter"><code>unsigned <span class="type">int</span> major</code></em>,
                                                         <em class="parameter"><code>unsigned <span class="type">int</span> minor</code></em>,
                                                         <em class="parameter"><code>unsigned <span class="type">int</span> micro</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ucil-set-pixel"></a><h3>ucil_set_pixel ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                ucil_set_pixel                      (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *data_buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *color</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y</code></em>);</pre>
<p>
Draws a pixel on the data buffer.
</p>
</div>
<hr>
<div class="refsect2">
<a name="ucil-set-pixel-alpha"></a><h3>ucil_set_pixel_alpha ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                ucil_set_pixel_alpha                (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *data_buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *color</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> alpha</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y</code></em>);</pre>
<p>
Draws a pixel on the data buffer, applying an alpha ( transparency
) value to the pixel.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_buffer</code></em> :</span></p></td>
<td>target buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td>
<td>an <a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a>. The colorspace of the color has to match
the colorspace of the data_buffer.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
<td>the alpha value that should be applied to this pixel</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>x position</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>y position</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ucil-draw-line"></a><h3>ucil_draw_line ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                ucil_draw_line                      (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *data_buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *color</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x1</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y1</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x2</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y2</code></em>);</pre>
<p>
Draws a line on the data buffer. The endpoints are clipped to the
buffer dimensions
</p>
</div>
<hr>
<div class="refsect2">
<a name="ucil-draw-rect"></a><h3>ucil_draw_rect ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                ucil_draw_rect                      (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *data_buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *color</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x1</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y1</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x2</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y2</code></em>);</pre>
<p>
Draws a rectangle filled with color.
</p>
</div>
<hr>
<div class="refsect2">
<a name="ucil-fill"></a><h3>ucil_fill ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                ucil_fill                           (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *data_buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *color</code></em>);</pre>
<p>
Fill the buffer with a color.
</p>
</div>
<hr>
<div class="refsect2">
<a name="ucil-draw-box"></a><h3>ucil_draw_box ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                ucil_draw_box                       (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *data_buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *color</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x1</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y1</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x2</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y2</code></em>);</pre>
<p>
Draws a box
</p>
</div>
<hr>
<div class="refsect2">
<a name="ucil-draw-circle"></a><h3>ucil_draw_circle ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                ucil_draw_circle                    (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *dest</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *color</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> cx</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> cy</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> r</code></em>);</pre>
<p>
Draws a circle.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td>
<td>an <a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a>. The colorspace of the color has to match
the colorspace of the data_buffer.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cx</code></em> :</span></p></td>
<td>center of the circle ( x position )</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cy</code></em> :</span></p></td>
<td>center of the circle ( y position )</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>r</code></em> :</span></p></td>
<td>radius</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ucil-create-font-object"></a><h3>ucil_create_font_object ()</h3>
<pre class="programlisting"><a class="link" href="libucil-ucil.html#ucil-font-object-t" title="ucil_font_object_t"><span class="returnvalue">ucil_font_object_t</span></a> * ucil_create_font_object            (<em class="parameter"><code><span class="type">int</span> size</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *font</code></em>);</pre>
<p>
Creates a font object required for text operations. The application
must free the font object with <a class="link" href="libucil-ucil.html#ucil-destroy-font-object" title="ucil_destroy_font_object ()"><span class="type">ucil_destroy_font_object</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>size of font in points</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
<td>name of font or NULL to use default font</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="libucil-ucil.html#ucil-font-object-t" title="ucil_font_object_t"><span class="type">ucil_font_object_t</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ucil-draw-text"></a><h3>ucil_draw_text ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                ucil_draw_text                      (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *dest</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *color</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-font-object-t" title="ucil_font_object_t"><span class="type">ucil_font_object_t</span></a> *fobj</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y</code></em>);</pre>
<p>
Draws a text string onto the target buffer.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dest</code></em> :</span></p></td>
<td>target buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td>
<td>an <a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a>. The colorspace of the color has to match
the colorspace of the data_buffer.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fobj</code></em> :</span></p></td>
<td>an <a class="link" href="libucil-ucil.html#ucil-font-object-t" title="ucil_font_object_t"><span class="type">ucil_font_object_t</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td>text string to draw</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>x position</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>y position</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ucil-destroy-font-object"></a><h3>ucil_destroy_font_object ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                ucil_destroy_font_object            (<em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-font-object-t" title="ucil_font_object_t"><span class="type">ucil_font_object_t</span></a> *fobj</code></em>);</pre>
<p>
Frees all resources allocated by the font object
</p>
</div>
<hr>
<div class="refsect2">
<a name="ucil-text-get-size"></a><h3>ucil_text_get_size ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                ucil_text_get_size                  (<em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-font-object-t" title="ucil_font_object_t"><span class="type">ucil_font_object_t</span></a> *fobj</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *width</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *height</code></em>);</pre>
<p>
Determines the size in pixels a text string will take up when drawn
onto a buffer.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fobj</code></em> :</span></p></td>
<td>an <a class="link" href="libucil-ucil.html#ucil-font-object-t" title="ucil_font_object_t"><span class="type">ucil_font_object_t</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td>text string</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td>pointer to int which will receive the width of the text</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>pointer to int which will receive the height of the text</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ucil-get-pixel"></a><h3>ucil_get_pixel ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                ucil_get_pixel                      (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *data_buffer</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *color</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y</code></em>);</pre>
<p>
Reads the pixel at position (x,y) and stores the result in <em class="structfield"><code>color</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data_buffer</code></em> :</span></p></td>
<td>buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td>
<td>pointer to an <a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> to store the result</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>x position</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>y position</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ucil-convert-color"></a><h3>ucil_convert_color ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                ucil_convert_color                  (<em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *src</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-color-t" title="ucil_color_t"><span class="type">ucil_color_t</span></a> *dest</code></em>);</pre>
<p>
Convert colors between colorspaces. The
<em class="structfield"><code>colorspace</code></em> field of
<span class="structname">dest</span> needs to be set to the target
colorspace, like in this example:
</p>
<p>
</p>
<div class="informalexample"><pre class="programlisting">
src.colorspace = UCIL_COLORSPACE_RGB24;
src.rgb24.r = 0xff;
src.rgb24.g = 0xff;
src.rgb24.b = 0xff;
dest.colorspace = UCIL_COLORSPACE_YUV;
ucil_convert_color( &amp;dest, &amp;src );
 </pre></div>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ucil-convert-buffer"></a><h3>ucil_convert_buffer ()</h3>
<pre class="programlisting"><span class="returnvalue">unicap_status_t</span>     ucil_convert_buffer                 (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *dest</code></em>,
                                                         <em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *src</code></em>);</pre>
<p>
Convert the colorspace of a data buffer. The colorspaces are
denoted by the <em class="structfield"><code>buffer.format.fourcc</code></em>
field. The dest-&gt;format.fourcc gets set to the correct value.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dest</code></em> :</span></p></td>
<td>target buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>src</code></em> :</span></p></td>
<td>source buffer</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>STATUS_SUCCESS if the buffer could be converted
successfully. STATUS_FAILURE if no conversion exists.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ucil-conversion-supported"></a><h3>ucil_conversion_supported ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 ucil_conversion_supported           (<em class="parameter"><code>unsigned <span class="type">int</span> dest_fourcc</code></em>,
                                                         <em class="parameter"><code>unsigned <span class="type">int</span> src_fourcc</code></em>);</pre>
<p>
Tests whether a specific conversion is supported.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dest_fourcc</code></em> :</span></p></td>
<td>target fourcc</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>src_fourcc</code></em> :</span></p></td>
<td>source fourcc</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>1 when the conversion is supported</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ucil-get-colorspace-from-fourcc"></a><h3>ucil_get_colorspace_from_fourcc ()</h3>
<pre class="programlisting"><span class="returnvalue">ucil_colorspace_t</span>   ucil_get_colorspace_from_fourcc     (<em class="parameter"><code>unsigned <span class="type">int</span> fourcc</code></em>);</pre>
<p>
Gets the <span class="type">ucil_colorspace_t</span> that matches the fourcc.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>fourcc</code></em> :</span></p></td>
<td>fourcc</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an <span class="type">ucil_colorspace_t</span>. This is UCIL_COLORSPACE_UNKNOWN
when no conversion exists.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ucil-blend-alpha"></a><h3>ucil_blend_alpha ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                ucil_blend_alpha                    (<em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *dest</code></em>,
                                                         <em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *bg</code></em>,
                                                         <em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *fg</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> alpha</code></em>);</pre>
<p>
Blends two buffers into a target buffer. Colorspaces of buffers
should match.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dest</code></em> :</span></p></td>
<td>target buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>bg</code></em> :</span></p></td>
<td>background buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fg</code></em> :</span></p></td>
<td>foreground buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
<td>transparency value</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ucil-create-convolution-mask"></a><h3>ucil_create_convolution_mask ()</h3>
<pre class="programlisting"><a class="link" href="libucil-ucil.html#ucil-convolution-mask-t" title="ucil_convolution_mask_t"><span class="returnvalue">ucil_convolution_mask_t</span></a> * ucil_create_convolution_mask  (<em class="parameter"><code>unsigned <span class="type">char</span> *array</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> size</code></em>,
                                                         <em class="parameter"><code><span class="type">ucil_colorspace_t</span> cs</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> mode</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ucil-create-video-file"></a><h3>ucil_create_video_file ()</h3>
<pre class="programlisting"><a class="link" href="libucil-ucil.html#ucil-video-file-object-t" title="ucil_video_file_object_t"><span class="returnvalue">ucil_video_file_object_t</span></a> * ucil_create_video_file       (<em class="parameter"><code>const <span class="type">char</span> *path</code></em>,
                                                         <em class="parameter"><code><span class="type">unicap_format_t</span> *format</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *codec</code></em>,
                                                         <em class="parameter"><code>...</code></em>);</pre>
<p>
Creates a video file to be used for video recording. After
creation, add frames to the video file with <a class="link" href="libucil-ucil.html#ucil-encode-frame" title="ucil_encode_frame ()"><span class="type">ucil_encode_frame</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>filename with full path</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
<td>image format of individual frames</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>codec</code></em> :</span></p></td>
<td>codec name or NULL to use default codec</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A new <a class="link" href="libucil-ucil.html#ucil-video-file-object-t" title="ucil_video_file_object_t"><span class="type">ucil_video_file_object_t</span></a> or NULL on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ucil-encode-frame"></a><h3>ucil_encode_frame ()</h3>
<pre class="programlisting"><span class="returnvalue">unicap_status_t</span>     ucil_encode_frame                   (<em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-video-file-object-t" title="ucil_video_file_object_t"><span class="type">ucil_video_file_object_t</span></a> *vobj</code></em>,
                                                         <em class="parameter"><code><span class="type">unicap_data_buffer_t</span> *buffer</code></em>);</pre>
<p>
Adds a frame to a video file.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>vobj</code></em> :</span></p></td>
<td>a video file object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>data buffer</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>STATUS_SUCCESS if the frame got added successfully.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ucil-close-video-file"></a><h3>ucil_close_video_file ()</h3>
<pre class="programlisting"><span class="returnvalue">unicap_status_t</span>     ucil_close_video_file               (<em class="parameter"><code><a class="link" href="libucil-ucil.html#ucil-video-file-object-t" title="ucil_video_file_object_t"><span class="type">ucil_video_file_object_t</span></a> *vobj</code></em>);</pre>
<p>
Close a video file created with <a class="link" href="libucil-ucil.html#ucil-create-video-file" title="ucil_create_video_file ()"><span class="type">ucil_create_video_file</span></a>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>vobj</code></em> :</span></p></td>
<td>an <span class="type">ucil_video_file_object</span>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ucil-open-video-file"></a><h3>ucil_open_video_file ()</h3>
<pre class="programlisting"><span class="returnvalue">unicap_status_t</span>     ucil_open_video_file                (<em class="parameter"><code><span class="type">unicap_handle_t</span> *unicap_handle</code></em>,
                                                         <em class="parameter"><code><span class="type">char</span> *filename</code></em>);</pre>
<p>
Opens a video file for playback. The resulting handle can be used
like a video capture device.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>unicap_handle</code></em> :</span></p></td>
<td>pointer to an <span class="type">unicap_handle_t</span> where the new handle
gets stored.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>full path of the video file</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ucil-get-video-file-extension"></a><h3>ucil_get_video_file_extension ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> *        ucil_get_video_file_extension       (<em class="parameter"><code>const <span class="type">char</span> *codec</code></em>);</pre>
<p>
Get the file extension of a codec. Eg. for the "ogg/theora" codec,
this will return "ogg". The returned string is owned by ucil and
should not be freed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>codec</code></em> :</span></p></td>
<td>codec name</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>string</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.17</div>
</body>
</html>