GstPbutils-1.0.gir 190 KB
Newer Older
Sebastian Dröge's avatar
Sebastian Dröge committed
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
<?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations.  -->
<repository version="1.2"
            xmlns="http://www.gtk.org/introspection/core/1.0"
            xmlns:c="http://www.gtk.org/introspection/c/1.0"
            xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
  <include name="Gst" version="1.0"/>
  <include name="GstAudio" version="1.0"/>
  <include name="GstTag" version="1.0"/>
  <include name="GstVideo" version="1.0"/>
  <package name="gstreamer-pbutils-1.0"/>
  <c:include name="gst/pbutils/pbutils.h"/>
  <namespace name="GstPbutils"
             version="1.0"
             shared-library="libgstpbutils-1.0.so.0"
             c:identifier-prefixes="Gst"
             c:symbol-prefixes="gst">
    <alias name="DiscovererAudioInfoClass"
           c:type="GstDiscovererAudioInfoClass">
      <type name="GObject.ObjectClass" c:type="GObjectClass"/>
    </alias>
    <alias name="DiscovererContainerInfoClass"
           c:type="GstDiscovererContainerInfoClass">
      <type name="GObject.ObjectClass" c:type="GObjectClass"/>
    </alias>
    <alias name="DiscovererInfoClass" c:type="GstDiscovererInfoClass">
      <type name="GObject.ObjectClass" c:type="GObjectClass"/>
    </alias>
    <alias name="DiscovererStreamInfoClass"
           c:type="GstDiscovererStreamInfoClass">
      <type name="GObject.ObjectClass" c:type="GObjectClass"/>
    </alias>
    <alias name="DiscovererSubtitleInfoClass"
           c:type="GstDiscovererSubtitleInfoClass">
      <type name="GObject.ObjectClass" c:type="GObjectClass"/>
    </alias>
    <alias name="DiscovererVideoInfoClass"
           c:type="GstDiscovererVideoInfoClass">
      <type name="GObject.ObjectClass" c:type="GObjectClass"/>
    </alias>
    <alias name="EncodingTargetClass" c:type="GstEncodingTargetClass">
      <type name="GObject.ObjectClass" c:type="GObjectClass"/>
    </alias>
    <class name="AudioVisualizer"
           c:symbol-prefix="audio_visualizer"
           c:type="GstAudioVisualizer"
           parent="Gst.Element"
           abstract="1"
           glib:type-name="GstAudioVisualizer"
           glib:get-type="gst_audio_visualizer_get_type"
           glib:type-struct="AudioVisualizerClass">
      <doc xml:space="preserve">A baseclass for scopes (visualizers). It takes care of re-fitting the
audio-rate to video-rate and handles renegotiation (downstream video size
changes).

It also provides several background shading effects. These effects are
applied to a previous picture before the render() implementation can draw a
new frame.</doc>
      <virtual-method name="decide_allocation">
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="scope" transfer-ownership="none">
            <type name="AudioVisualizer" c:type="GstAudioVisualizer*"/>
          </instance-parameter>
          <parameter name="query" transfer-ownership="none">
            <type name="Gst.Query" c:type="GstQuery*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="render">
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="scope" transfer-ownership="none">
            <type name="AudioVisualizer" c:type="GstAudioVisualizer*"/>
          </instance-parameter>
          <parameter name="audio" transfer-ownership="none">
            <type name="Gst.Buffer" c:type="GstBuffer*"/>
          </parameter>
          <parameter name="video" transfer-ownership="none">
            <type name="GstVideo.VideoFrame" c:type="GstVideoFrame*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="setup">
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="scope" transfer-ownership="none">
            <type name="AudioVisualizer" c:type="GstAudioVisualizer*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <property name="shade-amount" writable="1" transfer-ownership="none">
        <type name="guint" c:type="guint"/>
      </property>
      <property name="shader" writable="1" transfer-ownership="none">
        <type name="AudioVisualizerShader"/>
      </property>
      <field name="parent">
        <type name="Gst.Element" c:type="GstElement"/>
      </field>
      <field name="req_spf">
        <type name="guint" c:type="guint"/>
      </field>
      <field name="vinfo">
        <type name="GstVideo.VideoInfo" c:type="GstVideoInfo"/>
      </field>
      <field name="ainfo">
        <type name="GstAudio.AudioInfo" c:type="GstAudioInfo"/>
      </field>
      <field name="priv" readable="0" private="1">
        <type name="AudioVisualizerPrivate"
              c:type="GstAudioVisualizerPrivate*"/>
      </field>
    </class>
    <record name="AudioVisualizerClass"
            c:type="GstAudioVisualizerClass"
            glib:is-gtype-struct-for="AudioVisualizer">
      <field name="parent_class">
        <type name="Gst.ElementClass" c:type="GstElementClass"/>
      </field>
      <field name="setup">
        <callback name="setup">
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="scope" transfer-ownership="none">
              <type name="AudioVisualizer" c:type="GstAudioVisualizer*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="render">
        <callback name="render">
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="scope" transfer-ownership="none">
              <type name="AudioVisualizer" c:type="GstAudioVisualizer*"/>
            </parameter>
            <parameter name="audio" transfer-ownership="none">
              <type name="Gst.Buffer" c:type="GstBuffer*"/>
            </parameter>
            <parameter name="video" transfer-ownership="none">
              <type name="GstVideo.VideoFrame" c:type="GstVideoFrame*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="decide_allocation">
        <callback name="decide_allocation">
          <return-value transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="scope" transfer-ownership="none">
              <type name="AudioVisualizer" c:type="GstAudioVisualizer*"/>
            </parameter>
            <parameter name="query" transfer-ownership="none">
              <type name="Gst.Query" c:type="GstQuery*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
    </record>
    <record name="AudioVisualizerPrivate"
            c:type="GstAudioVisualizerPrivate"
            disguised="1">
    </record>
    <enumeration name="AudioVisualizerShader"
                 glib:type-name="GstAudioVisualizerShader"
                 glib:get-type="gst_audio_visualizer_shader_get_type"
                 c:type="GstAudioVisualizerShader">
      <doc xml:space="preserve">Different types of supported background shading functions.</doc>
      <member name="none"
              value="0"
              c:identifier="GST_AUDIO_VISUALIZER_SHADER_NONE"
              glib:nick="none">
        <doc xml:space="preserve">no shading</doc>
      </member>
      <member name="fade"
              value="1"
              c:identifier="GST_AUDIO_VISUALIZER_SHADER_FADE"
              glib:nick="fade">
        <doc xml:space="preserve">plain fading</doc>
      </member>
      <member name="fade_and_move_up"
              value="2"
              c:identifier="GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_UP"
              glib:nick="fade-and-move-up">
        <doc xml:space="preserve">fade and move up</doc>
      </member>
      <member name="fade_and_move_down"
              value="3"
              c:identifier="GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_DOWN"
              glib:nick="fade-and-move-down">
        <doc xml:space="preserve">fade and move down</doc>
      </member>
      <member name="fade_and_move_left"
              value="4"
              c:identifier="GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_LEFT"
              glib:nick="fade-and-move-left">
        <doc xml:space="preserve">fade and move left</doc>
      </member>
      <member name="fade_and_move_right"
              value="5"
              c:identifier="GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_RIGHT"
              glib:nick="fade-and-move-right">
        <doc xml:space="preserve">fade and move right</doc>
      </member>
      <member name="fade_and_move_horiz_out"
              value="6"
              c:identifier="GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_HORIZ_OUT"
              glib:nick="fade-and-move-horiz-out">
        <doc xml:space="preserve">fade and move horizontally out</doc>
      </member>
      <member name="fade_and_move_horiz_in"
              value="7"
              c:identifier="GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_HORIZ_IN"
              glib:nick="fade-and-move-horiz-in">
        <doc xml:space="preserve">fade and move horizontally in</doc>
      </member>
      <member name="fade_and_move_vert_out"
              value="8"
              c:identifier="GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_VERT_OUT"
              glib:nick="fade-and-move-vert-out">
        <doc xml:space="preserve">fade and move vertically out</doc>
      </member>
      <member name="fade_and_move_vert_in"
              value="9"
              c:identifier="GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_VERT_IN"
              glib:nick="fade-and-move-vert-in">
        <doc xml:space="preserve">fade and move vertically in</doc>
      </member>
    </enumeration>
    <callback name="AudioVisualizerShaderFunc"
              c:type="GstAudioVisualizerShaderFunc">
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="scope" transfer-ownership="none">
          <type name="AudioVisualizer" c:type="GstAudioVisualizer*"/>
        </parameter>
        <parameter name="s" transfer-ownership="none">
          <type name="GstVideo.VideoFrame" c:type="const GstVideoFrame*"/>
        </parameter>
        <parameter name="d" transfer-ownership="none">
          <type name="GstVideo.VideoFrame" c:type="GstVideoFrame*"/>
        </parameter>
      </parameters>
    </callback>
    <class name="Discoverer"
           c:symbol-prefix="discoverer"
           c:type="GstDiscoverer"
           parent="GObject.Object"
           glib:type-name="GstDiscoverer"
           glib:get-type="gst_discoverer_get_type"
           glib:type-struct="DiscovererClass">
      <doc xml:space="preserve">The #GstDiscoverer is a utility object which allows to get as much
