Commit 7e15bb66 authored by Benjamin Otte's avatar Benjamin Otte
Browse files

theora: Port encoder to new Theora API

Includes ripping out the old buffer copy code to fill up to frame size.
This is not necesary with the new encoder.

https://bugzilla.gnome.org/show_bug.cgi?id=594729
parent 910f67e8
......@@ -6,6 +6,7 @@ libgsttheora_la_SOURCES = theora.c theoraenc.c theoradec.c theoraparse.c
libgsttheora_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) $(THEORA_CFLAGS)
libgsttheora_la_LIBADD = \
$(top_builddir)/gst-libs/gst/tag/libgsttag-$(GST_MAJORMINOR).la \
$(top_builddir)/gst-libs/gst/video/libgstvideo-$(GST_MAJORMINOR).la \
$(GST_LIBS) \
$(THEORA_LIBS)
libgsttheora_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
......
......@@ -21,7 +21,7 @@
#define __GST_THEORAENC_H__
#include <gst/gst.h>
#include <theora/theora.h>
#include <theora/theoraenc.h>
G_BEGIN_DECLS
......@@ -71,9 +71,9 @@ struct _GstTheoraEnc
ogg_stream_state to;
theora_state state;
theora_info info;
theora_comment comment;
th_enc_ctx *encoder;
th_info info;
th_comment comment;
gboolean initialised;
gint video_bitrate; /* bitrate target for Theora video */
......@@ -96,7 +96,6 @@ struct _GstTheoraEnc
guint64 bytes_out;
guint64 granulepos_offset;
guint64 timestamp_offset;
gint granule_shift;
gint speed_level;
};
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment