~ubuntu-branches/ubuntu/trusty/gstreamer1.0/trusty-proposed

« back to all changes in this revision

Viewing changes to libs/gst/base/gstbytewriter.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2012-08-08 18:12:33 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120808181233-riejwxprfsxh1njl
Tags: 0.11.93-1
* New upstream release:
  + debian/libgstreamer.symbols:
    - Update symbols file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
 * Free-function: gst_byte_writer_free
47
47
 *
48
48
 * Returns: (transfer full): a new, empty #GstByteWriter instance
49
 
 *
50
 
 * Since: 0.10.26
51
49
 */
52
50
GstByteWriter *
53
51
gst_byte_writer_new (void)
69
67
 * Free-function: gst_byte_writer_free
70
68
 *
71
69
 * Returns: (transfer full): a new #GstByteWriter instance
72
 
 *
73
 
 * Since: 0.10.26
74
70
 */
75
71
GstByteWriter *
76
72
gst_byte_writer_new_with_size (guint size, gboolean fixed)
98
94
 * Free-function: gst_byte_writer_free
99
95
 *
100
96
 * Returns: (transfer full): a new #GstByteWriter instance
101
 
 *
102
 
 * Since: 0.10.26
103
97
 */
104
98
GstByteWriter *
105
99
gst_byte_writer_new_with_data (guint8 * data, guint size, gboolean initialized)
120
114
 * @writer: #GstByteWriter instance
121
115
 *
122
116
 * Initializes @writer to an empty instance
123
 
 *
124
 
 * Since: 0.10.26
125
117
 */
126
118
void
127
119
gst_byte_writer_init (GstByteWriter * writer)
140
132
 * @fixed: If %TRUE the data can't be reallocated
141
133
 *
142
134
 * Initializes @writer with the given initial data size.
143
 
 *
144
 
 * Since: 0.10.26
145
135
 */
