3 * Copyright (c) 2010, Texas Instruments Incorporated
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation
8 * version 2.1 of the License.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 #include "gstpvrvideosink.h"
27 GST_DEBUG_CATEGORY (gst_debug_pvrvideosink);
30 plugin_init (GstPlugin * plugin)
32 GST_DEBUG_CATEGORY_INIT (gst_debug_pvrvideosink, "pvrvideosink", 0,
35 return gst_element_register (plugin, "pvrvideosink", GST_RANK_PRIMARY,
36 GST_TYPE_PVRVIDEOSINK);
40 gst_ducati_alloc_1d (gint sz)
42 MemAllocBlock block = {
43 .pixelFormat = PIXEL_FMT_PAGE,
46 return MemMgr_Alloc (&block, 1);
50 gst_ducati_alloc_2d (gint width, gint height, guint * sz)
52 MemAllocBlock block[] = { {
53 .pixelFormat = PIXEL_FMT_8BIT,
56 .height = ALIGN2 (height, 1),
59 .pixelFormat = PIXEL_FMT_16BIT,
62 .height = ALIGN2 (height, 1) / 2,
67 *sz = (4096 * ALIGN2 (height, 1) * 3) / 2;
69 return MemMgr_Alloc (block, 2);
72 /* PACKAGE: this is usually set by autotools depending on some _INIT macro
73 * in configure.ac and then written into and defined in config.h, but we can
74 * just set it ourselves here in case someone doesn't use autotools to
75 * compile this code. GST_PLUGIN_DEFINE needs PACKAGE to be defined.
78 # define PACKAGE "ducati"
81 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
85 plugin_init, VERSION, "LGPL", "GStreamer", "http://gstreamer.net/")