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

« back to all changes in this revision

Viewing changes to gst/transcode/plugin-tc.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 program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License as published by
 
6
 * the Free Software Foundation; either version 2 of the License, or
 
7
 * (at your option) any later version.
 
8
 *
 
9
 * This program 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
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software Foundation, Inc., 
 
16
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1307, USA.
 
17
 */
 
18
 
 
19
 
 
20
#ifndef __PLUGIN_TC_H__
 
21
#define __PLUGIN_TC_H__
 
22
 
 
23
#include <gst/gst.h>
 
24
#include <gst/video/video.h>
 
25
#include <gst/video/gstvideofilter.h>
 
26
#include <gst/controller/gstcontroller.h>
 
27
#include <liboil/liboil.h>
 
28
 
 
29
#include "gst/video/video-utils.h"
 
30
 
 
31
#define GST_VIDEO_I420_Y_ROWSTRIDE(width) (GST_ROUND_UP_4(width))
 
32
#define GST_VIDEO_I420_U_ROWSTRIDE(width) (GST_ROUND_UP_8(width)/2)
 
33
#define GST_VIDEO_I420_V_ROWSTRIDE(width) (GST_VIDEO_I420_U_ROWSTRIDE(width))
 
34
 
 
35
#define GST_VIDEO_I420_Y_OFFSET(w,h) (0)
 
36
#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)))
 
37
#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))
 
38
 
 
39
#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))
 
40
 
 
41
 
 
42
GType gst_dnr_get_type (void);
 
43
GType gst_smooth_get_type (void);
 
44
GType gst_cshift_get_type (void);
 
45
GType gst_csub_get_type (void);
 
46
GType gst_whitebalance_get_type (void);
 
47
GType gst_ivtc_get_type (void);
 
48
GType gst_decimate_get_type (void);
 
49
GType gst_detect_inter_get_type (void);
 
50
GType gst_mask_get_type (void);
 
51
GType gst_rb_swap_get_type (void);
 
52
GType gst_divx_key_get_type (void);
 
53
GType gst_astat_get_type (void);
 
54
 
 
55
#endif /* __PLUGIN_TC_H__ */