|
Packit |
971217 |
/* GStreamer
|
|
Packit |
971217 |
* Copyright (C) 2004 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
|
Packit |
971217 |
* Copyright (c) 2012 Collabora Ltd.
|
|
Packit |
971217 |
* Author : Edward Hervey <edward@collabora.com>
|
|
Packit |
971217 |
* Author : Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
971217 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
971217 |
* License as published by the Free Software Foundation; either
|
|
Packit |
971217 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
971217 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
971217 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
971217 |
* Library General Public License for more details.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
971217 |
* License along with this library; if not, write to the
|
|
Packit |
971217 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit |
971217 |
* Boston, MA 02110-1301, USA.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#ifndef __GST_THEORADEC_H__
|
|
Packit |
971217 |
#define __GST_THEORADEC_H__
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#ifdef HAVE_CONFIG_H
|
|
Packit |
971217 |
# include "config.h"
|
|
Packit |
971217 |
#endif
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#include <gst/gst.h>
|
|
Packit |
971217 |
#include <gst/video/gstvideodecoder.h>
|
|
Packit |
971217 |
#include <theora/theoradec.h>
|
|
Packit |
971217 |
#include <string.h>
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_BEGIN_DECLS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#define GST_TYPE_THEORA_DEC \
|
|
Packit |
971217 |
(gst_theora_dec_get_type())
|
|
Packit |
971217 |
#define GST_THEORA_DEC(obj) \
|
|
Packit |
971217 |
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_THEORA_DEC,GstTheoraDec))
|
|
Packit |
971217 |
#define GST_THEORA_DEC_CLASS(klass) \
|
|
Packit |
971217 |
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_THEORA_DEC,GstTheoraDecClass))
|
|
Packit |
971217 |
#define GST_IS_THEORA_DEC(obj) \
|
|
Packit |
971217 |
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_THEORA_DEC))
|
|
Packit |
971217 |
#define GST_IS_THEORA_DEC_CLASS(klass) \
|
|
Packit |
971217 |
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_THEORA_DEC))
|
|
Packit |
971217 |
|
|
Packit |
971217 |
typedef struct _GstTheoraDec GstTheoraDec;
|
|
Packit |
971217 |
typedef struct _GstTheoraDecClass GstTheoraDecClass;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/**
|
|
Packit |
971217 |
* GstTheoraDec:
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* Opaque object data structure.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
struct _GstTheoraDec
|
|
Packit |
971217 |
{
|
|
Packit |
971217 |
GstVideoDecoder element;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/* theora decoder state */
|
|
Packit |
971217 |
th_dec_ctx *decoder;
|
|
Packit |
971217 |
//theora_state state;
|
|
Packit |
971217 |
th_setup_info *setup;
|
|
Packit |
971217 |
th_info info;
|
|
Packit |
971217 |
th_comment comment;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gboolean have_header;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gboolean need_keyframe;
|
|
Packit |
971217 |
GstVideoCodecState *input_state;
|
|
Packit |
971217 |
GstVideoCodecState *output_state;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/* telemetry debuging options */
|
|
Packit |
971217 |
gint telemetry_mv;
|
|
Packit |
971217 |
gint telemetry_mbmode;
|
|
Packit |
971217 |
gint telemetry_qi;
|
|
Packit |
971217 |
gint telemetry_bits;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gboolean can_crop;
|
|
Packit |
971217 |
GstVideoInfo uncropped_info;
|
|
Packit |
971217 |
};
|
|
Packit |
971217 |
|
|
Packit |
971217 |
struct _GstTheoraDecClass
|
|
Packit |
971217 |
{
|
|
Packit |
971217 |
GstVideoDecoderClass parent_class;
|
|
Packit |
971217 |
};
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GType gst_theora_dec_get_type (void);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_END_DECLS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#endif /* __GST_THEORADEC_H__ */
|