information as possible from one or many URIs.

It provides two APIs, allowing usage in blocking or non-blocking mode.

The blocking mode just requires calling gst_discoverer_discover_uri()
with the URI one wishes to discover.

The non-blocking mode requires a running #GMainLoop iterating a
#GMainContext, where one connects to the various signals, appends the
URIs to be processed (through gst_discoverer_discover_uri_async()) and then
asks for the discovery to begin (through gst_discoverer_start()).
By default this will use the GLib default main context unless you have
set a custom context using g_main_context_push_thread_default().

All the information is returned in a #GstDiscovererInfo structure.</doc>
      <constructor name="new" c:identifier="gst_discoverer_new" throws="1">
        <doc xml:space="preserve">Creates a new #GstDiscoverer with the provided timeout.</doc>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">The new #GstDiscoverer.
If an error occurred when creating the discoverer, @err will be set
accordingly and %NULL will be returned. If @err is set, the caller must
free it when no longer needed using g_error_free().</doc>
          <type name="Discoverer" c:type="GstDiscoverer*"/>
        </return-value>
        <parameters>
          <parameter name="timeout" transfer-ownership="none">
            <doc xml:space="preserve">timeout per file, in nanoseconds. Allowed are values between
    one second (#GST_SECOND) and one hour (3600 * #GST_SECOND)</doc>
            <type name="Gst.ClockTime" c:type="GstClockTime"/>
          </parameter>
        </parameters>
      </constructor>
      <virtual-method name="discovered">
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="discoverer" transfer-ownership="none">
            <type name="Discoverer" c:type="GstDiscoverer*"/>
          </instance-parameter>
          <parameter name="info" transfer-ownership="none">
            <type name="DiscovererInfo" c:type="GstDiscovererInfo*"/>
          </parameter>
          <parameter name="err" transfer-ownership="none">
            <type name="GLib.Error" c:type="const GError*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="finished">
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="discoverer" transfer-ownership="none">
            <type name="Discoverer" c:type="GstDiscoverer*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="source_setup">
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="discoverer" transfer-ownership="none">
            <type name="Discoverer" c:type="GstDiscoverer*"/>
          </instance-parameter>
          <parameter name="source" transfer-ownership="none">
            <type name="Gst.Element" c:type="GstElement*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="starting">
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="discoverer" transfer-ownership="none">
            <type name="Discoverer" c:type="GstDiscoverer*"/>
          </instance-parameter>
        </parameters>
      </virtual-method>
      <method name="discover_uri"
              c:identifier="gst_discoverer_discover_uri"
              throws="1">
        <doc xml:space="preserve">Synchronously discovers the given @uri.

A copy of @uri will be made internally, so the caller can safely g_free()
afterwards.</doc>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">the result of the scanning. Can be %NULL if an
error occurred.</doc>
          <type name="DiscovererInfo" c:type="GstDiscovererInfo*"/>
        </return-value>
        <parameters>
          <instance-parameter name="discoverer" transfer-ownership="none">
            <doc xml:space="preserve">A #GstDiscoverer</doc>
            <type name="Discoverer" c:type="GstDiscoverer*"/>
          </instance-parameter>
          <parameter name="uri" transfer-ownership="none">
            <doc xml:space="preserve">The URI to run on.</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
        </parameters>
      </method>
      <method name="discover_uri_async"
              c:identifier="gst_discoverer_discover_uri_async">
        <doc xml:space="preserve">Appends the given @uri to the list of URIs to discoverer. The actual
discovery of the @uri will only take place if gst_discoverer_start() has
been called.

A copy of @uri will be made internally, so the caller can safely g_free()
afterwards.</doc>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">%TRUE if the @uri was successfully appended to the list of pending
uris, else %FALSE</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="discoverer" transfer-ownership="none">
            <doc xml:space="preserve">A #GstDiscoverer</doc>
            <type name="Discoverer" c:type="GstDiscoverer*"/>
          </instance-parameter>
          <parameter name="uri" transfer-ownership="none">
            <doc xml:space="preserve">the URI to add.</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
        </parameters>
      </method>
      <method name="start" c:identifier="gst_discoverer_start">
        <doc xml:space="preserve">Allow asynchronous discovering of URIs to take place.
A #GMainLoop must be available for #GstDiscoverer to properly work in
asynchronous mode.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="discoverer" transfer-ownership="none">
            <doc xml:space="preserve">A #GstDiscoverer</doc>
            <type name="Discoverer" c:type="GstDiscoverer*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="stop" c:identifier="gst_discoverer_stop">
        <doc xml:space="preserve">Stop the discovery of any pending URIs and clears the list of
pending URIS (if any).</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="discoverer" transfer-ownership="none">
            <doc xml:space="preserve">A #GstDiscoverer</doc>
            <type name="Discoverer" c:type="GstDiscoverer*"/>
          </instance-parameter>
        </parameters>
      </method>
      <property name="timeout"
                writable="1"
                construct="1"
                transfer-ownership="none">
        <doc xml:space="preserve">The duration (in nanoseconds) after which the discovery of an individual
URI will timeout.

If the discovery of a URI times out, the %GST_DISCOVERER_TIMEOUT will be
set on the result flags.</doc>
        <type name="guint64" c:type="guint64"/>
      </property>
      <field name="parent">
        <type name="GObject.Object" c:type="GObject"/>
      </field>
      <field name="priv" readable="0" private="1">
        <type name="DiscovererPrivate" c:type="GstDiscovererPrivate*"/>
      </field>
      <field name="_reserved" readable="0" private="1">
        <array zero-terminated="0" c:type="gpointer" fixed-size="4">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
      <glib:signal name="discovered" when="last">
        <doc xml:space="preserve">Will be emitted in async mode when all information on a URI could be
discovered, or an error occurred.

When an error occurs, @info might still contain some partial information,
depending on the circumstances of the error.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">the results #GstDiscovererInfo</doc>
            <type name="DiscovererInfo"/>
          </parameter>
461 462 463 464 465 466 467 468 469
          <parameter name="error"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve">#GError, which will be non-NULL
                                        if an error occurred during
                                        discovery. You must not free
                                        this #GError, it will be freed by
                                        the discoverer.</doc>
Sebastian Dröge's avatar
Sebastian Dröge committed
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
            <type name="GLib.Error"/>
          </parameter>
        </parameters>
      </glib:signal>
      <glib:signal name="finished" when="last">
        <doc xml:space="preserve">Will be emitted in async mode when all pending URIs have been processed.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
      </glib:signal>
      <glib:signal name="source-setup" when="last">
        <doc xml:space="preserve">This signal is emitted after the source element has been created for, so
the URI being discovered, so it can be configured by setting additional
properties (e.g. set a proxy server for an http source, or set the device
and read speed for an audio cd source).

This signal is usually emitted from the context of a GStreamer streaming
thread.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="source" transfer-ownership="none">
            <doc xml:space="preserve">source element</doc>
            <type name="Gst.Element"/>
          </parameter>
        </parameters>
      </glib:signal>
      <glib:signal name="starting" when="last">
        <doc xml:space="preserve">Will be emitted when the discover starts analyzing the pending URIs</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
      </glib:signal>
    </class>
    <class name="DiscovererAudioInfo"
           c:symbol-prefix="discoverer_audio_info"
           c:type="GstDiscovererAudioInfo"
           parent="DiscovererStreamInfo"
           glib:type-name="GstDiscovererAudioInfo"
           glib:get-type="gst_discoverer_audio_info_get_type">
      <doc xml:space="preserve">#GstDiscovererStreamInfo specific to audio streams.</doc>
      <method name="get_bitrate"
              c:identifier="gst_discoverer_audio_info_get_bitrate">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the average or nominal bitrate of the stream in bits/second.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererAudioInfo</doc>
            <type name="DiscovererAudioInfo"
                  c:type="const GstDiscovererAudioInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542
      <method name="get_channel_mask"
              c:identifier="gst_discoverer_audio_info_get_channel_mask"
              version="1.14">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the channel-mask of the stream, refer to
gst_audio_channel_positions_from_mask() for more
information.</doc>
          <type name="guint64" c:type="guint64"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererAudioInfo</doc>
            <type name="DiscovererAudioInfo"
                  c:type="const GstDiscovererAudioInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
Sebastian Dröge's avatar
Sebastian Dröge committed
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
      <method name="get_channels"
              c:identifier="gst_discoverer_audio_info_get_channels">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the number of channels in the stream.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererAudioInfo</doc>
            <type name="DiscovererAudioInfo"
                  c:type="const GstDiscovererAudioInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_depth"
              c:identifier="gst_discoverer_audio_info_get_depth">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the number of bits used per sample in each channel.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererAudioInfo</doc>
            <type name="DiscovererAudioInfo"
                  c:type="const GstDiscovererAudioInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_language"
              c:identifier="gst_discoverer_audio_info_get_language">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the language of the stream, or NULL if unknown.</doc>
          <type name="utf8" c:type="const gchar*"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererAudioInfo</doc>
            <type name="DiscovererAudioInfo"
                  c:type="const GstDiscovererAudioInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_max_bitrate"
              c:identifier="gst_discoverer_audio_info_get_max_bitrate">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the maximum bitrate of the stream in bits/second.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererAudioInfo</doc>
            <type name="DiscovererAudioInfo"
                  c:type="const GstDiscovererAudioInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_sample_rate"
              c:identifier="gst_discoverer_audio_info_get_sample_rate">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the sample rate of the stream in Hertz.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererAudioInfo</doc>
            <type name="DiscovererAudioInfo"
                  c:type="const GstDiscovererAudioInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
    </class>
    <record name="DiscovererClass"
            c:type="GstDiscovererClass"
            glib:is-gtype-struct-for="Discoverer">
      <field name="parentclass">
        <type name="GObject.ObjectClass" c:type="GObjectClass"/>
      </field>
      <field name="finished">
        <callback name="finished">
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
          <parameters>
            <parameter name="discoverer" transfer-ownership="none">
              <type name="Discoverer" c:type="GstDiscoverer*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="starting">
        <callback name="starting">
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
          <parameters>
            <parameter name="discoverer" transfer-ownership="none">
              <type name="Discoverer" c:type="GstDiscoverer*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="discovered">
        <callback name="discovered">
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
          <parameters>
            <parameter name="discoverer" transfer-ownership="none">
              <type name="Discoverer" c:type="GstDiscoverer*"/>
            </parameter>
            <parameter name="info" transfer-ownership="none">
              <type name="DiscovererInfo" c:type="GstDiscovererInfo*"/>
            </parameter>
            <parameter name="err" transfer-ownership="none">
              <type name="GLib.Error" c:type="const GError*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="source_setup">
        <callback name="source_setup">
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
          <parameters>
            <parameter name="discoverer" transfer-ownership="none">
              <type name="Discoverer" c:type="GstDiscoverer*"/>
            </parameter>
            <parameter name="source" transfer-ownership="none">
              <type name="Gst.Element" c:type="GstElement*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="_reserved">
        <array zero-terminated="0" c:type="gpointer" fixed-size="4">
          <type name="gpointer" c:type="gpointer"/>
        </array>
      </field>
    </record>
    <class name="DiscovererContainerInfo"
           c:symbol-prefix="discoverer_container_info"
           c:type="GstDiscovererContainerInfo"
           parent="DiscovererStreamInfo"
           glib:type-name="GstDiscovererContainerInfo"
           glib:get-type="gst_discoverer_container_info_get_type">
      <doc xml:space="preserve">#GstDiscovererStreamInfo specific to container streams.</doc>
      <method name="get_streams"
              c:identifier="gst_discoverer_container_info_get_streams">
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">the list of
#GstDiscovererStreamInfo this container stream offers.
Free with gst_discoverer_stream_info_list_free() after usage.</doc>
          <type name="GLib.List" c:type="GList*">
            <type name="DiscovererStreamInfo"/>
          </type>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererStreamInfo</doc>
            <type name="DiscovererContainerInfo"
                  c:type="GstDiscovererContainerInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
    </class>
    <class name="DiscovererInfo"
           c:symbol-prefix="discoverer_info"
           c:type="GstDiscovererInfo"
           parent="GObject.Object"
           glib:type-name="GstDiscovererInfo"
           glib:get-type="gst_discoverer_info_get_type">
      <doc xml:space="preserve">Structure containing the information of a URI analyzed by #GstDiscoverer.</doc>
      <function name="from_variant"
                c:identifier="gst_discoverer_info_from_variant"
                version="1.6">
        <doc xml:space="preserve">Parses a #GVariant as produced by gst_discoverer_info_to_variant()
back to a #GstDiscovererInfo.</doc>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">A newly-allocated #GstDiscovererInfo.</doc>
          <type name="DiscovererInfo" c:type="GstDiscovererInfo*"/>
        </return-value>
        <parameters>
          <parameter name="variant" transfer-ownership="none">
            <doc xml:space="preserve">A #GVariant to deserialize into a #GstDiscovererInfo.</doc>
            <type name="GLib.Variant" c:type="GVariant*"/>
          </parameter>
        </parameters>
      </function>
      <method name="copy" c:identifier="gst_discoverer_info_copy">
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">A copy of the #GstDiscovererInfo</doc>
          <type name="DiscovererInfo" c:type="GstDiscovererInfo*"/>
        </return-value>
        <parameters>
          <instance-parameter name="ptr" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererInfo</doc>
            <type name="DiscovererInfo" c:type="GstDiscovererInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_audio_streams"
              c:identifier="gst_discoverer_info_get_audio_streams">
        <doc xml:space="preserve">Finds all the #GstDiscovererAudioInfo contained in @info</doc>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">A #GList of
matching #GstDiscovererStreamInfo. The caller should free it with
gst_discoverer_stream_info_list_free().</doc>
          <type name="GLib.List" c:type="GList*">
            <type name="DiscovererStreamInfo"/>
          </type>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererInfo</doc>
            <type name="DiscovererInfo" c:type="GstDiscovererInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_container_streams"
              c:identifier="gst_discoverer_info_get_container_streams">
        <doc xml:space="preserve">Finds all the #GstDiscovererContainerInfo contained in @info</doc>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">A #GList of
matching #GstDiscovererStreamInfo. The caller should free it with
gst_discoverer_stream_info_list_free().</doc>
          <type name="GLib.List" c:type="GList*">
            <type name="DiscovererStreamInfo"/>
          </type>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererInfo</doc>
            <type name="DiscovererInfo" c:type="GstDiscovererInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_duration"
              c:identifier="gst_discoverer_info_get_duration">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the duration of the URI in #GstClockTime (nanoseconds).</doc>
          <type name="Gst.ClockTime" c:type="GstClockTime"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererInfo</doc>
            <type name="DiscovererInfo" c:type="const GstDiscovererInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
793 794 795 796 797 798 799 800 801 802 803 804 805 806
      <method name="get_live"
              c:identifier="gst_discoverer_info_get_live"
              version="1.14">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">whether the URI is live.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererInfo</doc>
            <type name="DiscovererInfo" c:type="const GstDiscovererInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
Sebastian Dröge's avatar
Sebastian Dröge committed
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 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435
      <method name="get_misc"
              c:identifier="gst_discoverer_info_get_misc"
              deprecated="1">
        <doc-deprecated xml:space="preserve">This functions is deprecated since version 1.4, use
#gst_discoverer_info_get_missing_elements_installer_details</doc-deprecated>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">Miscellaneous information stored as a #GstStructure
(for example: information about missing plugins). If you wish to use the
#GstStructure after the life-time of @info, you will need to copy it.</doc>
          <type name="Gst.Structure" c:type="const GstStructure*"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererInfo</doc>
            <type name="DiscovererInfo" c:type="const GstDiscovererInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_missing_elements_installer_details"
              c:identifier="gst_discoverer_info_get_missing_elements_installer_details"
              version="1.4">
        <doc xml:space="preserve">Get the installer details for missing elements</doc>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">An array of strings
containing informations about how to install the various missing elements
for @info to be usable. If you wish to use the strings after the life-time
of @info, you will need to copy them.</doc>
          <array c:type="gchar**">
            <type name="utf8"/>
          </array>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererStreamInfo to retrieve installer detail
for the missing element</doc>
            <type name="DiscovererInfo" c:type="const GstDiscovererInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_result" c:identifier="gst_discoverer_info_get_result">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the result of the discovery as a #GstDiscovererResult.</doc>
          <type name="DiscovererResult" c:type="GstDiscovererResult"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererInfo</doc>
            <type name="DiscovererInfo" c:type="const GstDiscovererInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_seekable"
              c:identifier="gst_discoverer_info_get_seekable">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the whether the URI is seekable.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererInfo</doc>
            <type name="DiscovererInfo" c:type="const GstDiscovererInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_stream_info"
              c:identifier="gst_discoverer_info_get_stream_info">
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">the structure (or topology) of the URI as a
#GstDiscovererStreamInfo.
This structure can be traversed to see the original hierarchy. Unref with
gst_discoverer_stream_info_unref() after usage.</doc>
          <type name="DiscovererStreamInfo" c:type="GstDiscovererStreamInfo*"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererInfo</doc>
            <type name="DiscovererInfo" c:type="GstDiscovererInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_stream_list"
              c:identifier="gst_discoverer_info_get_stream_list">
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">the list of
all streams contained in the #info. Free after usage
with gst_discoverer_stream_info_list_free().</doc>
          <type name="GLib.List" c:type="GList*">
            <type name="DiscovererStreamInfo"/>
          </type>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererInfo</doc>
            <type name="DiscovererInfo" c:type="GstDiscovererInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_streams"
              c:identifier="gst_discoverer_info_get_streams">
        <doc xml:space="preserve">Finds the #GstDiscovererStreamInfo contained in @info that match the
given @streamtype.</doc>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">A #GList of
matching #GstDiscovererStreamInfo. The caller should free it with
gst_discoverer_stream_info_list_free().</doc>
          <type name="GLib.List" c:type="GList*">
            <type name="DiscovererStreamInfo"/>
          </type>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererInfo</doc>
            <type name="DiscovererInfo" c:type="GstDiscovererInfo*"/>
          </instance-parameter>
          <parameter name="streamtype" transfer-ownership="none">
            <doc xml:space="preserve">a #GType derived from #GstDiscovererStreamInfo</doc>
            <type name="GType" c:type="GType"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_subtitle_streams"
              c:identifier="gst_discoverer_info_get_subtitle_streams">
        <doc xml:space="preserve">Finds all the #GstDiscovererSubtitleInfo contained in @info</doc>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">A #GList of
matching #GstDiscovererStreamInfo. The caller should free it with
gst_discoverer_stream_info_list_free().</doc>
          <type name="GLib.List" c:type="GList*">
            <type name="DiscovererStreamInfo"/>
          </type>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererInfo</doc>
            <type name="DiscovererInfo" c:type="GstDiscovererInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_tags" c:identifier="gst_discoverer_info_get_tags">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">all tags contained in the URI. If you wish to use
the tags after the life-time of @info, you will need to copy them.</doc>
          <type name="Gst.TagList" c:type="const GstTagList*"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererInfo</doc>
            <type name="DiscovererInfo" c:type="const GstDiscovererInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_toc" c:identifier="gst_discoverer_info_get_toc">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">TOC contained in the URI. If you wish to use
the TOC after the life-time of @info, you will need to copy it.</doc>
          <type name="Gst.Toc" c:type="const GstToc*"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererInfo</doc>
            <type name="DiscovererInfo" c:type="const GstDiscovererInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_uri" c:identifier="gst_discoverer_info_get_uri">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the URI to which this information corresponds to.
Copy it if you wish to use it after the life-time of @info.</doc>
          <type name="utf8" c:type="const gchar*"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererInfo</doc>
            <type name="DiscovererInfo" c:type="const GstDiscovererInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_video_streams"
              c:identifier="gst_discoverer_info_get_video_streams">
        <doc xml:space="preserve">Finds all the #GstDiscovererVideoInfo contained in @info</doc>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">A #GList of
matching #GstDiscovererStreamInfo. The caller should free it with
gst_discoverer_stream_info_list_free().</doc>
          <type name="GLib.List" c:type="GList*">
            <type name="DiscovererStreamInfo"/>
          </type>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererInfo</doc>
            <type name="DiscovererInfo" c:type="GstDiscovererInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="to_variant"
              c:identifier="gst_discoverer_info_to_variant"
              version="1.6">
        <doc xml:space="preserve">Serializes @info to a #GVariant that can be parsed again
through gst_discoverer_info_from_variant().

Note that any #GstToc (s) that might have been discovered will not be serialized
for now.</doc>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">A newly-allocated #GVariant representing @info.</doc>
          <type name="GLib.Variant" c:type="GVariant*"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">A #GstDiscovererInfo</doc>
            <type name="DiscovererInfo" c:type="GstDiscovererInfo*"/>
          </instance-parameter>
          <parameter name="flags" transfer-ownership="none">
            <doc xml:space="preserve">A combination of #GstDiscovererSerializeFlags to specify
what needs to be serialized.</doc>
            <type name="DiscovererSerializeFlags"
                  c:type="GstDiscovererSerializeFlags"/>
          </parameter>
        </parameters>
      </method>
    </class>
    <record name="DiscovererPrivate"
            c:type="GstDiscovererPrivate"
            disguised="1">
    </record>
    <enumeration name="DiscovererResult"
                 glib:type-name="GstDiscovererResult"
                 glib:get-type="gst_discoverer_result_get_type"
                 c:type="GstDiscovererResult">
      <doc xml:space="preserve">Result values for the discovery process.</doc>
      <member name="ok"
              value="0"
              c:identifier="GST_DISCOVERER_OK"
              glib:nick="ok">
        <doc xml:space="preserve">The discovery was successful</doc>
      </member>
      <member name="uri_invalid"
              value="1"
              c:identifier="GST_DISCOVERER_URI_INVALID"
              glib:nick="uri-invalid">
        <doc xml:space="preserve">the URI is invalid</doc>
      </member>
      <member name="error"
              value="2"
              c:identifier="GST_DISCOVERER_ERROR"
              glib:nick="error">
        <doc xml:space="preserve">an error happened and the GError is set</doc>
      </member>
      <member name="timeout"
              value="3"
              c:identifier="GST_DISCOVERER_TIMEOUT"
              glib:nick="timeout">
        <doc xml:space="preserve">the discovery timed-out</doc>
      </member>
      <member name="busy"
              value="4"
              c:identifier="GST_DISCOVERER_BUSY"
              glib:nick="busy">
        <doc xml:space="preserve">the discoverer was already discovering a file</doc>
      </member>
      <member name="missing_plugins"
              value="5"
              c:identifier="GST_DISCOVERER_MISSING_PLUGINS"
              glib:nick="missing-plugins">
        <doc xml:space="preserve">Some plugins are missing for full discovery</doc>
      </member>
    </enumeration>
    <bitfield name="DiscovererSerializeFlags"
              version="1.6"
              glib:type-name="GstDiscovererSerializeFlags"
              glib:get-type="gst_discoverer_serialize_flags_get_type"
              c:type="GstDiscovererSerializeFlags">
      <doc xml:space="preserve">You can use these flags to control what is serialized by
gst_discoverer_info_to_variant()</doc>
      <member name="basic"
              value="0"
              c:identifier="GST_DISCOVERER_SERIALIZE_BASIC"
              glib:nick="basic">
        <doc xml:space="preserve">Serialize only basic information, excluding
caps, tags and miscellaneous information</doc>
      </member>
      <member name="caps"
              value="1"
              c:identifier="GST_DISCOVERER_SERIALIZE_CAPS"
              glib:nick="caps">
        <doc xml:space="preserve">Serialize the caps for each stream</doc>
      </member>
      <member name="tags"
              value="2"
              c:identifier="GST_DISCOVERER_SERIALIZE_TAGS"
              glib:nick="tags">
        <doc xml:space="preserve">Serialize the tags for each stream</doc>
      </member>
      <member name="misc"
              value="4"
              c:identifier="GST_DISCOVERER_SERIALIZE_MISC"
              glib:nick="misc">
        <doc xml:space="preserve">Serialize miscellaneous information for each stream</doc>
      </member>
      <member name="all"
              value="7"
              c:identifier="GST_DISCOVERER_SERIALIZE_ALL"
              glib:nick="all">
        <doc xml:space="preserve">Serialize all the available info, including
caps, tags and miscellaneous information</doc>
      </member>
    </bitfield>
    <class name="DiscovererStreamInfo"
           c:symbol-prefix="discoverer_stream_info"
           c:type="GstDiscovererStreamInfo"
           parent="GObject.Object"
           glib:type-name="GstDiscovererStreamInfo"
           glib:get-type="gst_discoverer_stream_info_get_type">
      <doc xml:space="preserve">Base structure for information concerning a media stream. Depending on the
stream type, one can find more media-specific information in
#GstDiscovererAudioInfo, #GstDiscovererVideoInfo, and
#GstDiscovererContainerInfo.

The #GstDiscovererStreamInfo represents the topology of the stream. Siblings
can be iterated over with gst_discoverer_stream_info_get_next() and
gst_discoverer_stream_info_get_previous(). Children (sub-streams) of a
stream can be accessed using the #GstDiscovererContainerInfo API.

As a simple example, if you run #GstDiscoverer on an AVI file with one audio
and one video stream, you will get a #GstDiscovererContainerInfo
corresponding to the AVI container, which in turn will have a
#GstDiscovererAudioInfo sub-stream and a #GstDiscovererVideoInfo sub-stream
for the audio and video streams respectively.</doc>
      <function name="list_free"
                c:identifier="gst_discoverer_stream_info_list_free">
        <doc xml:space="preserve">Decrements the reference count of all contained #GstDiscovererStreamInfo
and fress the #GList.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="infos" transfer-ownership="none">
            <doc xml:space="preserve">a #GList of #GstDiscovererStreamInfo</doc>
            <type name="GLib.List" c:type="GList*">
              <type name="DiscovererStreamInfo"/>
            </type>
          </parameter>
        </parameters>
      </function>
      <method name="get_caps"
              c:identifier="gst_discoverer_stream_info_get_caps">
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">the #GstCaps of the stream. Unref with
#gst_caps_unref after usage.</doc>
          <type name="Gst.Caps" c:type="GstCaps*"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererStreamInfo</doc>
            <type name="DiscovererStreamInfo"
                  c:type="GstDiscovererStreamInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_misc"
              c:identifier="gst_discoverer_stream_info_get_misc"
              deprecated="1">
        <doc-deprecated xml:space="preserve">This functions is deprecated since version 1.4, use
#gst_discoverer_info_get_missing_elements_installer_details</doc-deprecated>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">additional information regarding the stream (for
example codec version, profile, etc..). If you wish to use the #GstStructure
after the life-time of @info you will need to copy it.</doc>
          <type name="Gst.Structure" c:type="const GstStructure*"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererStreamInfo</doc>
            <type name="DiscovererStreamInfo"
                  c:type="GstDiscovererStreamInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_next"
              c:identifier="gst_discoverer_stream_info_get_next">
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">the next #GstDiscovererStreamInfo in a chain. %NULL
for final streams.
Unref with #gst_discoverer_stream_info_unref after usage.</doc>
          <type name="DiscovererStreamInfo" c:type="GstDiscovererStreamInfo*"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererStreamInfo</doc>
            <type name="DiscovererStreamInfo"
                  c:type="GstDiscovererStreamInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_previous"
              c:identifier="gst_discoverer_stream_info_get_previous">
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">the previous #GstDiscovererStreamInfo in a chain.
%NULL for starting points. Unref with #gst_discoverer_stream_info_unref
after usage.</doc>
          <type name="DiscovererStreamInfo" c:type="GstDiscovererStreamInfo*"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererStreamInfo</doc>
            <type name="DiscovererStreamInfo"
                  c:type="GstDiscovererStreamInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_stream_id"
              c:identifier="gst_discoverer_stream_info_get_stream_id">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the stream ID of this stream. If you wish to
