/usr/share/gtk-doc/html/cheese/CheeseCamera.html is in libcheese-doc 3.10.2-0ubuntu2.
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 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Cheese Reference Manual: CheeseCamera</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="Cheese Reference Manual">
<link rel="up" href="libcheese.html" title="libcheese">
<link rel="prev" href="cheese-Initializing-libcheese.html" title="Initializing libcheese">
<link rel="next" href="CheeseCameraDevice.html" title="CheeseCameraDevice">
<meta name="generator" content="GTK-Doc V1.19.1 (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="10"><tr valign="middle">
<td width="100%" align="left">
<a href="#" class="shortcut">Top</a>
|
<a href="#CheeseCamera.description" class="shortcut">Description</a>
|
<a href="#CheeseCamera.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#CheeseCamera.properties" class="shortcut">Properties</a>
|
<a href="#CheeseCamera.signals" class="shortcut">Signals</a>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="libcheese.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="cheese-Initializing-libcheese.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="CheeseCameraDevice.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="CheeseCamera"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="CheeseCamera.top_of_page"></a>CheeseCamera</span></h2>
<p>CheeseCamera — A representation of the video capture device inside
<a class="link" href="CheeseWidget.html" title="CheeseWidget"><span class="type">CheeseWidget</span></a></p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="CheeseCamera.stability-level"></a><h2>Stability Level</h2>
Unstable, unless otherwise indicated
</div>
<div class="refsynopsisdiv">
<a name="CheeseCamera.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include <cheese/cheese-camera.h>
struct <a class="link" href="CheeseCamera.html#CheeseCameraClass" title="struct CheeseCameraClass">CheeseCameraClass</a>;
struct <a class="link" href="CheeseCamera.html#CheeseCamera-struct" title="struct CheeseCamera">CheeseCamera</a>;
<a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="returnvalue">CheeseCamera</span></a> * <a class="link" href="CheeseCamera.html#cheese-camera-new" title="cheese_camera_new ()">cheese_camera_new</a> (<em class="parameter"><code><span class="type">ClutterTexture</span> *video_texture</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *camera_device_node</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x_resolution</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y_resolution</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Pointer-Arrays.html#GPtrArray"><span class="returnvalue">GPtrArray</span></a> * <a class="link" href="CheeseCamera.html#cheese-camera-get-camera-devices" title="cheese_camera_get_camera_devices ()">cheese_camera_get_camera_devices</a> (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);
const <a class="link" href="CheeseCameraDevice.html#CheeseVideoFormat"><span class="returnvalue">CheeseVideoFormat</span></a> * <a class="link" href="CheeseCamera.html#cheese-camera-get-current-video-format" title="cheese_camera_get_current_video_format ()">cheese_camera_get_current_video_format</a>
(<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * <a class="link" href="CheeseCamera.html#cheese-camera-get-video-formats" title="cheese_camera_get_video_formats ()">cheese_camera_get_video_formats</a> (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CheeseCamera.html#cheese-camera-set-video-format" title="cheese_camera_set_video_format ()">cheese_camera_set_video_format</a> (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code><a class="link" href="CheeseCameraDevice.html#CheeseVideoFormat"><span class="type">CheeseVideoFormat</span></a> *format</code></em>);
<a class="link" href="CheeseCameraDevice.html" title="CheeseCameraDevice"><span class="returnvalue">CheeseCameraDevice</span></a> * <a class="link" href="CheeseCamera.html#cheese-camera-get-selected-device" title="cheese_camera_get_selected_device ()">cheese_camera_get_selected_device</a> (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CheeseCamera.html#cheese-camera-set-device-by-device-node" title="cheese_camera_set_device_by_device_node ()">cheese_camera_set_device_by_device_node</a>
(<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *file</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CheeseCamera.html#cheese-camera-set-effect" title="cheese_camera_set_effect ()">cheese_camera_set_effect</a> (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code><a class="link" href="CheeseEffect.html" title="CheeseEffect"><span class="type">CheeseEffect</span></a> *effect</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="CheeseCamera.html#cheese-camera-get-balance-property-range" title="cheese_camera_get_balance_property_range ()">cheese_camera_get_balance_property_range</a>
(<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *min</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *max</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *def</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CheeseCamera.html#cheese-camera-set-balance-property" title="cheese_camera_set_balance_property ()">cheese_camera_set_balance_property</a> (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> value</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="CheeseCamera.html#cheese-camera-get-recorded-time" title="cheese_camera_get_recorded_time ()">cheese_camera_get_recorded_time</a> (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CheeseCamera.html#cheese-camera-connect-effect-texture" title="cheese_camera_connect_effect_texture ()">cheese_camera_connect_effect_texture</a>
(<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code><a class="link" href="CheeseEffect.html" title="CheeseEffect"><span class="type">CheeseEffect</span></a> *effect</code></em>,
<em class="parameter"><code><span class="type">ClutterTexture</span> *texture</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CheeseCamera.html#cheese-camera-play" title="cheese_camera_play ()">cheese_camera_play</a> (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CheeseCamera.html#cheese-camera-stop" title="cheese_camera_stop ()">cheese_camera_stop</a> (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CheeseCamera.html#cheese-camera-start-video-recording" title="cheese_camera_start_video_recording ()">cheese_camera_start_video_recording</a> (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CheeseCamera.html#cheese-camera-stop-video-recording" title="cheese_camera_stop_video_recording ()">cheese_camera_stop_video_recording</a> (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CheeseCamera.html#cheese-camera-switch-camera-device" title="cheese_camera_switch_camera_device ()">cheese_camera_switch_camera_device</a> (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="CheeseCamera.html#cheese-camera-take-photo" title="cheese_camera_take_photo ()">cheese_camera_take_photo</a> (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="CheeseCamera.html#cheese-camera-take-photo-pixbuf" title="cheese_camera_take_photo_pixbuf ()">cheese_camera_take_photo_pixbuf</a> (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CheeseCamera.html#cheese-camera-toggle-effects-pipeline" title="cheese_camera_toggle_effects_pipeline ()">cheese_camera_toggle_effects_pipeline</a>
(<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> active</code></em>);
enum <a class="link" href="CheeseCamera.html#CheeseCameraError" title="enum CheeseCameraError">CheeseCameraError</a>;
<span class="returnvalue">void</span> <a class="link" href="CheeseCamera.html#cheese-camera-setup" title="cheese_camera_setup ()">cheese_camera_setup</a> (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *uuid</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="CheeseCamera.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
+----CheeseCamera
</pre>
</div>
<div class="refsect1">
<a name="CheeseCamera.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="CheeseCamera.html#CheeseCamera--device-node" title='The "device-node" property'>device-node</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
"<a class="link" href="CheeseCamera.html#CheeseCamera--format" title='The "format" property'>format</a>" <a class="link" href="CheeseCameraDevice.html#CheeseVideoFormat"><span class="type">CheeseVideoFormat</span></a>* : Read / Write
"<a class="link" href="CheeseCamera.html#CheeseCamera--num-camera-devices" title='The "num-camera-devices" property'>num-camera-devices</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> : Read
"<a class="link" href="CheeseCamera.html#CheeseCamera--video-texture" title='The "video-texture" property'>video-texture</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> : Read / Write
</pre>
</div>
<div class="refsect1">
<a name="CheeseCamera.signals"></a><h2>Signals</h2>
<pre class="synopsis">
"<a class="link" href="CheeseCamera.html#CheeseCamera-photo-saved" title='The "photo-saved" signal'>photo-saved</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
"<a class="link" href="CheeseCamera.html#CheeseCamera-photo-taken" title='The "photo-taken" signal'>photo-taken</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
"<a class="link" href="CheeseCamera.html#CheeseCamera-state-flags-changed" title='The "state-flags-changed" signal'>state-flags-changed</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
"<a class="link" href="CheeseCamera.html#CheeseCamera-video-saved" title='The "video-saved" signal'>video-saved</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
</pre>
</div>
<div class="refsect1">
<a name="CheeseCamera.description"></a><h2>Description</h2>
<p>
<a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> represents the video capture device used to drive a
<a class="link" href="CheeseWidget.html" title="CheeseWidget"><span class="type">CheeseWidget</span></a>.
</p>
</div>
<div class="refsect1">
<a name="CheeseCamera.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="CheeseCameraClass"></a><h3>struct CheeseCameraClass</h3>
<pre class="programlisting">struct CheeseCameraClass {
void (*photo_saved)(CheeseCamera *camera);
void (*photo_taken)(CheeseCamera *camera, GdkPixbuf *pixbuf);
void (*video_saved)(CheeseCamera *camera);
void (*state_flags_changed)(CheeseCamera *camera, GstState new_state);
};
</pre>
<p>
Class for <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="CheeseCameraClass.photo-saved"></a>photo_saved</code></em> ()</span></p></td>
<td>invoked when a photo was saved to disk</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="CheeseCameraClass.photo-taken"></a>photo_taken</code></em> ()</span></p></td>
<td>invoked when a photo was taken</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="CheeseCameraClass.video-saved"></a>video_saved</code></em> ()</span></p></td>
<td>invoked when a video was saved to disk</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="CheeseCameraClass.state-flags-changed"></a>state_flags_changed</code></em> ()</span></p></td>
<td>invoked when the state of the camera <span class="type">GstElement</span>
changed</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="CheeseCamera-struct"></a><h3>struct CheeseCamera</h3>
<pre class="programlisting">struct CheeseCamera;</pre>
<p>
Use the accessor functions below.
</p>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-new"></a><h3>cheese_camera_new ()</h3>
<pre class="programlisting"><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="returnvalue">CheeseCamera</span></a> * cheese_camera_new (<em class="parameter"><code><span class="type">ClutterTexture</span> *video_texture</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *camera_device_node</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x_resolution</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y_resolution</code></em>);</pre>
<p>
Create a new <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> object.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>video_texture</code></em> :</span></p></td>
<td>a <span class="type">ClutterTexture</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera_device_node</code></em> :</span></p></td>
<td>the device node path. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x_resolution</code></em> :</span></p></td>
<td>the resolution width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y_resolution</code></em> :</span></p></td>
<td>the resolution height</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="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-get-camera-devices"></a><h3>cheese_camera_get_camera_devices ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Pointer-Arrays.html#GPtrArray"><span class="returnvalue">GPtrArray</span></a> * cheese_camera_get_camera_devices (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);</pre>
<p>
Get the list of <a class="link" href="CheeseCameraDevice.html" title="CheeseCameraDevice"><span class="type">CheeseCameraDevice</span></a> objects, representing active video
capture devices on the system.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an array
of <a class="link" href="CheeseCameraDevice.html" title="CheeseCameraDevice"><span class="type">CheeseCameraDevice</span></a>. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Cheese.CameraDevice][<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-get-current-video-format"></a><h3>cheese_camera_get_current_video_format ()</h3>
<pre class="programlisting">const <a class="link" href="CheeseCameraDevice.html#CheeseVideoFormat"><span class="returnvalue">CheeseVideoFormat</span></a> * cheese_camera_get_current_video_format
(<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);</pre>
<p>
Get the <a class="link" href="CheeseCameraDevice.html#CheeseVideoFormat"><span class="type">CheeseVideoFormat</span></a> that is currently set on the <em class="parameter"><code>camera</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="CheeseCameraDevice.html#CheeseVideoFormat"><span class="type">CheeseVideoFormat</span></a> set on the <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-get-video-formats"></a><h3>cheese_camera_get_video_formats ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * cheese_camera_get_video_formats (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);</pre>
<p>
Gets the list of <a class="link" href="CheeseCameraDevice.html#CheeseVideoFormat"><span class="type">CheeseVideoFormat</span></a> supported by the selected
<a class="link" href="CheeseCameraDevice.html" title="CheeseCameraDevice"><span class="type">CheeseCameraDevice</span></a> on the <em class="parameter"><code>camera</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of
<a class="link" href="CheeseCameraDevice.html#CheeseVideoFormat"><span class="type">CheeseVideoFormat</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there was no device selected. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Cheese.VideoFormat][<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-set-video-format"></a><h3>cheese_camera_set_video_format ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cheese_camera_set_video_format (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code><a class="link" href="CheeseCameraDevice.html#CheeseVideoFormat"><span class="type">CheeseVideoFormat</span></a> *format</code></em>);</pre>
<p>
Sets a <a class="link" href="CheeseCameraDevice.html#CheeseVideoFormat"><span class="type">CheeseVideoFormat</span></a> on a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>, restarting the video stream if
necessary.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCameraDevice.html#CheeseVideoFormat"><span class="type">CheeseVideoFormat</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-get-selected-device"></a><h3>cheese_camera_get_selected_device ()</h3>
<pre class="programlisting"><a class="link" href="CheeseCameraDevice.html" title="CheeseCameraDevice"><span class="returnvalue">CheeseCameraDevice</span></a> * cheese_camera_get_selected_device (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);</pre>
<p>
Get the currently-selected <a class="link" href="CheeseCameraDevice.html" title="CheeseCameraDevice"><span class="type">CheeseCameraDevice</span></a> of the <em class="parameter"><code>camera</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="CheeseCameraDevice.html" title="CheeseCameraDevice"><span class="type">CheeseCameraDevice</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is no
selected device. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-set-device-by-device-node"></a><h3>cheese_camera_set_device_by_device_node ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cheese_camera_set_device_by_device_node
(<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *file</code></em>);</pre>
<p>
Set the active video capture device of the <em class="parameter"><code>camera</code></em>, matching by device node
path.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>file</code></em> :</span></p></td>
<td>the device node path. <span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> filename]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-set-effect"></a><h3>cheese_camera_set_effect ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cheese_camera_set_effect (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code><a class="link" href="CheeseEffect.html" title="CheeseEffect"><span class="type">CheeseEffect</span></a> *effect</code></em>);</pre>
<p>
Set the <em class="parameter"><code>effect</code></em> on the <em class="parameter"><code>camera</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>effect</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseEffect.html" title="CheeseEffect"><span class="type">CheeseEffect</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-get-balance-property-range"></a><h3>cheese_camera_get_balance_property_range ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cheese_camera_get_balance_property_range
(<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *min</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *max</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *def</code></em>);</pre>
<p>
Get the minimum, maximum and default values for the requested <em class="parameter"><code>property</code></em> of
the <em class="parameter"><code>camera</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>property</code></em> :</span></p></td>
<td>name of the balance property</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>min</code></em> :</span></p></td>
<td>minimum value. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>max</code></em> :</span></p></td>
<td>maximum value. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>def</code></em> :</span></p></td>
<td>default value. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the operation was successful, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-set-balance-property"></a><h3>cheese_camera_set_balance_property ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cheese_camera_set_balance_property (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> value</code></em>);</pre>
<p>
Set the requested <em class="parameter"><code>property</code></em> on the <em class="parameter"><code>camera</code></em> to <em class="parameter"><code>value</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>A <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>property</code></em> :</span></p></td>
<td>name of the balance property</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>value to be set</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-get-recorded-time"></a><h3>cheese_camera_get_recorded_time ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * cheese_camera_get_recorded_time (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);</pre>
<p>
Get a string representation of the playing time
of the current video recording
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>A <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A string with the time representation.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-connect-effect-texture"></a><h3>cheese_camera_connect_effect_texture ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cheese_camera_connect_effect_texture
(<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code><a class="link" href="CheeseEffect.html" title="CheeseEffect"><span class="type">CheeseEffect</span></a> *effect</code></em>,
<em class="parameter"><code><span class="type">ClutterTexture</span> *texture</code></em>);</pre>
<p>
Connect the supplied <em class="parameter"><code>texture</code></em> to the <em class="parameter"><code>camera</code></em>, using <em class="parameter"><code>effect</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>effect</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseEffect.html" title="CheeseEffect"><span class="type">CheeseEffect</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>texture</code></em> :</span></p></td>
<td>a <span class="type">ClutterTexture</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-play"></a><h3>cheese_camera_play ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cheese_camera_play (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);</pre>
<p>
Set the state of the GStreamer pipeline associated with the <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> to
playing.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-stop"></a><h3>cheese_camera_stop ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cheese_camera_stop (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);</pre>
<p>
Set the state of the GStreamer pipeline associated with the <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> to
NULL.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-start-video-recording"></a><h3>cheese_camera_start_video_recording ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cheese_camera_start_video_recording (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>);</pre>
<p>
Start a video recording with the <em class="parameter"><code>camera</code></em> and save it to <em class="parameter"><code>filename</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>the name of the video file to where the
recording will be saved. <span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> filename]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-stop-video-recording"></a><h3>cheese_camera_stop_video_recording ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cheese_camera_stop_video_recording (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);</pre>
<p>
Stop recording video on the <em class="parameter"><code>camera</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-switch-camera-device"></a><h3>cheese_camera_switch_camera_device ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cheese_camera_switch_camera_device (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);</pre>
<p>
Toggle the playing/recording state of the <em class="parameter"><code>camera</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-take-photo"></a><h3>cheese_camera_take_photo ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cheese_camera_take_photo (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>);</pre>
<p>
Save a photo taken with the <em class="parameter"><code>camera</code></em> to a new file at <em class="parameter"><code>filename</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>name of the file to save a photo to. <span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> filename]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if an error occurred</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-take-photo-pixbuf"></a><h3>cheese_camera_take_photo_pixbuf ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cheese_camera_take_photo_pixbuf (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>);</pre>
<p>
Take a photo with the <em class="parameter"><code>camera</code></em> and emit it in the ::capture-start signal as a
<span class="type">GdkPixbuf</span>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the photo was successfully captured, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-toggle-effects-pipeline"></a><h3>cheese_camera_toggle_effects_pipeline ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cheese_camera_toggle_effects_pipeline
(<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> active</code></em>);</pre>
<p>
Control whether the effects pipeline is enabled for <em class="parameter"><code>camera</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>active</code></em> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if effects pipeline is active, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="CheeseCameraError"></a><h3>enum CheeseCameraError</h3>
<pre class="programlisting">typedef enum {
CHEESE_CAMERA_ERROR_UNKNOWN,
CHEESE_CAMERA_ERROR_ELEMENT_NOT_FOUND,
CHEESE_CAMERA_ERROR_NO_DEVICE
} CheeseCameraError;
</pre>
<p>
Errors that can occur during camera setup, when calling
<a class="link" href="CheeseCamera.html#cheese-camera-setup" title="cheese_camera_setup ()"><code class="function">cheese_camera_setup()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><a name="CHEESE-CAMERA-ERROR-UNKNOWN:CAPS"></a><span class="term"><code class="literal">CHEESE_CAMERA_ERROR_UNKNOWN</code></span></p></td>
<td>unknown error
</td>
</tr>
<tr>
<td><p><a name="CHEESE-CAMERA-ERROR-ELEMENT-NOT-FOUND:CAPS"></a><span class="term"><code class="literal">CHEESE_CAMERA_ERROR_ELEMENT_NOT_FOUND</code></span></p></td>
<td>a required GStreamer element was not
found
</td>
</tr>
<tr>
<td><p><a name="CHEESE-CAMERA-ERROR-NO-DEVICE:CAPS"></a><span class="term"><code class="literal">CHEESE_CAMERA_ERROR_NO_DEVICE</code></span></p></td>
<td>a <a class="link" href="CheeseCameraDevice.html" title="CheeseCameraDevice"><span class="type">CheeseCameraDevice</span></a> was not found
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cheese-camera-setup"></a><h3>cheese_camera_setup ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cheese_camera_setup (<em class="parameter"><code><a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera</code></em>,
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *uuid</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Setup a video capture device.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uuid</code></em> :</span></p></td>
<td>UUID of the video capture device, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>return location for a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="CheeseCamera.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="CheeseCamera--device-node"></a><h3>The <code class="literal">"device-node"</code> property</h3>
<pre class="programlisting"> "device-node" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre>
<p>
The path to the device node for the video capture device.
</p>
<p>Default value: ""</p>
</div>
<hr>
<div class="refsect2">
<a name="CheeseCamera--format"></a><h3>The <code class="literal">"format"</code> property</h3>
<pre class="programlisting"> "format" <a class="link" href="CheeseCameraDevice.html#CheeseVideoFormat"><span class="type">CheeseVideoFormat</span></a>* : Read / Write</pre>
<p>
The format of the video capture device.
</p>
</div>
<hr>
<div class="refsect2">
<a name="CheeseCamera--num-camera-devices"></a><h3>The <code class="literal">"num-camera-devices"</code> property</h3>
<pre class="programlisting"> "num-camera-devices" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> : Read</pre>
<p>
The currently number of camera devices available for being used.
</p>
<p>Allowed values: <= 255</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="CheeseCamera--video-texture"></a><h3>The <code class="literal">"video-texture"</code> property</h3>
<pre class="programlisting"> "video-texture" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> : Read / Write</pre>
<p>
The video texture for the <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> to render into.
</p>
</div>
</div>
<div class="refsect1">
<a name="CheeseCamera.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="CheeseCamera-photo-saved"></a><h3>The <code class="literal">"photo-saved"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
<p>
Emitted when a photo was saved to disk.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="CheeseCamera-photo-taken"></a><h3>The <code class="literal">"photo-taken"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera,
<span class="type">GdkPixbuf</span> *pixbuf,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
<p>
Emitted when a photo was taken.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
<td>a <span class="type">GdkPixbuf</span> of the photo which was taken</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="CheeseCamera-state-flags-changed"></a><h3>The <code class="literal">"state-flags-changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> state,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
<p>
Emitted when the state of the <em class="parameter"><code>camera</code></em> <span class="type">GstElement</span> changed.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
<td>the <span class="type">GstState</span> which <em class="parameter"><code>camera</code></em> changed to</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="CheeseCamera-video-saved"></a><h3>The <code class="literal">"video-saved"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a> *camera,
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
<p>
Emitted when a video was saved to disk.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>camera</code></em> :</span></p></td>
<td>a <a class="link" href="CheeseCamera.html" title="CheeseCamera"><span class="type">CheeseCamera</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.19.1</div>
</body>
</html>
|