This file is indexed.

/usr/share/gtk-doc/html/gst-plugins-bad-libs-0.10/gst-plugins-bad-libs-GstBaseVideoDecoder.html is in gstreamer0.10-plugins-bad-doc 0.10.23-7.2ubuntu1.

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

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GStreamer Bad Plugins 0.10 Library Reference Manual: GstBaseVideoDecoder</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="GStreamer Bad Plugins 0.10 Library Reference Manual">
<link rel="up" href="video.html" title="Base video element classes">
<link rel="prev" href="gst-plugins-bad-libs-GstBaseVideoCodec.html" title="GstBaseVideoCodec">
<link rel="next" href="gst-plugins-bad-libs-GstBaseVideoEncoder.html" title="GstBaseVideoEncoder">
<meta name="generator" content="GTK-Doc V1.20 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> 
                  <a href="#gst-plugins-bad-libs-GstBaseVideoDecoder.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> 
                  <a href="#gst-plugins-bad-libs-GstBaseVideoDecoder.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="video.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="gst-plugins-bad-libs-GstBaseVideoCodec.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="gst-plugins-bad-libs-GstBaseVideoEncoder.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="gst-plugins-bad-libs-GstBaseVideoDecoder"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gst-plugins-bad-libs-GstBaseVideoDecoder.top_of_page"></a>GstBaseVideoDecoder</span></h2>
