gsttheadcamera_priv.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* GStreamer
  2. * Copyright (C) <2021> Charles Lu <chongzhi.lcz@alibaba-inc.com>
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Library General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Library General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Library General Public
  15. * License along with this library; if not, write to the
  16. * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
  17. * Boston, MA 02110-1301, USA.
  18. */
  19. #pragma once
  20. G_BEGIN_DECLS
  21. #define gst_thead_camera_parent_class parent_class
  22. G_DEFINE_TYPE (GstTHeadCamera, gst_thead_camera, GST_TYPE_PUSH_SRC);
  23. static void gst_thead_camera_set_property (GObject * object, guint prop_id,
  24. const GValue * value, GParamSpec * pspec);
  25. static void gst_thead_camera_get_property (GObject * object, guint prop_id,
  26. GValue * value, GParamSpec * pspec);
  27. static void gst_thead_camera_finalize (GObject * object);
  28. static gboolean gst_thead_camera_setcaps (GstBaseSrc * bsrc, GstCaps * caps);
  29. static GstCaps *gst_thead_camera_src_fixate (GstBaseSrc * bsrc, GstCaps * caps);
  30. static gboolean gst_thead_camera_query (GstBaseSrc * bsrc, GstQuery * query);
  31. static void gst_thead_camera_get_times (GstBaseSrc * bsrc,
  32. GstBuffer * buffer, GstClockTime * start, GstClockTime * end);
  33. static gboolean gst_thead_camera_decide_allocation (GstBaseSrc * bsrc,
  34. GstQuery * query);
  35. static GstFlowReturn gst_thead_camera_fill (GstPushSrc * psrc,
  36. GstBuffer * buffer);
  37. static gboolean gst_thead_camera_start (GstBaseSrc * bsrc);
  38. static gboolean gst_thead_camera_stop (GstBaseSrc * bsrc);
  39. G_END_DECLS