use the stream ID after the life-time of @info you will need to copy it.</doc>
          <type name="utf8" c:type="const gchar*"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererStreamInfo</doc>
            <type name="DiscovererStreamInfo"
                  c:type="GstDiscovererStreamInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_stream_type_nick"
              c:identifier="gst_discoverer_stream_info_get_stream_type_nick">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">a human readable name for the stream type of the given @info (ex : "audio",
"container",...).</doc>
          <type name="utf8" c:type="const gchar*"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererStreamInfo</doc>
            <type name="DiscovererStreamInfo"
                  c:type="GstDiscovererStreamInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_tags"
              c:identifier="gst_discoverer_stream_info_get_tags">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the tags contained in this stream. If you wish to
use the tags after the life-time of @info you will need to copy them.</doc>
          <type name="Gst.TagList" c:type="const GstTagList*"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererStreamInfo</doc>
            <type name="DiscovererStreamInfo"
                  c:type="GstDiscovererStreamInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_toc" c:identifier="gst_discoverer_stream_info_get_toc">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the TOC contained in this stream. If you wish to
use the TOC after the life-time of @info you will need to copy it.</doc>
          <type name="Gst.Toc" c:type="const GstToc*"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererStreamInfo</doc>
            <type name="DiscovererStreamInfo"
                  c:type="GstDiscovererStreamInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
    </class>
    <class name="DiscovererSubtitleInfo"
           c:symbol-prefix="discoverer_subtitle_info"
           c:type="GstDiscovererSubtitleInfo"
           parent="DiscovererStreamInfo"
           glib:type-name="GstDiscovererSubtitleInfo"
           glib:get-type="gst_discoverer_subtitle_info_get_type">
      <doc xml:space="preserve">#GstDiscovererStreamInfo specific to subtitle streams (this includes text and