<p>GstBaseVideoDecoder — Base class for video decoders</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="gst-plugins-bad-libs-GstBaseVideoDecoder.functions"></a><h2>Functions</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GST-BASE-AUDIO-DECODER-ERROR:CAPS" title="GST_BASE_AUDIO_DECODER_ERROR()">GST_BASE_AUDIO_DECODER_ERROR</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#gst-base-video-decoder-class-set-capture-pattern" title="gst_base_video_decoder_class_set_capture_pattern ()">gst_base_video_decoder_class_set_capture_pattern</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gst-plugins-bad-libs-GstBaseVideoCodec.html#GstVideoFrame" title="struct GstVideoFrame"><span class="returnvalue">GstVideoFrame</span></a> *
</td>
<td class="function_name">
<a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#gst-base-video-decoder-get-frame" title="gst_base_video_decoder_get_frame ()">gst_base_video_decoder_get_frame</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gst-plugins-bad-libs-GstBaseVideoCodec.html#GstVideoFrame" title="struct GstVideoFrame"><span class="returnvalue">GstVideoFrame</span></a> *
</td>
<td class="function_name">
<a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#gst-base-video-decoder-get-oldest-frame" title="gst_base_video_decoder_get_oldest_frame ()">gst_base_video_decoder_get_oldest_frame</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#gst-base-video-decoder-add-to-frame" title="gst_base_video_decoder_add_to_frame ()">gst_base_video_decoder_add_to_frame</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#gst-base-video-decoder-lost-sync" title="gst_base_video_decoder_lost_sync ()">gst_base_video_decoder_lost_sync</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/gstreamer-0.10/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
</td>
<td class="function_name">
<a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#gst-base-video-decoder-have-frame" title="gst_base_video_decoder_have_frame ()">gst_base_video_decoder_have_frame</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#gst-base-video-decoder-set-sync-point" title="gst_base_video_decoder_set_sync_point ()">gst_base_video_decoder_set_sync_point</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#gst-base-video-decoder-set-src-caps" title="gst_base_video_decoder_set_src_caps ()">gst_base_video_decoder_set_src_caps</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/gstreamer-0.10/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> *
</td>
<td class="function_name">
<a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#gst-base-video-decoder-alloc-src-buffer" title="gst_base_video_decoder_alloc_src_buffer ()">gst_base_video_decoder_alloc_src_buffer</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/gstreamer-0.10/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
</td>
<td class="function_name">
<a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#gst-base-video-decoder-alloc-src-frame" title="gst_base_video_decoder_alloc_src_frame ()">gst_base_video_decoder_alloc_src_frame</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="gst-plugins-bad-libs-GstBaseVideoCodec.html#GstVideoState" title="struct GstVideoState"><span class="returnvalue">GstVideoState</span></a> *
</td>
<td class="function_name">
<a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#gst-base-video-decoder-get-state" title="gst_base_video_decoder_get_state ()">gst_base_video_decoder_get_state</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/gstreamer-0.10/GstClock.html#GstClockTimeDiff"><span class="returnvalue">GstClockTimeDiff</span></a>
</td>
<td class="function_name">
<a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#gst-base-video-decoder-get-max-decode-time" title="gst_base_video_decoder_get_max_decode_time ()">gst_base_video_decoder_get_max_decode_time</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="/usr/share/gtk-doc/html/gstreamer-0.10/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
</td>
<td class="function_name">
<a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#gst-base-video-decoder-finish-frame" title="gst_base_video_decoder_finish_frame ()">gst_base_video_decoder_finish_frame</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="gst-plugins-bad-libs-GstBaseVideoDecoder.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GST-BASE-VIDEO-DECODER-SINK-NAME:CAPS" title="GST_BASE_VIDEO_DECODER_SINK_NAME">GST_BASE_VIDEO_DECODER_SINK_NAME</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GST-BASE-VIDEO-DECODER-SRC-NAME:CAPS" title="GST_BASE_VIDEO_DECODER_SRC_NAME">GST_BASE_VIDEO_DECODER_SRC_NAME</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GST-BASE-VIDEO-DECODER-FLOW-NEED-DATA:CAPS" title="GST_BASE_VIDEO_DECODER_FLOW_NEED_DATA">GST_BASE_VIDEO_DECODER_FLOW_NEED_DATA</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GST-BASE-VIDEO-DECODER-FLOW-DROPPED:CAPS" title="GST_BASE_VIDEO_DECODER_FLOW_DROPPED">GST_BASE_VIDEO_DECODER_FLOW_DROPPED</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder">GstBaseVideoDecoder</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoderClass" title="struct GstBaseVideoDecoderClass">GstBaseVideoDecoderClass</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="gst-plugins-bad-libs-GstBaseVideoDecoder.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">
</pre>
</div>
<div class="refsect1">
<a name="gst-plugins-bad-libs-GstBaseVideoDecoder.description"></a><h2>Description</h2>
<p>This base class is for video decoders turning encoded data into raw video
frames.</p>
<p>GstBaseVideoDecoder and subclass should cooperate as follows.</p>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><div class="itemizedlist">
<p class="title"><b>Configuration</b></p>
<ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>
    Initially, GstBaseVideoDecoder calls <em class="parameter"><code>start</code></em> when the decoder element
    is activated, which allows subclass to perform any global setup.
  </p></li>
<li class="listitem"><p>
    GstBaseVideoDecoder calls <em class="parameter"><code>set_format</code></em> to inform subclass of caps
    describing input video data that it is about to receive, including
    possibly configuration data.
    While unlikely, it might be called more than once, if changing input
    parameters require reconfiguration.
  </p></li>
<li class="listitem"><p>
    GstBaseVideoDecoder calls <em class="parameter"><code>stop</code></em> at end of all processing.
  </p></li>
</ul>
</div></li>
<li class="listitem"><div class="itemizedlist">
<p class="title"><b>Data processing</b></p>
<ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>
      Base class gathers input data, and optionally allows subclass
      to parse this into subsequently manageable chunks, typically
      corresponding to and referred to as 'frames'.
    </p></li>
<li class="listitem"><p>
      Input frame is provided to subclass' <em class="parameter"><code>handle_frame</code></em>.
    </p></li>
<li class="listitem"><p>
      If codec processing results in decoded data, subclass should call
      <em class="parameter"><code>gst_base_video_decoder_finish_frame</code></em> to have decoded data pushed
      downstream.
    </p></li>
