gstsample.inc 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. {
  2. /* GStreamer
  3. * Copyright (C) 1999,2000 Erik Walthinsen <[email protected]>
  4. * 2000 Wim Taymans <[email protected]>
  5. *
  6. * gstsample.h: Header for GstSample object
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Library General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2 of the License, or (at your option) any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Library General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Library General Public
  19. * License along with this library; if not, write to the
  20. * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
  21. * Boston, MA 02110-1301, USA.
  22. */
  23. }
  24. Type
  25. PGstSample = ^TGstSample;
  26. PGstSample_autoptr = ^TGstSample_autoptr;
  27. PGstSample_listautoptr = ^TGstSample_listautoptr;
  28. PGstSample_queueautoptr = ^TGstSample_queueautoptr;
  29. PGstSample_slistautoptr = ^TGstSample_slistautoptr;
  30. {$IFDEF FPC}
  31. {$PACKRECORDS C}
  32. {$ENDIF}
  33. TGstSample = record
  34. end ;
  35. T_GstSample = TGstSample;
  36. TGstSample_autoptr = PGstSample;
  37. TGstSample_listautoptr = PGList;
  38. TGstSample_slistautoptr = PGSList;
  39. TGstSample_queueautoptr = PGQueue;
  40. PPGstSample = ^PGstSample;
  41. function gst_sample_get_type:TGType;cdecl;external gstreamerlib name 'gst_sample_get_type';
  42. (* Const before type ignored *)
  43. function gst_sample_new(buffer:PGstBuffer; caps:PGstCaps; segment:PGstSegment; info:PGstStructure):PGstSample;cdecl;external gstreamerlib name 'gst_sample_new';
  44. function gst_sample_get_buffer(sample:PGstSample):PGstBuffer;cdecl;external gstreamerlib name 'gst_sample_get_buffer';
  45. function gst_sample_get_caps(sample:PGstSample):PGstCaps;cdecl;external gstreamerlib name 'gst_sample_get_caps';
  46. function gst_sample_get_segment(sample:PGstSample):PGstSegment;cdecl;external gstreamerlib name 'gst_sample_get_segment';
  47. (* Const before type ignored *)
  48. function gst_sample_get_info(sample:PGstSample):PGstStructure;cdecl;external gstreamerlib name 'gst_sample_get_info';
  49. function gst_sample_get_buffer_list(sample:PGstSample):PGstBufferList;cdecl;external gstreamerlib name 'gst_sample_get_buffer_list';
  50. procedure gst_sample_set_buffer_list(sample:PGstSample; buffer_list:PGstBufferList);cdecl;external gstreamerlib name 'gst_sample_set_buffer_list';
  51. procedure gst_sample_set_buffer(sample:PGstSample; buffer:PGstBuffer);cdecl;external gstreamerlib name 'gst_sample_set_buffer';
  52. procedure gst_sample_set_caps(sample:PGstSample; caps:PGstCaps);cdecl;external gstreamerlib name 'gst_sample_set_caps';
  53. (* Const before type ignored *)
  54. procedure gst_sample_set_segment(sample:PGstSample; segment:PGstSegment);cdecl;external gstreamerlib name 'gst_sample_set_segment';
  55. function gst_sample_set_info(sample:PGstSample; info:PGstStructure):Tgboolean;cdecl;external gstreamerlib name 'gst_sample_set_info';
  56. {
  57. static inline GstSample *
  58. gst_sample_ref (GstSample * sample)
  59. return ((GstSample *)gst_mini_object_ref (((GstMiniObject*)(sample))))
  60. ;
  61. # 113 "gstsample.h"
  62. static inline void
  63. gst_sample_unref (GstSample * sample)
  64. gst_mini_object_unref (((GstMiniObject*)(sample)));
  65. # 170 "gstsample.h"
  66. static inline GstSample *
  67. gst_sample_copy (const GstSample * buf)
  68. return ((GstSample *)gst_mini_object_copy (((const GstMiniObject*)(buf))));
  69. }
  70. var
  71. _gst_sample_type : TGType;cvar;external;