image based ones).</doc>
      <method name="get_language"
              c:identifier="gst_discoverer_subtitle_info_get_language">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the language of the stream, or NULL if unknown.</doc>
          <type name="utf8" c:type="const gchar*"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererSubtitleInfo</doc>
            <type name="DiscovererSubtitleInfo"
                  c:type="const GstDiscovererSubtitleInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
    </class>
    <class name="DiscovererVideoInfo"
           c:symbol-prefix="discoverer_video_info"
           c:type="GstDiscovererVideoInfo"
           parent="DiscovererStreamInfo"
           glib:type-name="GstDiscovererVideoInfo"
           glib:get-type="gst_discoverer_video_info_get_type">
      <doc xml:space="preserve">#GstDiscovererStreamInfo specific to video streams (this includes images).</doc>
      <method name="get_bitrate"
              c:identifier="gst_discoverer_video_info_get_bitrate">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the average or nominal bitrate of the video stream in bits/second.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererVideoInfo</doc>
            <type name="DiscovererVideoInfo"
                  c:type="const GstDiscovererVideoInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_depth"
              c:identifier="gst_discoverer_video_info_get_depth">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the depth in bits of the video stream.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererVideoInfo</doc>
            <type name="DiscovererVideoInfo"
                  c:type="const GstDiscovererVideoInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_framerate_denom"
              c:identifier="gst_discoverer_video_info_get_framerate_denom">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the framerate of the video stream (denominator).</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererVideoInfo</doc>
            <type name="DiscovererVideoInfo"
                  c:type="const GstDiscovererVideoInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_framerate_num"
              c:identifier="gst_discoverer_video_info_get_framerate_num">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the framerate of the video stream (numerator).</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererVideoInfo</doc>
            <type name="DiscovererVideoInfo"
                  c:type="const GstDiscovererVideoInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_height"
              c:identifier="gst_discoverer_video_info_get_height">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the height of the video stream in pixels.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererVideoInfo</doc>
            <type name="DiscovererVideoInfo"
                  c:type="const GstDiscovererVideoInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_max_bitrate"
              c:identifier="gst_discoverer_video_info_get_max_bitrate">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the maximum bitrate of the video stream in bits/second.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererVideoInfo</doc>
            <type name="DiscovererVideoInfo"
                  c:type="const GstDiscovererVideoInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_par_denom"
              c:identifier="gst_discoverer_video_info_get_par_denom">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the Pixel Aspect Ratio (PAR) of the video stream (denominator).</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererVideoInfo</doc>
            <type name="DiscovererVideoInfo"
                  c:type="const GstDiscovererVideoInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_par_num"
              c:identifier="gst_discoverer_video_info_get_par_num">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the Pixel Aspect Ratio (PAR) of the video stream (numerator).</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererVideoInfo</doc>
            <type name="DiscovererVideoInfo"
                  c:type="const GstDiscovererVideoInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_width"
              c:identifier="gst_discoverer_video_info_get_width">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the width of the video stream in pixels.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererVideoInfo</doc>
            <type name="DiscovererVideoInfo"
                  c:type="const GstDiscovererVideoInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="is_image"
              c:identifier="gst_discoverer_video_info_is_image">
        <return-value transfer-ownership="none">
