thead_camera_utils.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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. #include <gst/video/video-info.h>
  21. #include <csi_camera.h>
  22. #include <camera_string.h>
  23. class THeadCameraUtil
  24. {
  25. public:
  26. static void dump_backtrace ();
  27. static void dump_gst_video_info (GstVideoInfo * info);
  28. static void dump_gstvideo_frame (GstVideoFrame * frame);
  29. static void dump_gst_buffer (GstBuffer * buffer);
  30. static void dump_channel_event(csi_camera_event_s *event);
  31. static void fill_1280x720_yv12 (GstVideoFrame * frame);
  32. };