diff options
author | Mark Nauwelaerts <manauw@skynet.be> | 2006-07-13 11:06:45 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2006-07-13 11:06:45 +0000 |
commit | 676eafc77c2799521925d54ba43b26df72c76b14 (patch) | |
tree | de46f5bf8f22a83cd7a55fa1cdb26507986e22fd /ext/mpeg2enc/gstmpeg2encoder.hh | |
parent | 0e9af4401ec81f82b3b4d7f548a96b2585f1e0e1 (diff) | |
download | gst-plugins-bad-676eafc77c2799521925d54ba43b26df72c76b14.tar.gz gst-plugins-bad-676eafc77c2799521925d54ba43b26df72c76b14.tar.bz2 gst-plugins-bad-676eafc77c2799521925d54ba43b26df72c76b14.zip |
Port mpeg2enc to 0.10 (#343184).
Original commit message from CVS:
Patch by: Mark Nauwelaerts <manauw at skynet be>
* configure.ac:
* ext/Makefile.am:
* ext/mpeg2enc/Makefile.am:
* ext/mpeg2enc/gstmpeg2enc.cc:
* ext/mpeg2enc/gstmpeg2enc.hh:
* ext/mpeg2enc/gstmpeg2encoder.cc:
* ext/mpeg2enc/gstmpeg2encoder.hh:
* ext/mpeg2enc/gstmpeg2encoptions.cc:
* ext/mpeg2enc/gstmpeg2encpicturereader.cc:
* ext/mpeg2enc/gstmpeg2encpicturereader.hh:
* ext/mpeg2enc/gstmpeg2encstreamwriter.cc:
* ext/mpeg2enc/gstmpeg2encstreamwriter.hh:
Port mpeg2enc to 0.10 (#343184).
* tests/check/Makefile.am:
* tests/check/elements/.cvsignore:
* tests/check/elements/mpeg2enc.c:
Add unit test for mpeg2enc.
* tests/icles/.cvsignore:
Ignore pitch-test.
Diffstat (limited to 'ext/mpeg2enc/gstmpeg2encoder.hh')
-rw-r--r-- | ext/mpeg2enc/gstmpeg2encoder.hh | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/ext/mpeg2enc/gstmpeg2encoder.hh b/ext/mpeg2enc/gstmpeg2encoder.hh index df034e6b..94cf5764 100644 --- a/ext/mpeg2enc/gstmpeg2encoder.hh +++ b/ext/mpeg2enc/gstmpeg2encoder.hh @@ -1,5 +1,6 @@ /* GStreamer mpeg2enc (mjpegtools) wrapper * (c) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net> + * (c) 2006 Mark Nauwelaerts <manauw@skynet.be> * * gstmpeg2encoder.hh: gstreamer/mpeg2enc encoder class * @@ -22,6 +23,7 @@ #ifndef __GST_MPEG2ENCODER_H__ #define __GST_MPEG2ENCODER_H__ + #include <mpeg2encoder.hh> #include "gstmpeg2encoptions.hh" #include "gstmpeg2encpicturereader.hh" @@ -29,16 +31,23 @@ class GstMpeg2Encoder : public MPEG2Encoder { public: - GstMpeg2Encoder (GstMpeg2EncOptions *options, - GstPad *sinkpad, - const GstCaps *caps, - GstPad *srcpad); + GstMpeg2Encoder (GstMpeg2EncOptions *options, + GstElement *element, GstCaps *caps); + ~GstMpeg2Encoder (); + + gboolean setup (); + void init (); - /* one image */ - void encodePicture (); + /* process stream */ + void encode (); /* get current output format */ GstCaps *getFormat (); + +private: + GstElement *element; + GstCaps *caps; + gboolean init_done; }; #endif /* __GST_MPEG2ENCODER_H__ */ |