1436
          <doc xml:space="preserve">%TRUE if the video stream corresponds to an image (i.e. only contains
Sebastian Dröge's avatar
Sebastian Dröge committed
1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531
one frame).</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererVideoInfo</doc>
            <type name="DiscovererVideoInfo"
                  c:type="const GstDiscovererVideoInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="is_interlaced"
              c:identifier="gst_discoverer_video_info_is_interlaced">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">%TRUE if the stream is interlaced, else %FALSE.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">a #GstDiscovererVideoInfo</doc>
            <type name="DiscovererVideoInfo"
                  c:type="const GstDiscovererVideoInfo*"/>
          </instance-parameter>
        </parameters>
      </method>
    </class>
    <constant name="ENCODING_CATEGORY_CAPTURE"
              value="capture"
              c:type="GST_ENCODING_CATEGORY_CAPTURE">
      <doc xml:space="preserve">#GstEncodingTarget category for recording and capture.
Targets within this category are optimized for low latency encoding.</doc>
      <type name="utf8" c:type="gchar*"/>
    </constant>
    <constant name="ENCODING_CATEGORY_DEVICE"
              value="device"
              c:type="GST_ENCODING_CATEGORY_DEVICE">
      <doc xml:space="preserve">#GstEncodingTarget category for device-specific targets.