</ul>
</div></li>
<li class="listitem"><div class="itemizedlist">
<p class="title"><b>Shutdown phase</b></p>
<ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p>
    GstBaseVideoDecoder class calls <em class="parameter"><code>stop</code></em> to inform the subclass that data
    parsing will be stopped.
  </p></li></ul>
</div></li>
</ol></div>
<p>Subclass is responsible for providing pad template caps for
source and sink pads. The pads need to be named "sink" and "src". It also
needs to set the fixed caps on srcpad, when the format is ensured.  This
is typically when base class calls subclass' <em class="parameter"><code>set_format</code></em>
 function, though
it might be delayed until calling <em class="parameter"><code>gst_base_video_decoder_finish_frame</code></em>
.</p>
<p>Subclass is also responsible for providing (presentation) timestamps
(likely based on corresponding input ones).  If that is not applicable
or possible, baseclass provides limited framerate based interpolation.</p>
<p>Similarly, the baseclass provides some limited (legacy) seeking support
(upon explicit subclass request), as full-fledged support
should rather be left to upstream demuxer, parser or alike.  This simple
approach caters for seeking and duration reporting using estimated input
bitrates.</p>
<p>Baseclass provides some support for reverse playback, in particular
in case incoming data is not packetized or upstream does not provide
fragments on keyframe boundaries.  However, subclass should then be prepared
for the parsing and frame processing stage to occur separately (rather
than otherwise the latter immediately following the former),
and should ensure the parsing stage properly marks keyframes or rely on
upstream to do so properly for incoming data.</p>
<p>Things that subclass need to take care of:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>Provide pad templates</p></li>
<li class="listitem"><p>
     Set source pad caps when appropriate
  </p></li>
<li class="listitem"><p>
     Configure some baseclass behaviour parameters.
  </p></li>
<li class="listitem"><p>
     Optionally parse input data, if it is not considered packetized.
     Parse sync is obtained either by providing baseclass with a
     mask and pattern or a custom <em class="parameter"><code>scan_for_sync</code></em>.  When sync is established,
     <em class="parameter"><code>parse_data</code></em> should invoke <em class="parameter"><code>gst_base_video_decoder_add_to_frame</code></em> and
     <em class="parameter"><code>gst_base_video_decoder_have_frame</code></em> as appropriate.
  </p></li>
<li class="listitem"><p>
     Accept data in <em class="parameter"><code>handle_frame</code></em> and provide decoded results to
     <em class="parameter"><code>gst_base_video_decoder_finish_frame</code></em>.
  </p></li>
