video-blend.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* Gstreamer video blending utility functions
  2. *
  3. * Copyright (C) <2011> Intel Corporation
  4. * Copyright (C) <2011> Collabora Ltd.
  5. * Copyright (C) <2011> Thibault Saunier <[email protected]>
  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. #ifndef __GST_VIDEO_BLEND__
  23. #define __GST_VIDEO_BLEND__
  24. #include <gst/gst.h>
  25. #include <gst/video/video.h>
  26. void gst_video_blend_scale_linear_RGBA (GstVideoInfo * src, GstBuffer * src_buffer,
  27. gint dest_height, gint dest_width,
  28. GstVideoInfo * dest, GstBuffer ** dest_buffer);
  29. gboolean gst_video_blend (GstVideoFrame * dest,
  30. GstVideoFrame * src,
  31. gint x, gint y,
  32. gfloat global_alpha);
  33. #endif