The name of the target will usually be the constructor and model of the device,
and that target will contain #GstEncodingProfiles suitable for that device.</doc>
      <type name="utf8" c:type="gchar*"/>
    </constant>
    <constant name="ENCODING_CATEGORY_FILE_EXTENSION"
              value="file-extension"
              c:type="GST_ENCODING_CATEGORY_FILE_EXTENSION">
      <doc xml:space="preserve">#GstEncodingTarget category for file extensions.
The name of the target will be the name of the file extensions possible
for a particular target. Those targets are defining like 'default' formats
usually used for a particular file extension.</doc>
      <type name="utf8" c:type="gchar*"/>
    </constant>
    <constant name="ENCODING_CATEGORY_ONLINE_SERVICE"
              value="online-service"
              c:type="GST_ENCODING_CATEGORY_ONLINE_SERVICE">
      <doc xml:space="preserve">#GstEncodingTarget category for online-services.
The name of the target will usually be the name of the online service
and that target will contain #GstEncodingProfiles suitable for that online
service.</doc>
      <type name="utf8" c:type="gchar*"/>
    </constant>
    <constant name="ENCODING_CATEGORY_STORAGE_EDITING"
              value="storage-editing"
              c:type="GST_ENCODING_CATEGORY_STORAGE_EDITING">
      <doc xml:space="preserve">#GstEncodingTarget category for storage, archiving and editing targets.
