File: part-query.txt

package info (click to toggle)
gstreamer1.0 1.4.4-2%2Bdeb8u1
  • links: PTS
  • area: main
  • in suites: jessie
  • size: 30,228 kB
  • ctags: 22,496
  • sloc: ansic: 137,307; xml: 18,193; sh: 12,851; makefile: 2,105; perl: 1,537; yacc: 865; python: 433; lex: 164; lisp: 154; cpp: 38; sed: 16
file content (100 lines) | stat: -rw-r--r-- 2,450 bytes parent folder | download | duplicates (4)
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
Query
-----

Purpose
~~~~~~~

Queries are used to get information about the stream. 
A query is started on a specific pad and travels up or downstream.


Requirements
~~~~~~~~~~~~

  - multiple return values, grouped together when they make sense.
  - one pad function to perform the query
  - extensible queries.

Implementation
~~~~~~~~~~~~~~

  - GstQuery extends GstMiniObject and contains a GstStructure (see GstMessage)
  - some standard query types are defined below
  - methods to create and parse the results in the GstQuery.
  - define pad method:

     gboolean                (*GstPadQueryFunction)          (GstPad    *pad,
                                                              GstObject *parent,
                                                              GstQuery  *query);

    pad returns result in query structure and TRUE as result or FALSE when
    query is not supported.

Query types
~~~~~~~~~~~

 - GST_QUERY_POSITION:
  
     get info on current position of the stream in stream_time.

 - GST_QUERY_DURATION:

     get info on the total duration of the stream.
 
 - GST_QUERY_LATENCY:

     get amount of latency introduced in the pipeline. (See part-latency.txt)

 - GST_QUERY_RATE:

     get the current playback rate of the pipeline

 - GST_QUERY_SEEKING:
   
     get info on how seeking can be done 
       - getrange, with/without offset/size
       - ranges where seeking is efficient (for caching network sources)
       - flags describing seeking behaviour (forward, backward, segments,
	             play backwards, ...)

 - GST_QUERY_SEGMENT:

     get info about the currently configured playback segment.

 - GST_QUERY_CONVERT:

     convert format/value to another format/value pair.

 - GST_QUERY_FORMATS:

     return list of supported formats that can be used for GST_QUERY_CONVERT.

 - GST_QUERY_BUFFERING:

     query available media for efficient seeking (See part-buffering.txt)

 - GST_QUERY_CUSTOM:

     a custom query, the name of the query defines the properties of the query.

 - GST_QUERY_URI:

     query the uri of the source or sink element

 - GST_QUERY_ALLOCATION:

     the buffer allocation properties (See part-bufferpool.txt)

 - GST_QUERY_SCHEDULING:

     the scheduling properties (See part-scheduling.txt)

 - GST_QUERY_ACCEPT_CAPS:

     check if caps are supported (See part-negotiation.txt)

 - GST_QUERY_CAPS:

     get the possible caps (See part-negotiation.txt)