gsttaskpool.inc 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {
  2. /* GStreamer
  3. * Copyright (C) <2009> Wim Taymans <[email protected]>
  4. *
  5. * gsttaskpool.h: Pool for creating streaming threads
  6. *
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Library General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 2 of the License, or (at your option) any later version.
  11. *
  12. * This library is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Library General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Library General Public
  18. * License along with this library; if not, write to the
  19. * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
  20. * Boston, MA 02110-1301, USA.
  21. */
  22. }
  23. Type
  24. P_GstTaskPool = ^T_GstTaskPool;
  25. P_GstTaskPoolClass = ^T_GstTaskPoolClass;
  26. PGstTaskPool = ^TGstTaskPool;
  27. PGstTaskPool_autoptr = ^TGstTaskPool_autoptr;
  28. PGstTaskPool_listautoptr = ^TGstTaskPool_listautoptr;
  29. PGstTaskPool_queueautoptr = ^TGstTaskPool_queueautoptr;
  30. PGstTaskPool_slistautoptr = ^TGstTaskPool_slistautoptr;
  31. PGThreadPool = ^TGThreadPool;
  32. TGstTaskPoolFunction = procedure (user_data:pointer);cdecl;
  33. T_GstTaskPool = record
  34. object_ : TGstObject;
  35. pool : PGThreadPool;
  36. _gst_reserved : array[0..3] of Tgpointer;
  37. end;
  38. TGstTaskPool = T_GstTaskPool;
  39. T_GstTaskPoolClass = record
  40. parent_class : TGstObjectClass;
  41. prepare : procedure (pool:PGstTaskPool; error:PPGError);cdecl;
  42. cleanup : procedure (pool:PGstTaskPool);cdecl;
  43. push : function (pool:PGstTaskPool; func:TGstTaskPoolFunction; user_data:Tgpointer; error:PPGError):Tgpointer;cdecl;
  44. join : procedure (pool:PGstTaskPool; id:Tgpointer);cdecl;
  45. _gst_reserved : array[0..3] of Tgpointer;
  46. end;
  47. TGstTaskPoolClass = T_GstTaskPoolClass;
  48. TGstTaskPool_autoptr = PGstTaskPool;
  49. TGstTaskPool_listautoptr = PGList;
  50. TGstTaskPool_slistautoptr = PGSList;
  51. TGstTaskPool_queueautoptr = PGQueue;
  52. function gst_task_pool_get_type:TGType;cdecl;external gstreamerlib name 'gst_task_pool_get_type';
  53. function gst_task_pool_new:PGstTaskPool;cdecl;external gstreamerlib name 'gst_task_pool_new';
  54. procedure gst_task_pool_prepare(pool:PGstTaskPool; error:PPGError);cdecl;external gstreamerlib name 'gst_task_pool_prepare';
  55. function gst_task_pool_push(pool:PGstTaskPool; func:TGstTaskPoolFunction; user_data:Tgpointer; error:PPGError):Tgpointer;cdecl;external gstreamerlib name 'gst_task_pool_push';
  56. procedure gst_task_pool_join(pool:PGstTaskPool; id:Tgpointer);cdecl;external gstreamerlib name 'gst_task_pool_join';
  57. procedure gst_task_pool_cleanup(pool:PGstTaskPool);cdecl;external gstreamerlib name 'gst_task_pool_cleanup';