/usr/share/gtk-doc/html/ges-1.0/GESAsset.html is in libges-1.0-doc 1.14.0-1.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GESAsset: GStreamer Editing Services 1.14.0 Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="GStreamer Editing Services 1.14.0 Reference Manual">
<link rel="up" href="ch02.html" title="Base Classes">
<link rel="prev" href="GESBaseTransitionClip.html" title="GESBaseTransitionClip">
<link rel="next" href="ch03.html" title="Timeline objects">
<meta name="generator" content="GTK-Doc V1.27 (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="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#GESAsset.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
<a href="#GESAsset.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces"> <span class="dim">|</span>
<a href="#GESAsset.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span>
</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="ch02.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="GESBaseTransitionClip.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="ch03.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GESAsset"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GESAsset.top_of_page"></a>GESAsset</span></h2>
<p>GESAsset — Represents usable resources inside the GStreamer Editing Services</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GESAsset.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a href="../gobject/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a>
</td>
<td class="function_name">
<a class="link" href="GESAsset.html#ges-asset-get-extractable-type" title="ges_asset_get_extractable_type ()">ges_asset_get_extractable_type</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="GESAsset.html#ges-asset-get-id" title="ges_asset_get_id ()">ges_asset_get_id</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GESAsset.html" title="GESAsset"><span class="returnvalue">GESAsset</span></a> *
</td>
<td class="function_name">
<a class="link" href="GESAsset.html#ges-asset-request" title="ges_asset_request ()">ges_asset_request</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GESAsset.html#ges-asset-request-async" title="ges_asset_request_async ()">ges_asset_request_async</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GESAsset.html" title="GESAsset"><span class="returnvalue">GESAsset</span></a> *
</td>
<td class="function_name">
<a class="link" href="GESAsset.html#ges-asset-request-finish" title="ges_asset_request_finish ()">ges_asset_request_finish</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="ges-GESExtractableInterface.html#GESExtractable"><span class="returnvalue">GESExtractable</span></a> *
</td>
<td class="function_name">
<a class="link" href="GESAsset.html#ges-asset-extract" title="ges_asset_extract ()">ges_asset_extract</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> *
</td>
<td class="function_name">
<a class="link" href="GESAsset.html#ges-asset-get-error" title="ges_asset_get_error ()">ges_asset_get_error</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
</td>
<td class="function_name">
<a class="link" href="GESAsset.html#ges-list-assets" title="ges_list_assets ()">ges_list_assets</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GESAsset.html#ges-asset-set-proxy" title="ges_asset_set_proxy ()">ges_asset_set_proxy</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
</td>
<td class="function_name">
<a class="link" href="GESAsset.html#ges-asset-list-proxies" title="ges_asset_list_proxies ()">ges_asset_list_proxies</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GESAsset.html" title="GESAsset"><span class="returnvalue">GESAsset</span></a> *
</td>
<td class="function_name">
<a class="link" href="GESAsset.html#ges-asset-get-proxy-target" title="ges_asset_get_proxy_target ()">ges_asset_get_proxy_target</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GESAsset.html" title="GESAsset"><span class="returnvalue">GESAsset</span></a> *
</td>
<td class="function_name">
<a class="link" href="GESAsset.html#ges-asset-get-proxy" title="ges_asset_get_proxy ()">ges_asset_get_proxy</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="GESAsset.html#ges-asset-needs-reload" title="ges_asset_needs_reload ()">ges_asset_needs_reload</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GESAsset.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody><tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="GESAsset.html#GESAsset-struct" title="GESAsset">GESAsset</a></td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GESAsset.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen"> <a href="../gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
<span class="lineart">╰──</span> GESAsset
<span class="lineart">├──</span> <a class="link" href="GESProject.html" title="GESProject">GESProject</a>
<span class="lineart">├──</span> <a class="link" href="GESClipAsset.html" title="GESClipAsset">GESClipAsset</a>
<span class="lineart">╰──</span> <a class="link" href="GESTrackElementAsset.html" title="GESTrackElementAsset">GESTrackElementAsset</a>
</pre>
</div>
<div class="refsect1">
<a name="GESAsset.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GESAsset implements
<a href="../gio/GAsyncInitable.html#GAsyncInitable-struct">GAsyncInitable</a>, <a href="../gio/GInitable.html#GInitable-struct">GInitable</a> and <a class="link" href="GESMetaContainer.html" title="GESMetaContainer">GESMetaContainer</a>.</p>
</div>
<div class="refsect1">
<a name="GESAsset.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include <ges/ges.h>
</pre>
</div>
<div class="refsect1">
<a name="GESAsset.description"></a><h2>Description</h2>
<p>The Assets in the GStreamer Editing Services represent the resources
that can be used. You can create assets for any type that implements the <a class="link" href="ges-GESExtractableInterface.html#GESExtractable"><span class="type">GESExtractable</span></a>
interface, for example <a href="GESClip.html#GESClip-struct"><span class="type">GESClips</span></a>, <a class="link" href="GESFormatter.html" title="GESFormatter"><span class="type">GESFormatter</span></a>, and <a class="link" href="GESTrackElement.html" title="GESTrackElement"><span class="type">GESTrackElement</span></a> do implement it.
This means that assets will represent for example a <a href="GESUriClip.html#GESUriClip-struct"><span class="type">GESUriClips</span></a>, <a class="link" href="GESBaseEffect.html" title="GESBaseEffect"><span class="type">GESBaseEffect</span></a> etc,
and then you can extract objects of those types with the appropriate parameters from the asset
using the <a class="link" href="GESAsset.html#ges-asset-extract" title="ges_asset_extract ()"><span class="type">ges_asset_extract</span></a> method:</p>
<div class="informalexample">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1
2
3
4
5
6
7
8</pre></td>
<td class="listing_code"><pre class="programlisting">GESAsset <span class="gtkdoc opt">*</span>effect_asset<span class="gtkdoc opt">;</span>
GESEffect <span class="gtkdoc opt">*</span>effect<span class="gtkdoc opt">;</span>
<span class="gtkdoc slc">// You create an asset for an effect</span>
effect_asset <span class="gtkdoc opt">=</span> <span class="function"><a href="GESAsset.html#ges-asset-request">ges_asset_request</a></span> <span class="gtkdoc opt">(</span>GES_TYPE_EFFECT<span class="gtkdoc opt">,</span> <span class="string">"agingtv"</span><span class="gtkdoc opt">,</span> NULL<span class="gtkdoc opt">);</span>
<span class="gtkdoc slc">// And now you can extract an instance of GESEffect from that asset</span>
effect <span class="gtkdoc opt">=</span> <span class="function">GES_EFFECT</span> <span class="gtkdoc opt">(</span><span class="function"><a href="GESAsset.html#ges-asset-extract">ges_asset_extract</a></span> <span class="gtkdoc opt">(</span>effect_asset<span class="gtkdoc opt">));</span></pre></td>
</tr>
</tbody>
</table>
</div>
<p></p>
<p>In that example, the advantages of having a <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> are that you can know what effects
you are working with and let your user know about the avalaible ones, you can add metadata
to the <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> through the <a class="link" href="GESMetaContainer.html" title="GESMetaContainer"><span class="type">GESMetaContainer</span></a> interface and you have a model for your
custom effects. Note that <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> management is making easier thanks to the <a class="link" href="GESProject.html" title="GESProject"><span class="type">GESProject</span></a> class.</p>
<p>Each asset is represented by a pair of <em class="parameter"><code>extractable_type</code></em>
and <em class="parameter"><code>id</code></em>
(string). Actually the <em class="parameter"><code>extractable_type</code></em>
is the type that implements the <a class="link" href="ges-GESExtractableInterface.html#GESExtractable"><span class="type">GESExtractable</span></a> interface, that means that for example for a <a class="link" href="GESUriClip.html" title="GESUriClip"><span class="type">GESUriClip</span></a>,
the type that implements the <a class="link" href="ges-GESExtractableInterface.html#GESExtractable"><span class="type">GESExtractable</span></a> interface is <a class="link" href="GESClip.html" title="GESClip"><span class="type">GESClip</span></a>.
The identifier represents different things depending on the <em class="parameter"><code>extractable_type</code></em>
and you should check
the documentation of each type to know what the ID of <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> actually represents for that type. By default,
we only have one <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> per type, and the <em class="parameter"><code>id</code></em>
is the name of the type, but this behaviour is overriden
to be more useful. For example, for GESTransitionClips, the ID is the vtype of the transition
you will extract from it (ie crossfade, box-wipe-rc etc..) For <a class="link" href="GESEffect.html" title="GESEffect"><span class="type">GESEffect</span></a> the ID is the
<em class="parameter"><code>bin</code></em>
-description property of the extracted objects (ie the gst-launch style description of the bin that
will be used).</p>
<p>Each and every <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> is cached into GES, and you can query those with the <a class="link" href="GESAsset.html#ges-list-assets" title="ges_list_assets ()"><span class="type">ges_list_assets</span></a> function.
Also the system will automatically register <a href="GESAsset.html#GESAsset-struct"><span class="type">GESAssets</span></a> for <a href="GESFormatter.html#GESFormatter-struct"><span class="type">GESFormatters</span></a> and <a href="GESTransitionClip.html#GESTransitionClip-struct"><span class="type">GESTransitionClips</span></a>
and standard effects (actually not implemented yet) and you can simply query those calling:</p>
<div class="informalexample">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13</pre></td>
<td class="listing_code"><pre class="programlisting">GList <span class="gtkdoc opt">*</span>formatter_assets<span class="gtkdoc opt">, *</span>tmp<span class="gtkdoc opt">;</span>
<span class="gtkdoc slc">// List all the transitions</span>
formatter_assets <span class="gtkdoc opt">=</span> <span class="function"><a href="GESAsset.html#ges-list-assets">ges_list_assets</a></span> <span class="gtkdoc opt">(</span>GES_TYPE_FORMATTER<span class="gtkdoc opt">);</span>
<span class="gtkdoc slc">// Print some infos about the formatter GESAsset</span>
<span class="keyword">for</span> <span class="gtkdoc opt">(</span>tmp <span class="gtkdoc opt">=</span> formatter_assets<span class="gtkdoc opt">;</span> tmp<span class="gtkdoc opt">;</span> tmp <span class="gtkdoc opt">=</span> tmp<span class="gtkdoc opt">-></span>next<span class="gtkdoc opt">) {</span>
<span class="function"><a href="../glib/glib-Warnings-and-Assertions.html#g-print">g_print</a></span> <span class="gtkdoc opt">(</span><span class="string">"Name of the formatter: %s, file extension it produces: %s"</span><span class="gtkdoc opt">,</span>
<span class="function">ges_meta_container_get_string</span> <span class="gtkdoc opt">(</span><span class="function">GES_META_CONTAINER</span> <span class="gtkdoc opt">(</span>tmp<span class="gtkdoc opt">-></span>data<span class="gtkdoc opt">),</span> GES_META_FORMATTER_NAME<span class="gtkdoc opt">),</span>
<span class="function">ges_meta_container_get_string</span> <span class="gtkdoc opt">(</span><span class="function">GES_META_CONTAINER</span> <span class="gtkdoc opt">(</span>tmp<span class="gtkdoc opt">-></span>data<span class="gtkdoc opt">),</span> GES_META_FORMATTER_EXTENSION<span class="gtkdoc opt">));</span>
<span class="gtkdoc opt">}</span>
<span class="function"><a href="../glib/glib-Doubly-Linked-Lists.html#g-list-free">g_list_free</a></span> <span class="gtkdoc opt">(</span>transition_assets<span class="gtkdoc opt">);</span></pre></td>
</tr>
</tbody>
</table>
</div>
<p></p>
<p>You can request the creation of <a href="GESAsset.html#GESAsset-struct"><span class="type">GESAssets</span></a> using either <a class="link" href="GESAsset.html#ges-asset-request-async" title="ges_asset_request_async ()"><span class="type">ges_asset_request_async</span></a> or
<a class="link" href="GESAsset.html#ges-asset-request-async" title="ges_asset_request_async ()"><span class="type">ges_asset_request_async</span></a>. All the <a href="GESAsset.html#GESAsset-struct"><span class="type">GESAssets</span></a> are cached and thus any asset that has already
been created can be requested again without overhead.</p>
</div>
<div class="refsect1">
<a name="GESAsset.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="ges-asset-get-extractable-type"></a><h3>ges_asset_get_extractable_type ()</h3>
<pre class="programlisting"><a href="../gobject/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a>
ges_asset_get_extractable_type (<em class="parameter"><code><a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> *self</code></em>);</pre>
<p>Gets the type of object that can be extracted from <em class="parameter"><code>self</code></em>
</p>
<div class="refsect3">
<a name="ges-asset-get-extractable-type.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>The <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ges-asset-get-extractable-type.returns"></a><h4>Returns</h4>
<p> the type of object that can be extracted from <em class="parameter"><code>self</code></em>
</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ges-asset-get-id"></a><h3>ges_asset_get_id ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
ges_asset_get_id (<em class="parameter"><code><a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> *self</code></em>);</pre>
<p>Gets the ID of a <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a></p>
<div class="refsect3">
<a name="ges-asset-get-id.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>The <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> to get ID from</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ges-asset-get-id.returns"></a><h4>Returns</h4>
<p> The ID of <em class="parameter"><code>self</code></em>
</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ges-asset-request"></a><h3>ges_asset_request ()</h3>
<pre class="programlisting"><a class="link" href="GESAsset.html" title="GESAsset"><span class="returnvalue">GESAsset</span></a> *
ges_asset_request (<em class="parameter"><code><a href="../gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> extractable_type</code></em>,
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>,
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Create a <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> in the most simple cases, you should look at the <em class="parameter"><code>extractable_type</code></em>
documentation to see if that constructor can be called for this particular type</p>
<p>As it is recommanded not to instanciate assets for GESUriClip synchronously,
it will not work with this method, but you can instead use the specific
<a class="link" href="GESUriClipAsset.html#ges-uri-clip-asset-request-sync" title="ges_uri_clip_asset_request_sync ()"><span class="type">ges_uri_clip_asset_request_sync</span></a> method if you really want to.</p>
<div class="refsect3">
<a name="ges-asset-request.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>extractable_type</p></td>
<td class="parameter_description"><p>The <a href="../gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of the object that can be extracted from the new asset.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>id</p></td>
<td class="parameter_description"><p>The Identifier or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><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 class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>An error to be set in case something wrong happens or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ges-asset-request.returns"></a><h4>Returns</h4>
<p>A reference to the wanted <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ges-asset-request-async"></a><h3>ges_asset_request_async ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
ges_asset_request_async (<em class="parameter"><code><a href="../gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> extractable_type</code></em>,
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>,
<em class="parameter"><code><a href="../gio/GCancellable.html#GCancellable-struct"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="../gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>Request a new <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> asyncronously, <em class="parameter"><code>callback</code></em>
will be called when the materail is
ready to be used or if an error occured.</p>
<p>Example of request of a GESAsset async:</p>
<div class="informalexample">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="gtkdoc slc">// The request callback</span>
<span class="gtkdoc kwb">static void</span>
<span class="function">asset_loaded_cb</span> <span class="gtkdoc opt">(</span>GESAsset <span class="gtkdoc opt">*</span> source<span class="gtkdoc opt">,</span> GAsyncResult <span class="gtkdoc opt">*</span> res<span class="gtkdoc opt">,</span> gpointer user_data<span class="gtkdoc opt">)</span>
<span class="gtkdoc opt">{</span>
GESAsset <span class="gtkdoc opt">*</span>asset<span class="gtkdoc opt">;</span>
GError <span class="gtkdoc opt">*</span>error <span class="gtkdoc opt">=</span> NULL<span class="gtkdoc opt">;</span>
asset <span class="gtkdoc opt">=</span> <span class="function"><a href="GESAsset.html#ges-asset-request-finish">ges_asset_request_finish</a></span> <span class="gtkdoc opt">(</span>res<span class="gtkdoc opt">, &</span>error<span class="gtkdoc opt">);</span>
<span class="keyword">if</span> <span class="gtkdoc opt">(</span>asset<span class="gtkdoc opt">) {</span>
<span class="function"><a href="../glib/glib-Warnings-and-Assertions.html#g-print">g_print</a></span> <span class="gtkdoc opt">(</span><span class="string">"The file: %s is usable as a FileSource"</span><span class="gtkdoc opt">,</span>
<span class="function"><a href="GESAsset.html#ges-asset-get-id">ges_asset_get_id</a></span> <span class="gtkdoc opt">(</span>asset<span class="gtkdoc opt">));</span>
<span class="gtkdoc opt">}</span> <span class="keyword">else</span> <span class="gtkdoc opt">{</span>
<span class="function"><a href="../glib/glib-Warnings-and-Assertions.html#g-print">g_print</a></span> <span class="gtkdoc opt">(</span><span class="string">"The file: %s is *not* usable as a FileSource because: %s"</span><span class="gtkdoc opt">,</span>
<span class="function"><a href="GESAsset.html#ges-asset-get-id">ges_asset_get_id</a></span> <span class="gtkdoc opt">(</span>source<span class="gtkdoc opt">),</span> error<span class="gtkdoc opt">-></span>message<span class="gtkdoc opt">);</span>
<span class="gtkdoc opt">}</span>
<span class="function"><a href="../gstreamer-1.0/GstObject.html#gst-object-unref">gst_object_unref</a></span> <span class="gtkdoc opt">(</span>mfs<span class="gtkdoc opt">);</span>
<span class="gtkdoc opt">}</span>
<span class="gtkdoc slc">// The request:</span>
<span class="function"><a href="GESAsset.html#ges-asset-request-async">ges_asset_request_async</a></span> <span class="gtkdoc opt">(</span>GES_TYPE_URI_CLIP<span class="gtkdoc opt">,</span> some_uri<span class="gtkdoc opt">,</span> NULL<span class="gtkdoc opt">,</span>
<span class="gtkdoc opt">(</span>GAsyncReadyCallback<span class="gtkdoc opt">)</span> asset_loaded_cb<span class="gtkdoc opt">,</span> user_data<span class="gtkdoc opt">);</span></pre></td>
</tr>
</tbody>
</table>
</div>
<p></p>
<div class="refsect3">
<a name="ges-asset-request-async.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>extractable_type</p></td>
<td class="parameter_description"><p>The <a href="../gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of the object that can be extracted from the
new asset. The class must implement the <a class="link" href="ges-GESExtractableInterface.html#GESExtractable"><span class="type">GESExtractable</span></a> interface.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>id</p></td>
<td class="parameter_description"><p>The Identifier of the asset we want to create. This identifier depends of the extractable,
type you want. By default it is the name of the class itself (or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>), but for example for a
GESEffect, it will be the pipeline description, for a GESUriClip it
will be the name of the file, etc... You should refer to the documentation of the <a class="link" href="ges-GESExtractableInterface.html#GESExtractable"><span class="type">GESExtractable</span></a>
type you want to create a <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> for.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cancellable</p></td>
<td class="parameter_description"><p>optional <a href="../gio/GCancellable.html#GCancellable-struct"><code class="literal">GCancellable</code></a> object, <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
<td class="parameter_annotations"><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 class="parameter_name"><p>callback</p></td>
<td class="parameter_description"><p>a <a href="../gio/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the initialization is finished,
Note that the <em class="parameter"><code>source</code></em>
of the callback will be the <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a>, but you need to
make sure that the asset is properly loaded using the <a class="link" href="GESAsset.html#ges-asset-request-finish" title="ges_asset_request_finish ()"><span class="type">ges_asset_request_finish</span></a>
method. This asset can not be used as is.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>The user data to pass when <em class="parameter"><code>callback</code></em>
is called</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ges-asset-request-finish"></a><h3>ges_asset_request_finish ()</h3>
<pre class="programlisting"><a class="link" href="GESAsset.html" title="GESAsset"><span class="returnvalue">GESAsset</span></a> *
ges_asset_request_finish (<em class="parameter"><code><a href="../gio/GAsyncResult.html#GAsyncResult-struct"><span class="type">GAsyncResult</span></a> *res</code></em>,
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Finalize the request of an async <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a></p>
<div class="refsect3">
<a name="ges-asset-request-finish.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>res</p></td>
<td class="parameter_description"><p>The <a href="../gio/GAsyncResult.html#GAsyncResult-struct"><span class="type">GAsyncResult</span></a> from which to get the newly created <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>An error to be set in case
something wrong happens or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ges-asset-request-finish.returns"></a><h4>Returns</h4>
<p>The <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> previously requested. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ges-asset-extract"></a><h3>ges_asset_extract ()</h3>
<pre class="programlisting"><a class="link" href="ges-GESExtractableInterface.html#GESExtractable"><span class="returnvalue">GESExtractable</span></a> *
ges_asset_extract (<em class="parameter"><code><a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> *self</code></em>,
<em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Extracts a new <a href="../gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> from <em class="parameter"><code>asset</code></em>
. The type of the object is
defined by the extractable-type of <em class="parameter"><code>asset</code></em>
, you can check what
type will be extracted from <em class="parameter"><code>asset</code></em>
using
<a class="link" href="GESAsset.html#ges-asset-get-extractable-type" title="ges_asset_get_extractable_type ()"><span class="type">ges_asset_get_extractable_type</span></a></p>
<div class="refsect3">
<a name="ges-asset-extract.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>The <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> to get extract an object from</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>An error to be set in case something wrong happens or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ges-asset-extract.returns"></a><h4>Returns</h4>
<p>A newly created <a class="link" href="ges-GESExtractableInterface.html#GESExtractable"><span class="type">GESExtractable</span></a>. </p>
<p><span class="annotation">[<acronym title="Alias for transfer none, used for objects with floating refs."><span class="acronym">transfer floating</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ges-asset-get-error"></a><h3>ges_asset_get_error ()</h3>
<pre class="programlisting"><a href="../glib/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> *
ges_asset_get_error (<em class="parameter"><code><a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> *self</code></em>);</pre>
<div class="refsect3">
<a name="ges-asset-get-error.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>self</p></td>
<td class="parameter_description"><p>The asset to retrieve the error from</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ges-asset-get-error.returns"></a><h4>Returns</h4>
<p>The <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> of the asset or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
the asset was loaded without issue. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
</div>
<p class="since">Since: 1.8</p>
</div>
<hr>
<div class="refsect2">
<a name="ges-list-assets"></a><h3>ges_list_assets ()</h3>
<pre class="programlisting"><a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
ges_list_assets (<em class="parameter"><code><a href="../gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> filter</code></em>);</pre>
<p>List all <em class="parameter"><code>asset</code></em>
filtering per filter as defined by <em class="parameter"><code>filter</code></em>
.
It copies the asset and thus will not be updated in time.</p>
<div class="refsect3">
<a name="ges-list-assets.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>filter</p></td>
<td class="parameter_description"><p>Type of assets to list, <span class="type">GES_TYPE_EXTRACTABLE</span> will list
all assets</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ges-list-assets.returns"></a><h4>Returns</h4>
<p>The list of
<a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> the object contains. </p>
<p><span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GESAsset]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ges-asset-set-proxy"></a><h3>ges_asset_set_proxy ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
ges_asset_set_proxy (<em class="parameter"><code><a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> *asset</code></em>,
<em class="parameter"><code><a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> *proxy</code></em>);</pre>
<p>A proxying asset is an asset that can substitue the real <em class="parameter"><code>asset</code></em>
. For example if you
have a full HD <a class="link" href="GESUriClipAsset.html" title="GESUriClipAsset"><span class="type">GESUriClipAsset</span></a> you might want to set a lower resolution (HD version
of the same file) as proxy. Note that when an asset is proxied, calling
<a class="link" href="GESAsset.html#ges-asset-request" title="ges_asset_request ()"><span class="type">ges_asset_request</span></a> will actually return the proxy asset.</p>
<div class="refsect3">
<a name="ges-asset-set-proxy.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>asset</p></td>
<td class="parameter_description"><p>The <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> to set proxy on</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>proxy</p></td>
<td class="parameter_description"><p>The <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> that should be used as default proxy for <em class="parameter"><code>asset</code></em>
or
<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if you want to use the currently set proxy. Note that an asset can proxy one and only
one other asset. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ges-asset-set-proxy.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>proxy</code></em>
has been set on <em class="parameter"><code>asset</code></em>
, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ges-asset-list-proxies"></a><h3>ges_asset_list_proxies ()</h3>
<pre class="programlisting"><a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
ges_asset_list_proxies (<em class="parameter"><code><a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> *asset</code></em>);</pre>
<div class="refsect3">
<a name="ges-asset-list-proxies.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>asset</p></td>
<td class="parameter_description"><p>The <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> to get proxies from</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ges-asset-list-proxies.returns"></a><h4>Returns</h4>
<p>The list of proxies <em class="parameter"><code>asset</code></em>
has. Note that the default asset to be
used is always the first in that list. </p>
<p><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GESAsset][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ges-asset-get-proxy-target"></a><h3>ges_asset_get_proxy_target ()</h3>
<pre class="programlisting"><a class="link" href="GESAsset.html" title="GESAsset"><span class="returnvalue">GESAsset</span></a> *
ges_asset_get_proxy_target (<em class="parameter"><code><a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> *proxy</code></em>);</pre>
<div class="refsect3">
<a name="ges-asset-get-proxy-target.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>proxy</p></td>
<td class="parameter_description"><p>The <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> from which to get the the asset it proxies.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ges-asset-get-proxy-target.returns"></a><h4>Returns</h4>
<p>The <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> that is proxied by <em class="parameter"><code>proxy</code></em>
. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ges-asset-get-proxy"></a><h3>ges_asset_get_proxy ()</h3>
<pre class="programlisting"><a class="link" href="GESAsset.html" title="GESAsset"><span class="returnvalue">GESAsset</span></a> *
ges_asset_get_proxy (<em class="parameter"><code><a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> *asset</code></em>);</pre>
<div class="refsect3">
<a name="ges-asset-get-proxy.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>asset</p></td>
<td class="parameter_description"><p>The <a class="link" href="GESAsset.html" title="GESAsset"><span class="type">GESAsset</span></a> to get currenlty used proxy</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ges-asset-get-proxy.returns"></a><h4>Returns</h4>
<p>The proxy in use for <em class="parameter"><code>asset</code></em>
. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="ges-asset-needs-reload"></a><h3>ges_asset_needs_reload ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
ges_asset_needs_reload (<em class="parameter"><code><a href="../gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> extractable_type</code></em>,
<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *id</code></em>);</pre>
<p>Sets an asset from the internal cache as needing reload. An asset needs reload
in the case where, for example, we were missing a GstPlugin to use it and that
plugin has been installed, or, that particular asset content as changed
meanwhile (in the case of the usage of proxies).</p>
<p>Once an asset has been set as "needs reload", requesting that asset again
will lead to it being re discovered, and reloaded as if it was not in the
cache before.</p>
<div class="refsect3">
<a name="ges-asset-needs-reload.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>extractable_type</p></td>
<td class="parameter_description"><p>The <a href="../gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of the object that can be extracted from the
asset to be reloaded.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>id</p></td>
<td class="parameter_description"><p>The identifier of the asset to mark as needing reload</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="ges-asset-needs-reload.returns"></a><h4>Returns</h4>
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the asset was in the cache and could be set as needing reload,
<a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
</div>
</div>
</div>
<div class="refsect1">
<a name="GESAsset.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GESAsset-struct"></a><h3>GESAsset</h3>
<pre class="programlisting">typedef struct _GESAsset GESAsset;</pre>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.27</div>
</body>
</html>
|