~ubuntu-branches/ubuntu/natty/gst-entrans/natty

« back to all changes in this revision

Viewing changes to gst/entrans/plugin-entrans.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2010-09-13 19:49:29 UTC
  • Revision ID: james.westby@ubuntu.com-20100913194929-qz90a14xyxln9yfz
Tags: upstream-0.10.2
ImportĀ upstreamĀ versionĀ 0.10.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* GStreamer Plugin
 
2
 * Copyright (C) 2006 Mark Nauwelaerts <mnauw@users.sourceforge.net>
 
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 Street, Fifth Floor,
 
17
 * Boston, MA 02110-1307, USA.
 
18
 */
 
19
 
 
20
 
 
21
#ifndef __PLUGINS_ENTRANS_H__
 
22
#define __PLUGINS_ENTRANS_H__
 
23
 
 
24
#include <gst/gst.h>
 
25
#include <gst/video/video.h>
 
26
#include <gst/video/gstvideofilter.h>
 
27
#include <gst/controller/gstcontroller.h>
 
28
#include <liboil/liboil.h>
 
29
 
 
30
#include "gst/video/video-utils.h"
 
31
 
 
32
#define GST_VIDEO_I420_Y_ROWSTRIDE(width) (GST_ROUND_UP_4(width))
 
33
#define GST_VIDEO_I420_U_ROWSTRIDE(width) (GST_ROUND_UP_8(width)/2)
 
34
#define GST_VIDEO_I420_V_ROWSTRIDE(width) (GST_VIDEO_I420_U_ROWSTRIDE(width))
 
35
 
 
36
#define GST_VIDEO_I420_Y_OFFSET(w,h) (0)
 
37
#define GST_VIDEO_I420_U_OFFSET(w,h) (GST_VIDEO_I420_Y_OFFSET(w,h)+(GST_VIDEO_I420_Y_ROWSTRIDE(w)*GST_ROUND_UP_2(h)))
 
38
#define GST_VIDEO_I420_V_OFFSET(w,h) (GST_VIDEO_I420_U_OFFSET(w,h)+(GST_VIDEO_I420_U_ROWSTRIDE(w)*GST_ROUND_UP_2(h)/2))
 
39
 
 
40
#define GST_VIDEO_I420_SIZE(w,h)     (GST_VIDEO_I420_V_OFFSET(w,h)+(GST_VIDEO_I420_V_ROWSTRIDE(w)*GST_ROUND_UP_2(h)/2))
 
41
 
 
42
 
 
43
GType gst_fields_get_type (void);
 
44
GType gst_probe_get_type (void);
 
45
GType gst_dam_get_type (void);
 
46
GType gst_stamp_get_type (void);
 
47
GType gst_shift_get_type (void);
 
48
GType gst_box_scale_get_type (void);
 
49
GType gst_buffer_join_get_type (void);
 
50
 
 
51
 
 
52
#endif /* __PLUGINS_ENTRANS_H__ */