Those targets can be lossless and/or provide very fast random access content.
The name of the target will usually be the container type or editing target,
and that target will contain #GstEncodingProfiles suitable for editing or
storage.</doc>
      <type name="utf8" c:type="gchar*"/>
    </constant>
    <class name="EncodingAudioProfile"
           c:symbol-prefix="encoding_audio_profile"
           c:type="GstEncodingAudioProfile"
           parent="EncodingProfile"
           glib:type-name="GstEncodingAudioProfile"
           glib:get-type="gst_encoding_audio_profile_get_type"
           glib:type-struct="EncodingAudioProfileClass">
      <doc xml:space="preserve">Variant of #GstEncodingProfile for audio streams.</doc>
      <constructor name="new" c:identifier="gst_encoding_audio_profile_new">
        <doc xml:space="preserve">Creates a new #GstEncodingAudioProfile

All provided allocatable arguments will be internally copied, so can be
safely freed/unreferenced after calling this method.</doc>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">the newly created #GstEncodingAudioProfile.</doc>
          <type name="EncodingAudioProfile" c:type="GstEncodingAudioProfile*"/>
        </return-value>
        <parameters>
          <parameter name="format" transfer-ownership="none">
            <doc xml:space="preserve">the #GstCaps</doc>
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
          <parameter name="preset"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
1532
            <doc xml:space="preserve">the preset(s) to use on the encoder, can be %NULL</doc>
Sebastian Dröge's avatar
Sebastian Dröge committed
1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
          <parameter name="restriction"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve">the #GstCaps used to restrict the input to the encoder, can be
NULL. See gst_encoding_profile_get_restriction() for more details.</doc>
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
          <parameter name="presence" transfer-ownership="none">
            <doc xml:space="preserve">the number of time this stream must be used. 0 means any number of
 times (including never)</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </constructor>
    </class>
    <record name="EncodingAudioProfileClass"
            c:type="GstEncodingAudioProfileClass"
            disguised="1"
            glib:is-gtype-struct-for="EncodingAudioProfile">
    </record>
    <class name="EncodingContainerProfile"
           c:symbol-prefix="encoding_container_profile"
           c:type="GstEncodingContainerProfile"
           parent="EncodingProfile"
           glib:type-name="GstEncodingContainerProfile"
           glib:get-type="gst_encoding_container_profile_get_type"
           glib:type-struct="EncodingContainerProfileClass">
      <doc xml:space="preserve">Encoding profiles for containers. Keeps track of a list of #GstEncodingProfile</doc>
      <constructor name="new"
                   c:identifier="gst_encoding_container_profile_new">
        <doc xml:space="preserve">Creates a new #GstEncodingContainerProfile.</doc>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">The newly created #GstEncodingContainerProfile.</doc>
          <type name="EncodingContainerProfile"
                c:type="GstEncodingContainerProfile*"/>
        </return-value>
        <parameters>
          <parameter name="name"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve">The name of the container profile, can be %NULL</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
          <parameter name="description"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve">The description of the container profile,
    can be %NULL</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
          <parameter name="format" transfer-ownership="none">
            <doc xml:space="preserve">The format to use for this profile</doc>
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
          <parameter name="preset"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve">The preset to use for this profile.</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
        </parameters>
      </constructor>
      <method name="add_profile"
              c:identifier="gst_encoding_container_profile_add_profile">
        <doc xml:space="preserve">Add a #GstEncodingProfile to the list of profiles handled by @container.

No copy of @profile will be made, if you wish to use it elsewhere after this
method you should increment its reference count.</doc>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">%TRUE if the @stream was properly added, else %FALSE.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="container" transfer-ownership="none">
            <doc xml:space="preserve">the #GstEncodingContainerProfile to use</doc>
            <type name="EncodingContainerProfile"
                  c:type="GstEncodingContainerProfile*"/>
          </instance-parameter>
          <parameter name="profile" transfer-ownership="full">
            <doc xml:space="preserve">the #GstEncodingProfile to add.</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </parameter>
        </parameters>
      </method>
      <method name="contains_profile"
              c:identifier="gst_encoding_container_profile_contains_profile">
        <doc xml:space="preserve">Checks if @container contains a #GstEncodingProfile identical to
@profile.</doc>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">%TRUE if @container contains a #GstEncodingProfile identical
to @profile, else %FALSE.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="container" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingContainerProfile</doc>
            <type name="EncodingContainerProfile"
                  c:type="GstEncodingContainerProfile*"/>
          </instance-parameter>
          <parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </parameter>
        </parameters>
      </method>
      <method name="get_profiles"
              c:identifier="gst_encoding_container_profile_get_profiles">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">
the list of contained #GstEncodingProfile.</doc>
          <type name="GLib.List" c:type="const GList*">
            <type name="EncodingProfile"/>
          </type>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingContainerProfile</doc>
            <type name="EncodingContainerProfile"
                  c:type="GstEncodingContainerProfile*"/>
          </instance-parameter>
        </parameters>
      </method>
    </class>
    <record name="EncodingContainerProfileClass"
            c:type="GstEncodingContainerProfileClass"
            disguised="1"
            glib:is-gtype-struct-for="EncodingContainerProfile">
    </record>
    <class name="EncodingProfile"
           c:symbol-prefix="encoding_profile"
           c:type="GstEncodingProfile"
           parent="GObject.Object"
           glib:type-name="GstEncodingProfile"
           glib:get-type="gst_encoding_profile_get_type"
           glib:type-struct="EncodingProfileClass">
      <doc xml:space="preserve">The opaque base class object for all encoding profiles. This contains generic
information like name, description, format and preset.</doc>
      <function name="find" c:identifier="gst_encoding_profile_find">
        <doc xml:space="preserve">Find the #GstEncodingProfile with the specified name and category.</doc>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">The matching #GstEncodingProfile or %NULL.</doc>
          <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
        </return-value>
        <parameters>
          <parameter name="targetname" transfer-ownership="none">
            <doc xml:space="preserve">The name of the target</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
          <parameter name="profilename" transfer-ownership="none">
            <doc xml:space="preserve">(allow-none): The name of the profile, if %NULL
provided, it will default to the encoding profile called `default`.</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
          <parameter name="category"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve">The target category. Can be %NULL</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
        </parameters>
      </function>
      <function name="from_discoverer"
                c:identifier="gst_encoding_profile_from_discoverer">
        <doc xml:space="preserve">Creates a #GstEncodingProfile matching the formats from the given
