gstbufferpool.inc 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {* GStreamer
  2. * Copyright (C) 2010 Wim Taymans <[email protected]>
  3. *
  4. * gstbufferpool.h: Header for GstBufferPool object
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Library General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Library General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Library General Public
  17. * License along with this library; if not, write to the
  18. * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
  19. * Boston, MA 02110-1301, USA.
  20. *}
  21. Type
  22. P_GstBufferPoolClass = ^T_GstBufferPoolClass;
  23. PGstBufferPoolAcquireParams = ^TGstBufferPoolAcquireParams;
  24. {$IFDEF FPC}
  25. {$PACKRECORDS C}
  26. {$ENDIF}
  27. (* Const before type ignored *)
  28. T_GstBufferPoolClass = record
  29. object_class : TGstObjectClass;
  30. get_options : function (pool:PGstBufferPool):PPgchar;cdecl;
  31. set_config : function (pool:PGstBufferPool; config:PGstStructure):Tgboolean;cdecl;
  32. start : function (pool:PGstBufferPool):Tgboolean;cdecl;
  33. stop : function (pool:PGstBufferPool):Tgboolean;cdecl;
  34. acquire_buffer : function (pool:PGstBufferPool; buffer:PPGstBuffer; params:PGstBufferPoolAcquireParams):TGstFlowReturn;cdecl;
  35. alloc_buffer : function (pool:PGstBufferPool; buffer:PPGstBuffer; params:PGstBufferPoolAcquireParams):TGstFlowReturn;cdecl;
  36. reset_buffer : procedure (pool:PGstBufferPool; buffer:PGstBuffer);cdecl;
  37. release_buffer : procedure (pool:PGstBufferPool; buffer:PGstBuffer);cdecl;
  38. free_buffer : procedure (pool:PGstBufferPool; buffer:PGstBuffer);cdecl;
  39. flush_start : procedure (pool:PGstBufferPool);cdecl;
  40. flush_stop : procedure (pool:PGstBufferPool);cdecl;
  41. _gst_reserved : array[0..(4-2)-1] of Tgpointer;
  42. end;
  43. TGstBufferPoolClass = T_GstBufferPoolClass;
  44. function gst_buffer_pool_get_type:TGType;cdecl;external gstreamerlib name 'gst_buffer_pool_get_type';
  45. function gst_buffer_pool_new:PGstBufferPool;cdecl;external gstreamerlib name 'gst_buffer_pool_new';
  46. function gst_buffer_pool_set_active(pool:PGstBufferPool; active:Tgboolean):Tgboolean;cdecl;external gstreamerlib name 'gst_buffer_pool_set_active';
  47. function gst_buffer_pool_is_active(pool:PGstBufferPool):Tgboolean;cdecl;external gstreamerlib name 'gst_buffer_pool_is_active';
  48. function gst_buffer_pool_set_config(pool:PGstBufferPool; config:PGstStructure):Tgboolean;cdecl;external gstreamerlib name 'gst_buffer_pool_set_config';
  49. function gst_buffer_pool_get_config(pool:PGstBufferPool):PGstStructure;cdecl;external gstreamerlib name 'gst_buffer_pool_get_config';
  50. (* Const before type ignored *)
  51. function gst_buffer_pool_get_options(pool:PGstBufferPool):PPgchar;cdecl;external gstreamerlib name 'gst_buffer_pool_get_options';
  52. (* Const before type ignored *)
  53. function gst_buffer_pool_has_option(pool:PGstBufferPool; option:Pgchar):Tgboolean;cdecl;external gstreamerlib name 'gst_buffer_pool_has_option';
  54. procedure gst_buffer_pool_set_flushing(pool:PGstBufferPool; flushing:Tgboolean);cdecl;external gstreamerlib name 'gst_buffer_pool_set_flushing';
  55. procedure gst_buffer_pool_config_set_params(config:PGstStructure; caps:PGstCaps; size:Tguint; min_buffers:Tguint; max_buffers:Tguint);cdecl;external gstreamerlib name 'gst_buffer_pool_config_set_params';
  56. function gst_buffer_pool_config_get_params(config:PGstStructure; caps:PPGstCaps; size:Pguint; min_buffers:Pguint; max_buffers:Pguint):Tgboolean;cdecl;external gstreamerlib name 'gst_buffer_pool_config_get_params';
  57. (* Const before type ignored *)
  58. procedure gst_buffer_pool_config_set_allocator(config:PGstStructure; allocator:PGstAllocator; params:PGstAllocationParams);cdecl;external gstreamerlib name 'gst_buffer_pool_config_set_allocator';
  59. function gst_buffer_pool_config_get_allocator(config:PGstStructure; allocator:PPGstAllocator; params:PGstAllocationParams):Tgboolean;cdecl;external gstreamerlib name 'gst_buffer_pool_config_get_allocator';
  60. function gst_buffer_pool_config_n_options(config:PGstStructure):Tguint;cdecl;external gstreamerlib name 'gst_buffer_pool_config_n_options';
  61. (* Const before type ignored *)
  62. procedure gst_buffer_pool_config_add_option(config:PGstStructure; option:Pgchar);cdecl;external gstreamerlib name 'gst_buffer_pool_config_add_option';
  63. (* Const before type ignored *)
  64. function gst_buffer_pool_config_get_option(config:PGstStructure; index:Tguint):Pgchar;cdecl;external gstreamerlib name 'gst_buffer_pool_config_get_option';
  65. (* Const before type ignored *)
  66. function gst_buffer_pool_config_has_option(config:PGstStructure; option:Pgchar):Tgboolean;cdecl;external gstreamerlib name 'gst_buffer_pool_config_has_option';
  67. function gst_buffer_pool_config_validate_params(config:PGstStructure; caps:PGstCaps; size:Tguint; min_buffers:Tguint; max_buffers:Tguint):Tgboolean;cdecl;external gstreamerlib name 'gst_buffer_pool_config_validate_params';
  68. function gst_buffer_pool_acquire_buffer(pool:PGstBufferPool; buffer:PPGstBuffer; params:PGstBufferPoolAcquireParams):TGstFlowReturn;cdecl;external gstreamerlib name 'gst_buffer_pool_acquire_buffer';
  69. procedure gst_buffer_pool_release_buffer(pool:PGstBufferPool; buffer:PGstBuffer);cdecl;external gstreamerlib name 'gst_buffer_pool_release_buffer';