gst-sh-mobile-mixer - SH video mixer plugin.
Blends frames using the Renesas BEU hardware (via libshbeu).
For each of the requested sink pads it will compare the incoming geometry and framerate to define the output parameters. Output video frames will have the geometry of the background video stream and the framerate of the fastest incoming one.
Based on the Generic video mixer plugin (gst-plugins-good)
Copyright (C) 2004 Wim Taymans <wim@fluendo.com>
Modified by Phil Edworthy <phil.edworthy@renesas.com>
Overview of changes:
This element supports the following formats on input:
"video/x-raw-rgb, bpp=16" "video/x-raw-rgb, bpp=32" "video/x-raw-yuv, format=(fourcc)NV12" "video/x-raw-yuv, format=(fourcc)NV16"
This element supports the following formats on output:
"video/x-raw-rgb, bpp=16" "video/x-raw-rgb, bpp=32" "video/x-raw-yuv, format=(fourcc)NV12" "video/x-raw-yuv, format=(fourcc)NV16"
Individual parameters for each input stream can be configured on the GstSHVideoMixerPad.
gst-launch \ videotestsrc pattern=1 ! "video/x-raw-yuv, format=(fourcc)NV12, framerate=(fraction)10/1, width=320, height=240" ! queue ! mix. \ videotestsrc ! "video/x-raw-yuv, format=(fourcc)NV12, framerate=(fraction)5/1, width=100, height=100" ! queue ! mix. \ gst-sh-mobile-mixer name=mix sink_1::alpha=0.5 sink_1::xpos=40 sink_1::ypos=20 \ ! "video/x-raw-yuv, format=(fourcc)NV12" \ ! filesink location=tmp.yuv
This shows a 100x100 pixels snow pattern test source overlayed on top of a 320x240 pixels video test source at (40,20). Note that the framerate of the output video is 10 frames per second.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.