#GstDiscovererInfo. Streams other than audio or video (eg,
subtitles), are currently ignored.</doc>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">The new #GstEncodingProfile or %NULL.</doc>
          <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
        </return-value>
        <parameters>
          <parameter name="info" transfer-ownership="none">
            <doc xml:space="preserve">The #GstDiscovererInfo to read from</doc>
            <type name="DiscovererInfo" c:type="GstDiscovererInfo*"/>
          </parameter>
        </parameters>
      </function>
      <method name="copy" c:identifier="gst_encoding_profile_copy">
        <doc xml:space="preserve">Makes a deep copy of @self</doc>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">The copy of @self

Since 1.12</doc>
          <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
        </return-value>
        <parameters>
          <instance-parameter name="self" transfer-ownership="none">
            <doc xml:space="preserve">The #GstEncodingProfile to copy</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_allow_dynamic_output"
              c:identifier="gst_encoding_profile_get_allow_dynamic_output">
        <doc xml:space="preserve">Get whether the format that has been negotiated in at some point can be renegotiated
later during the encoding.</doc>
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_description"
              c:identifier="gst_encoding_profile_get_description">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the description of the profile, can be %NULL.</doc>
          <type name="utf8" c:type="const gchar*"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_file_extension"
              c:identifier="gst_encoding_profile_get_file_extension">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">a suitable file extension for @profile, or NULL.</doc>
          <type name="utf8" c:type="const gchar*"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_format" c:identifier="gst_encoding_profile_get_format">
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">the #GstCaps corresponding to the media format used
in the profile. Unref after usage.</doc>
          <type name="Gst.Caps" c:type="GstCaps*"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_input_caps"
              c:identifier="gst_encoding_profile_get_input_caps">
        <doc xml:space="preserve">Computes the full output caps that this @profile will be able to consume.</doc>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">The full caps the given @profile can consume. Call
gst_caps_unref() when you are done with the caps.</doc>
          <type name="Gst.Caps" c:type="GstCaps*"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_name" c:identifier="gst_encoding_profile_get_name">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the name of the profile, can be %NULL.</doc>
          <type name="utf8" c:type="const gchar*"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_presence"
              c:identifier="gst_encoding_profile_get_presence">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">The number of times the profile is used in its parent
container profile. If 0, it is not a mandatory stream.</doc>
          <type name="guint" c:type="guint"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_preset" c:identifier="gst_encoding_profile_get_preset">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the name of the #GstPreset to be used in the profile.
This is the name that has been set when saving the preset.</doc>
          <type name="utf8" c:type="const gchar*"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_preset_name"
              c:identifier="gst_encoding_profile_get_preset_name">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the name of the #GstPreset factory to be used in the profile.</doc>
          <type name="utf8" c:type="const gchar*"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_restriction"
              c:identifier="gst_encoding_profile_get_restriction">
        <return-value transfer-ownership="full">
          <doc xml:space="preserve">The restriction #GstCaps to apply before the encoder
that will be used in the profile. The fields present in restriction caps are
properties of the raw stream (that is before encoding), such as height and
width for video and depth and sampling rate for audio. Does not apply to
#GstEncodingContainerProfile (since there is no corresponding raw stream).
Can be %NULL. Unref after usage.</doc>
          <type name="Gst.Caps" c:type="GstCaps*"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="get_type_nick"
              c:identifier="gst_encoding_profile_get_type_nick">
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">the human-readable name of the type of @profile.</doc>
          <type name="utf8" c:type="const gchar*"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="is_enabled" c:identifier="gst_encoding_profile_is_enabled">
        <return-value transfer-ownership="none">
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="is_equal" c:identifier="gst_encoding_profile_is_equal">
        <doc xml:space="preserve">Checks whether the two #GstEncodingProfile are equal</doc>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve">%TRUE if @a and @b are equal, else %FALSE.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="a" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
          <parameter name="b" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_allow_dynamic_output"
              c:identifier="gst_encoding_profile_set_allow_dynamic_output">
        <doc xml:space="preserve">Sets whether the format that has been negotiated in at some point can be renegotiated
later during the encoding.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
          <parameter name="allow_dynamic_output" transfer-ownership="none">
            <doc xml:space="preserve">Whether the format that has been negotiated first can be renegotiated
during the encoding</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_description"
              c:identifier="gst_encoding_profile_set_description">
        <doc xml:space="preserve">Set @description as the given description for the @profile. A copy of
@description will be made internally.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
1941 1942 1943 1944
          <parameter name="description"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
Sebastian Dröge's avatar
Sebastian Dröge committed
1945 1946 1947 1948 1949 1950 1951
            <doc xml:space="preserve">the description to set on the profile</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_enabled"
              c:identifier="gst_encoding_profile_set_enabled">
1952 1953 1954
        <doc xml:space="preserve">Set whether the profile should be used or not.

Since 1.6</doc>
Sebastian Dröge's avatar
Sebastian Dröge committed
1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
          <parameter name="enabled" transfer-ownership="none">
            <doc xml:space="preserve">%FALSE to disable #profile, %TRUE to enable it</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_format" c:identifier="gst_encoding_profile_set_format">
        <doc xml:space="preserve">Sets the media format used in the profile.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
          <parameter name="format" transfer-ownership="none">
            <doc xml:space="preserve">the media format to use in the profile.</doc>
            <type name="Gst.Caps" c:type="GstCaps*"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_name" c:identifier="gst_encoding_profile_set_name">
        <doc xml:space="preserve">Set @name as the given name for the @profile. A copy of @name will be made
internally.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
1996 1997 1998 1999
          <parameter name="name"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
Sebastian Dröge's avatar
Sebastian Dröge committed
2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054
            <doc xml:space="preserve">the name to set on the profile</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_presence"
              c:identifier="gst_encoding_profile_set_presence">
        <doc xml:space="preserve">Set the number of time the profile is used in its parent
container profile. If 0, it is not a mandatory stream</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
          <parameter name="presence" transfer-ownership="none">
            <doc xml:space="preserve">the number of time the profile can be used</doc>
            <type name="guint" c:type="guint"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_preset" c:identifier="gst_encoding_profile_set_preset">
        <doc xml:space="preserve">Sets the name of the #GstElement that implements the #GstPreset interface
to use for the profile.
This is the name that has been set when saving the preset.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
          <parameter name="preset"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve">the element preset to use</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_preset_name"
              c:identifier="gst_encoding_profile_set_preset_name">
        <doc xml:space="preserve">Sets the name of the #GstPreset's factory to be used in the profile.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
2055 2056 2057 2058
          <parameter name="preset_name"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
Sebastian Dröge's avatar
Sebastian Dröge committed
2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076
            <doc xml:space="preserve">The name of the preset to use in this @profile.</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
        </parameters>
      </method>
      <method name="set_restriction"
              c:identifier="gst_encoding_profile_set_restriction">
        <doc xml:space="preserve">Set the restriction #GstCaps to apply before the encoder
that will be used in the profile. See gst_encoding_profile_get_restriction()
for more about restrictions. Does not apply to #GstEncodingContainerProfile.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="profile" transfer-ownership="none">
            <doc xml:space="preserve">a #GstEncodingProfile</doc>
            <type name="EncodingProfile" c:type="GstEncodingProfile*"/>
          </instance-parameter>
2077 2078 2079 2080
          <parameter name="restriction"
                     transfer-ownership="full"
                     nullable="1"
                     allow-none="1">
Sebastian Dröge's avatar
Sebastian Dröge committed
2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098