146
136
void
147
137
gst_byte_writer_init_with_size (GstByteWriter * writer, guint size,
160
150
/**
161
151
 * gst_byte_writer_init_with_data:
162
152
 * @writer: #GstByteWriter instance
163
 
 * @data: (in callee-allocated) (array length=size) (transfer none): Memory
164
 
 *     area for writing
 
153
 * @data: (array length=size) (transfer none): Memory area for writing
165
154
 * @size: Size of @data in bytes
166
155
 * @initialized: If %TRUE the complete data can be read from the beginning
167
156
 *
168
157
 * Initializes @writer with the given
169
158
 * memory area. If @initialized is %TRUE it is possible to
170
159
 * read @size bytes from the #GstByteWriter from the beginning.
171
 
 *
172
 
 * Since: 0.10.26
173
160
 */
174
161
void
175
162
gst_byte_writer_init_with_data (GstByteWriter * writer, guint8 * data,
192
179
 *
193
180
 * Resets @writer and frees the data if it's
194
181
 * owned by @writer.
195
 
 *
196
 
 * Since: 0.10.26
197
182
 */
198
183
void
199
184
gst_byte_writer_reset (GstByteWriter * writer)
213
198
 *
214
199
 * Free-function: g_free
215
200
 *
216
 
 * Returns: (transfer full): the current data. g_free() after usage.
217
 
 *
218
 
 * Since: 0.10.26
 
201
 * Returns: (array) (transfer full): the current data. g_free() after
 
202
 * usage.
219
203
 */
220
204
guint8 *
221
205
gst_byte_writer_reset_and_get_data (GstByteWriter * writer)
243
227
 *
244
228
 * Returns: (transfer full): the current data as buffer. gst_buffer_unref()
245
229
 *     after usage.
246
 
 *
247
 
 * Since: 0.10.26
248
230
 */
249
231
GstBuffer *
250
232
gst_byte_writer_reset_and_get_buffer (GstByteWriter * writer)
272
254
 * @writer: (in) (transfer full): #GstByteWriter instance
273
255
 *
274
256
 * Frees @writer and all memory allocated by it.
275
 
 *
276
 
 * Since: 0.10.26
277
257
 */
278
258
void
279
259
gst_byte_writer_free (GstByteWriter * writer)
294
274
 * Free-function: g_free
295
275
 *
296
276
 * Returns: (transfer full): the current data. g_free() after usage.
297
 
 *
298
 
 * Since: 0.10.26
299
277
 */
300
278
guint8 *
301
279
gst_byte_writer_free_and_get_data (GstByteWriter * writer)
321
299
 *
322
300
 * Returns: (transfer full): the current data as buffer. gst_buffer_unref()
323
301
 *     after usage.
324
 
 *
325
 
 * Since: 0.10.26
326
302
 */
327
303
GstBuffer *
328
304
gst_byte_writer_free_and_get_buffer (GstByteWriter * writer)
345
321
 * -1 is returned the remaining size is only limited by system resources.
346
322
 *
347
323
 * Returns: the remaining size of data that can still be written
348
 
 *
349
 
 * Since: 0.10.26
350
324
 */
351
325
guint
352
326
gst_byte_writer_get_remaining (const GstByteWriter * writer)
368
342
 * available and reallocates if necessary.
369
343
 *
370
344
 * Returns: %TRUE if at least @size bytes are still available
371
 
 *
372
 
 * Since: 0.10.26
373
345
 */
374
346
gboolean
375
347
gst_byte_writer_ensure_free_space (GstByteWriter * writer, guint size)
458
430
 * Writes a unsigned 8 bit integer to @writer.
459
431
 *
460
432
 * Returns: %TRUE if the value could be written
461
 
 *
462
 
 * Since: 0.10.26
463
433
 */
464
434
/**
465
435
 * gst_byte_writer_put_uint16_be:
469
439
 * Writes a unsigned big endian 16 bit integer to @writer.
470
440
 *
471
441
 * Returns: %TRUE if the value could be written
472
 
 *
473
 
 * Since: 0.10.26
474
442
 */
475
443
/**
476
444
 * gst_byte_writer_put_uint24_be:
480
448
 * Writes a unsigned big endian 24 bit integer to @writer.
481
449
 *
482
450
 * Returns: %TRUE if the value could be written
483
 
 *
484
 
 * Since: 0.10.26
485
451
 */
486
452
/**
487
453
 * gst_byte_writer_put_uint32_be:
491
457
 * Writes a unsigned big endian 32 bit integer to @writer.
492
458
 *
493
459
 * Returns: %TRUE if the value could be written
494
 
 *
495
 
 * Since: 0.10.26
496
460
 */
497
461
/**
498
462
 * gst_byte_writer_put_uint64_be:
502
466
 * Writes a unsigned big endian 64 bit integer to @writer.
503
467
 *
504
468
 * Returns: %TRUE if the value could be written
505
 
 *
506
 
 * Since: 0.10.26
507
469
 */
508
470
/**
509
471
 * gst_byte_writer_put_uint16_le:
513
475
 * Writes a unsigned little endian 16 bit integer to @writer.
514
476
 *
515
477
 * Returns: %TRUE if the value could be written
516
 
 *
517
 
 * Since: 0.10.26
518
478
 */
519
479
/**
520
480
 * gst_byte_writer_put_uint24_le:
524
484
 * Writes a unsigned little endian 24 bit integer to @writer.
525
485
 *
526
486
 * Returns: %TRUE if the value could be written
527
 
 *
528
 
 * Since: 0.10.26
529
487
 */
530
488
/**
531
489
 * gst_byte_writer_put_uint32_le:
535
493
 * Writes a unsigned little endian 32 bit integer to @writer.
536
494
 *
537
495
 * Returns: %TRUE if the value could be written
538
 
 *
539
 
 * Since: 0.10.26
540
496
 */
541
497
/**
542
498
 * gst_byte_writer_put_uint64_le:
546
502
 * Writes a unsigned little endian 64 bit integer to @writer.
547
503
 *
548
504
 * Returns: %TRUE if the value could be written
549
 
 *
550
 
 * Since: 0.10.26
551
505
 */
552
506
/**
553
507
 * gst_byte_writer_put_int8:
557
511
 * Writes a signed 8 bit integer to @writer.
558
512
 *
559
513
 * Returns: %TRUE if the value could be written
560
 
 *
561
 
 * Since: 0.10.26
562
514
 */
563
515
/**
564
516
 * gst_byte_writer_put_int16_be:
568
520
 * Writes a signed big endian 16 bit integer to @writer.
569
521
 *
570
522
 * Returns: %TRUE if the value could be written
571
 
 *
572
 
 * Since: 0.10.26
573
523
 */
574
524
/**
575
525
 * gst_byte_writer_put_int24_be:
579
529
 * Writes a signed big endian 24 bit integer to @writer.
580
530
 *
581
531
 * Returns: %TRUE if the value could be written
582
 
 *
583
 
 * Since: 0.10.26
584
532
 */
585
533
/**
586
534
 * gst_byte_writer_put_int32_be:
590
538
 * Writes a signed big endian 32 bit integer to @writer.
591
539
 *
592
540
 * Returns: %TRUE if the value could be written
593
 
 *
594
 
 * Since: 0.10.26
595
541
 */
596
542
/**
597
543
 * gst_byte_writer_put_int64_be:
601
547
 * Writes a signed big endian 64 bit integer to @writer.
602
548
 *
603
549
 * Returns: %TRUE if the value could be written
604
 
 *
605
 
 * Since: 0.10.26
606
550
 */
607
551
/**
608
552
 * gst_byte_writer_put_int16_le:
612
556
 * Writes a signed little endian 16 bit integer to @writer.
613
557
 *
614
558
 * Returns: %TRUE if the value could be written
615
 
 *
616
 
 * Since: 0.10.26
617
559
 */
618
560
/**
619
561
 * gst_byte_writer_put_int24_le:
623
565
 * Writes a signed little endian 24 bit integer to @writer.
624
566
 *
625
567
 * Returns: %TRUE if the value could be written
626
 
 *
627
 
 * Since: 0.10.26
628
568
 */
629
569
/**
630
570
 * gst_byte_writer_put_int32_le:
634
574
 * Writes a signed little endian 32 bit integer to @writer.
635
575
 *
636
576
 * Returns: %TRUE if the value could be written
637
 
 *
638
 
 * Since: 0.10.26
639
577
 */
640
578
/**
641
579
 * gst_byte_writer_put_int64_le:
645
583
 * Writes a signed little endian 64 bit integer to @writer.
646
584
 *
647
585
 * Returns: %TRUE if the value could be written
648
 
 *
649
 
 * Since: 0.10.26
650
586
 */
651
587
/**
652
588
 * gst_byte_writer_put_float32_be:
656
592
 * Writes a big endian 32 bit float to @writer.
657
593
 *
658
594
 * Returns: %TRUE if the value could be written
659
 
 *
660
 
 * Since: 0.10.27
661
595
 */
662
596
/**
663
597
 * gst_byte_writer_put_float64_be:
667
601
 * Writes a big endian 64 bit float to @writer.
668
602
 *
669
603
 * Returns: %TRUE if the value could be written
670
 
 *
671
 
 * Since: 0.10.27
672
604
 */
673
605
/**
674
606
 * gst_byte_writer_put_float32_le:
678
610
 * Writes a little endian 32 bit float to @writer.
679
611
 *
680
612
 * Returns: %TRUE if the value could be written
681
 
 *
682
 
 * Since: 0.10.27
683
613
 */
684
614
/**
685
615
 * gst_byte_writer_put_float64_le:
689
619
 * Writes a little endian 64 bit float to @writer.
690
620
 *
691
621
 * Returns: %TRUE if the value could be written
692
 
 *
693
 
 * Since: 0.10.27
694
622
 */
695
623
/**
696
624
 * gst_byte_writer_put_string_utf8:
701
629
 * Writes a NUL-terminated UTF8 string to @writer (including the terminator).
702
630
 *
703
631
 * Returns: %TRUE if the value could be written
704
 
 *
705
 
 * Since: 0.10.26
706
632
 */
707
633
/**
708
634
 * gst_byte_writer_put_string_utf16:
712
638
 * Writes a NUL-terminated UTF16 string to @writer (including the terminator).
713
639
 *
714
640
 * Returns: %TRUE if the value could be written
715
 
 *
716
 
 * Since: 0.10.26
717
641
 */
718
642
/**
719
643
 * gst_byte_writer_put_string_utf32:
723
647
 * Writes a NUL-terminated UTF32 string to @writer (including the terminator).
724
648
 *
725
649
 * Returns: %TRUE if the value could be written
726
 
 *
727
 
 * Since: 0.10.26
728
650
 */
729
651
/**
730
652
 * gst_byte_writer_put_data:
735
657
 * Writes @size bytes of @data to @writer.
736
658
 *
737
659
 * Returns: %TRUE if the value could be written
738
 
 *
739
 
 * Since: 0.10.26
740
660
 */
741
661
/**
742
662
 * gst_byte_writer_fill:
747
667
 * Writes @size bytes containing @value to @writer.
748
668
 *
749
669
 * Returns: %TRUE if the value could be written
750
 
 *
751
 
 * Since: 0.10.27
752
670
 */
753
671
 
754
672
/**