</ul></div>
</div>
<div class="refsect1">
<a name="gst-plugins-bad-libs-GstBaseVideoDecoder.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="GST-BASE-AUDIO-DECODER-ERROR:CAPS"></a><h3>GST_BASE_AUDIO_DECODER_ERROR()</h3>
<pre class="programlisting">#define             GST_BASE_AUDIO_DECODER_ERROR(el, w, domain, code, text, debug, ret)</pre>
</div>
<hr>
<div class="refsect2">
<a name="gst-base-video-decoder-class-set-capture-pattern"></a><h3>gst_base_video_decoder_class_set_capture_pattern ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_base_video_decoder_class_set_capture_pattern
                               (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoderClass" title="struct GstBaseVideoDecoderClass"><span class="type">GstBaseVideoDecoderClass</span></a> *klass</code></em>,
                                <em class="parameter"><code><span class="type">guint32</span> mask</code></em>,
                                <em class="parameter"><code><span class="type">guint32</span> pattern</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="gst-base-video-decoder-get-frame"></a><h3>gst_base_video_decoder_get_frame ()</h3>
<pre class="programlisting"><a class="link" href="gst-plugins-bad-libs-GstBaseVideoCodec.html#GstVideoFrame" title="struct GstVideoFrame"><span class="returnvalue">GstVideoFrame</span></a> *
gst_base_video_decoder_get_frame (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a> *coder</code></em>,
                                  <em class="parameter"><code><span class="type">int</span> frame_number</code></em>);</pre>
<div class="refsect3">
<a name="id-1.2.5.3.7.4.4"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>base_video_decoder</p></td>
<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>frame_number</p></td>
<td class="parameter_description"><p>system_frame_number of a frame</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.5.3.7.4.5"></a><h4>Returns</h4>
<p> pending unfinished <a class="link" href="gst-plugins-bad-libs-GstBaseVideoCodec.html#GstVideoFrame" title="struct GstVideoFrame"><span class="type">GstVideoFrame</span></a> identified by <em class="parameter"><code>frame_number</code></em>
.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-base-video-decoder-get-oldest-frame"></a><h3>gst_base_video_decoder_get_oldest_frame ()</h3>
<pre class="programlisting"><a class="link" href="gst-plugins-bad-libs-GstBaseVideoCodec.html#GstVideoFrame" title="struct GstVideoFrame"><span class="returnvalue">GstVideoFrame</span></a> *
gst_base_video_decoder_get_oldest_frame
                               (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a> *coder</code></em>);</pre>
<p>Sets the mask and pattern that will be scanned for to obtain parse sync.
Note that a non-zero <em class="parameter"><code>mask</code></em>
 implies that <em class="parameter"><code>scan_for_sync</code></em>
 will be ignored.</p>
<div class="refsect3">
<a name="id-1.2.5.3.7.5.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>base_video_decoder_class</p></td>
<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoderClass" title="struct GstBaseVideoDecoderClass"><span class="type">GstBaseVideoDecoderClass</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-base-video-decoder-add-to-frame"></a><h3>gst_base_video_decoder_add_to_frame ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_base_video_decoder_add_to_frame (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a> *base_video_decoder</code></em>,
                                     <em class="parameter"><code><span class="type">int</span> n_bytes</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="gst-base-video-decoder-lost-sync"></a><h3>gst_base_video_decoder_lost_sync ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_base_video_decoder_lost_sync (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a> *base_video_decoder</code></em>);</pre>
<p>Advances out-of-sync input data by 1 byte and marks it accordingly.</p>
<div class="refsect3">
<a name="id-1.2.5.3.7.7.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>base_video_decoder</p></td>
<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-base-video-decoder-have-frame"></a><h3>gst_base_video_decoder_have_frame ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-0.10/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
gst_base_video_decoder_have_frame (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a> *base_video_decoder</code></em>);</pre>
<p>Gathers all data collected for currently parsed frame, gathers corresponding
metadata and passes it along for further processing, i.e. <em class="parameter"><code>handle_frame</code></em>
.</p>
<div class="refsect3">
<a name="id-1.2.5.3.7.8.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>base_video_decoder</p></td>
<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.5.3.7.8.6"></a><h4>Returns</h4>
<p> a <a href="/usr/share/gtk-doc/html/gstreamer-0.10/GstPad.html#GstFlowReturn"><span class="type">GstFlowReturn</span></a></p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-base-video-decoder-set-sync-point"></a><h3>gst_base_video_decoder_set_sync_point ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gst_base_video_decoder_set_sync_point (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a> *base_video_decoder</code></em>);</pre>
<p>Marks current frame as a sync point, i.e. keyframe.</p>
<div class="refsect3">
<a name="id-1.2.5.3.7.9.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>base_video_decoder</p></td>
<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-base-video-decoder-set-src-caps"></a><h3>gst_base_video_decoder_set_src_caps ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
gst_base_video_decoder_set_src_caps (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a> *base_video_decoder</code></em>);</pre>
<p>Sets src pad caps according to currently configured <a class="link" href="gst-plugins-bad-libs-GstBaseVideoCodec.html#GstVideoState" title="struct GstVideoState"><span class="type">GstVideoState</span></a>.</p>
<div class="refsect3">
<a name="id-1.2.5.3.7.10.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>base_video_decoder</p></td>
<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-base-video-decoder-alloc-src-buffer"></a><h3>gst_base_video_decoder_alloc_src_buffer ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-0.10/gstreamer-GstBuffer.html#GstBuffer"><span class="returnvalue">GstBuffer</span></a> *
gst_base_video_decoder_alloc_src_buffer
                               (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a> *base_video_decoder</code></em>);</pre>
<p>Helper function that uses gst_pad_alloc_buffer_and_set_caps
to allocate a buffer to hold a video frame for <em class="parameter"><code>base_video_decoder</code></em>
's
current <a class="link" href="gst-plugins-bad-libs-GstBaseVideoCodec.html#GstVideoState" title="struct GstVideoState"><span class="type">GstVideoState</span></a>.</p>
<div class="refsect3">
<a name="id-1.2.5.3.7.11.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>base_video_decoder</p></td>
<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.5.3.7.11.6"></a><h4>Returns</h4>
<p> allocated buffer</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-base-video-decoder-alloc-src-frame"></a><h3>gst_base_video_decoder_alloc_src_frame ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-0.10/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
gst_base_video_decoder_alloc_src_frame
                               (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a> *base_video_decoder</code></em>,
                                <em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-GstBaseVideoCodec.html#GstVideoFrame" title="struct GstVideoFrame"><span class="type">GstVideoFrame</span></a> *frame</code></em>);</pre>
<p>Helper function that uses gst_pad_alloc_buffer_and_set_caps
to allocate a buffer to hold a video frame for <em class="parameter"><code>base_video_decoder</code></em>
's
current <a class="link" href="gst-plugins-bad-libs-GstBaseVideoCodec.html#GstVideoState" title="struct GstVideoState"><span class="type">GstVideoState</span></a>.  Subclass should already have configured video state
and set src pad caps.</p>
<div class="refsect3">
<a name="id-1.2.5.3.7.12.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>base_video_decoder</p></td>
<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>frame</p></td>
<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-GstBaseVideoCodec.html#GstVideoFrame" title="struct GstVideoFrame"><span class="type">GstVideoFrame</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.5.3.7.12.6"></a><h4>Returns</h4>
<p> result from pad alloc call</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-base-video-decoder-get-state"></a><h3>gst_base_video_decoder_get_state ()</h3>
<pre class="programlisting"><a class="link" href="gst-plugins-bad-libs-GstBaseVideoCodec.html#GstVideoState" title="struct GstVideoState"><span class="returnvalue">GstVideoState</span></a> *
gst_base_video_decoder_get_state (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a> *base_video_decoder</code></em>);</pre>
<div class="refsect3">
<a name="id-1.2.5.3.7.13.4"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>base_video_decoder</p></td>
<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.5.3.7.13.5"></a><h4>Returns</h4>
<p> <a class="link" href="gst-plugins-bad-libs-GstBaseVideoCodec.html#GstVideoState" title="struct GstVideoState"><span class="type">GstVideoState</span></a> describing format of video data.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-base-video-decoder-get-max-decode-time"></a><h3>gst_base_video_decoder_get_max_decode_time ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-0.10/GstClock.html#GstClockTimeDiff"><span class="returnvalue">GstClockTimeDiff</span></a>
gst_base_video_decoder_get_max_decode_time
                               (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a> *base_video_decoder</code></em>,
                                <em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-GstBaseVideoCodec.html#GstVideoFrame" title="struct GstVideoFrame"><span class="type">GstVideoFrame</span></a> *frame</code></em>);</pre>
<p>Determines maximum possible decoding time for <em class="parameter"><code>frame</code></em>
 that will
allow it to decode and arrive in time (as determined by QoS events).
In particular, a negative result means decoding in time is no longer possible
and should therefore occur as soon/skippy as possible.</p>
<div class="refsect3">
<a name="id-1.2.5.3.7.14.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>base_video_decoder</p></td>
<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>frame</p></td>
<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-GstBaseVideoCodec.html#GstVideoFrame" title="struct GstVideoFrame"><span class="type">GstVideoFrame</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.5.3.7.14.6"></a><h4>Returns</h4>
<p> max decoding time.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gst-base-video-decoder-finish-frame"></a><h3>gst_base_video_decoder_finish_frame ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-0.10/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
gst_base_video_decoder_finish_frame (<em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a> *base_video_decoder</code></em>,
                                     <em class="parameter"><code><a class="link" href="gst-plugins-bad-libs-GstBaseVideoCodec.html#GstVideoFrame" title="struct GstVideoFrame"><span class="type">GstVideoFrame</span></a> *frame</code></em>);</pre>
<p>Removes next <em class="parameter"><code>n_bytes</code></em>
 of input data and adds it to currently parsed frame.</p>
<div class="refsect3">
<a name="id-1.2.5.3.7.15.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>base_video_decoder</p></td>
<td class="parameter_description"><p>a <a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>n_bytes</p></td>
<td class="parameter_description"><p>an encoded <a class="link" href="gst-plugins-bad-libs-GstBaseVideoCodec.html#GstVideoFrame" title="struct GstVideoFrame"><span class="type">GstVideoFrame</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="gst-plugins-bad-libs-GstBaseVideoDecoder.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GST-BASE-VIDEO-DECODER-SINK-NAME:CAPS"></a><h3>GST_BASE_VIDEO_DECODER_SINK_NAME</h3>
<pre class="programlisting">#define GST_BASE_VIDEO_DECODER_SINK_NAME    "sink"
</pre>
<p>The name of the templates for the sink pad.</p>
</div>
<hr>
<div class="refsect2">
<a name="GST-BASE-VIDEO-DECODER-SRC-NAME:CAPS"></a><h3>GST_BASE_VIDEO_DECODER_SRC_NAME</h3>
<pre class="programlisting">#define GST_BASE_VIDEO_DECODER_SRC_NAME     "src"
</pre>
<p>The name of the templates for the source pad.</p>
</div>
<hr>
<div class="refsect2">
<a name="GST-BASE-VIDEO-DECODER-FLOW-NEED-DATA:CAPS"></a><h3>GST_BASE_VIDEO_DECODER_FLOW_NEED_DATA</h3>
<pre class="programlisting">#define GST_BASE_VIDEO_DECODER_FLOW_NEED_DATA GST_FLOW_CUSTOM_SUCCESS
</pre>
<p>Returned while parsing to indicate more data is needed.</p>
</div>
<hr>
<div class="refsect2">
<a name="GST-BASE-VIDEO-DECODER-FLOW-DROPPED:CAPS"></a><h3>GST_BASE_VIDEO_DECODER_FLOW_DROPPED</h3>
<pre class="programlisting">#define GST_BASE_VIDEO_DECODER_FLOW_DROPPED GST_FLOW_CUSTOM_SUCCESS_1
</pre>
<p>Returned when the event/buffer should be dropped.</p>
</div>
<hr>
<div class="refsect2">
<a name="GstBaseVideoDecoder"></a><h3>struct GstBaseVideoDecoder</h3>
<pre class="programlisting">struct GstBaseVideoDecoder {
  GstBaseVideoCodec base_video_codec;
};
</pre>
<p>The opaque <a class="link" href="gst-plugins-bad-libs-GstBaseVideoDecoder.html#GstBaseVideoDecoder" title="struct GstBaseVideoDecoder"><span class="type">GstBaseVideoDecoder</span></a> data structure.</p>
</div>
<hr>
<div class="refsect2">
<a name="GstBaseVideoDecoderClass"></a><h3>struct GstBaseVideoDecoderClass</h3>
<pre class="programlisting">struct GstBaseVideoDecoderClass {
  GstBaseVideoCodecClass base_video_codec_class;

  gboolean      (*start)          (GstBaseVideoDecoder *coder);

  gboolean      (*stop)           (GstBaseVideoDecoder *coder);

  int           (*scan_for_sync)  (GstBaseVideoDecoder *decoder, gboolean at_eos,
                                   int offset, int n);

  GstFlowReturn (*parse_data)     (GstBaseVideoDecoder *decoder, gboolean at_eos);

  gboolean      (*set_format)     (GstBaseVideoDecoder *coder, GstVideoState * state);

  gboolean      (*reset)          (GstBaseVideoDecoder *coder);

  GstFlowReturn (*finish)         (GstBaseVideoDecoder *coder);

  GstFlowReturn (*handle_frame)   (GstBaseVideoDecoder *coder, GstVideoFrame *frame);
};
</pre>
<p>Subclasses can override any of the available virtual methods or not, as
needed. At minimum <em class="parameter"><code>handle_frame</code></em>
 needs to be overridden, and <em class="parameter"><code>set_format</code></em>

and likely as well.  If non-packetized input is supported or expected,
<em class="parameter"><code>parse</code></em>
 needs to be overridden as well.</p>
<div class="refsect3">
<a name="id-1.2.5.3.8.7.5"></a><h4>Members</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="300px" class="struct_members_name">
<col class="struct_members_description">
<col width="200px" class="struct_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="struct_member_name"><p><a class="link" href="gst-plugins-bad-libs-GstBaseVideoCodec.html#GstBaseVideoCodecClass" title="struct GstBaseVideoCodecClass"><span class="type">GstBaseVideoCodecClass</span></a> <em class="structfield"><code><a name="GstBaseVideoDecoderClass.base-video-codec-class"></a>base_video_codec_class</code></em>;</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstBaseVideoDecoderClass.start"></a>start</code></em> ()</p></td>
<td class="struct_member_description"><p>Optional.
Called when the element starts processing.
Allows opening external resources.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstBaseVideoDecoderClass.stop"></a>stop</code></em> ()</p></td>
<td class="struct_member_description"><p>Optional.
Called when the element stops processing.
Allows closing external resources.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstBaseVideoDecoderClass.scan-for-sync"></a>scan_for_sync</code></em> ()</p></td>
<td class="struct_member_description"><p>Optional.
Allows subclass to obtain sync for subsequent parsing
by custom means (above an beyond scanning for specific
marker and mask).</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstBaseVideoDecoderClass.parse-data"></a>parse_data</code></em> ()</p></td>
<td class="struct_member_description"><p>Required for non-packetized input.
Allows chopping incoming data into manageable units (frames)
for subsequent decoding.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstBaseVideoDecoderClass.set-format"></a>set_format</code></em> ()</p></td>
<td class="struct_member_description"><p>Notifies subclass of incoming data format (caps).</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstBaseVideoDecoderClass.reset"></a>reset</code></em> ()</p></td>
<td class="struct_member_description"><p>Optional.
Allows subclass (codec) to perform post-seek semantics reset.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstBaseVideoDecoderClass.finish"></a>finish</code></em> ()</p></td>
<td class="struct_member_description"><p>Optional.
Called to request subclass to dispatch any pending remaining
data (e.g. at EOS).</p></td>
<td class="struct_member_annotations"> </td>
</tr>
<tr>
<td class="struct_member_name"><p><em class="structfield"><code><a name="GstBaseVideoDecoderClass.handle-frame"></a>handle_frame</code></em> ()</p></td>
<td class="struct_member_description"><p>Provides input data frame to subclass.</p></td>
<td class="struct_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="gst-plugins-bad-libs-GstBaseVideoDecoder.see-also"></a><h2>See Also</h2>
<p><a href="/usr/share/gtk-doc/html/gstreamer-libs-0.10/GstBaseTransform.html"><span class="type">GstBaseTransform</span></a></p>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.20</div>
</body>
</html>