~ubuntu-branches/ubuntu/saucy/gst-libav1.0/saucy-proposed

« back to all changes in this revision

Viewing changes to ext/libav/gstavviddec.h

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2013-07-30 09:00:15 UTC
  • mfrom: (1.1.16) (7.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20130730090015-sc1ou2yssu7q5w4e
Tags: 1.1.3-1
* New upstream development snapshot:
  + debian/control:
    - Build depend on GStreamer and gst-plugins-base >= 1.1.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* GStreamer
 
2
 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
 
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 St, Fifth Floor,
 
17
 * Boston, MA 02110-1301, USA.
 
18
 */
 
19
#ifndef __GST_FFMPEGVIDDEC_H__
 
20
#define __GST_FFMPEGVIDDEC_H__
 
21
 
 
22
G_BEGIN_DECLS
 
23
 
 
24
#include <gst/gst.h>
 
25
#include <gst/video/video.h>
 
26
#include <gst/video/gstvideodecoder.h>
 
27
#include <libavcodec/avcodec.h>
 
28
 
 
29
typedef struct _GstFFMpegVidDec GstFFMpegVidDec;
 
30
struct _GstFFMpegVidDec
 
31
{
 
32
  GstVideoDecoder parent;
 
33
 
 
34
  GstVideoCodecState *input_state;
 
35
  GstVideoCodecState *output_state;
 
36
 
 
37
  /* decoding */
 
38
  AVCodecContext *context;
 
39
  AVFrame *picture;
 
40
  gboolean opened;
 
41
 
 
42
  /* current context */
 
43
  enum PixelFormat ctx_pix_fmt;
 
44
  gint ctx_width;
 
45
  gint ctx_height;
 
46
  gint ctx_par_n;
 
47
  gint ctx_par_d;
 
48
  gint ctx_ticks;
 
49
  gint ctx_time_d;
 
50
  gint ctx_time_n;
 
51
  gint ctx_interlaced;
 
52
  GstBuffer *palette;
 
53
 
 
54
  guint8 *padded;
 
55
  guint padded_size;
 
56
 
 
57
  gboolean current_dr;          /* if direct rendering is enabled */
 
58
 
 
59
  /* some properties */
 
60
  enum AVDiscard skip_frame;
 
61
  gint lowres;
 
62
  gboolean direct_rendering;
 
63
  gboolean debug_mv;
 
64
  int max_threads;
 
65
 
 
66
  gboolean is_realvideo;
 
67
 
 
68
  GstCaps *last_caps;
 
69
};
 
70
 
 
71
typedef struct _GstFFMpegVidDecClass GstFFMpegVidDecClass;
 
72
 
 
73
struct _GstFFMpegVidDecClass
 
74
{
 
75
  GstVideoDecoderClass parent_class;
 
76
 
 
77
  AVCodec *in_plugin;
 
78
};
 
79
 
 
80
#define GST_TYPE_FFMPEGDEC \
 
81
  (gst_ffmpegviddec_get_type())
 
82
#define GST_FFMPEGDEC(obj) \
 
83
  (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_FFMPEGDEC,GstFFMpegVidDec))
 
84
#define GST_FFMPEGVIDDEC_CLASS(klass) \
 
85
  (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_FFMPEGDEC,GstFFMpegVidDecClass))
 
86
#define GST_IS_FFMPEGDEC(obj) \
 
87
  (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_FFMPEGDEC))
 
88
#define GST_IS_FFMPEGVIDDEC_CLASS(klass) \
 
89
  (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_FFMPEGDEC))
 
90
 
 
91
G_END_DECLS
 
92
 
 
93
#endif