2002-11-22 22:25:03 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
2012-04-07 07:52:09 +00:00
|
|
|
* Copyright (C) 2012 Collabora Ltd.
|
|
|
|
* Author : Edward Hervey <edward@collabora.com>
|
2002-11-22 22:25:03 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-04 00:07:18 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2002-11-22 22:25:03 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __GST_PNGENC_H__
|
|
|
|
#define __GST_PNGENC_H__
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
2012-04-07 07:52:09 +00:00
|
|
|
#include <gst/video/gstvideoencoder.h>
|
2002-11-22 22:25:03 +00:00
|
|
|
#include <png.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2004-03-15 16:32:54 +00:00
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
2002-11-22 22:25:03 +00:00
|
|
|
|
|
|
|
|
2006-06-01 21:07:26 +00:00
|
|
|
#define GST_TYPE_PNGENC (gst_pngenc_get_type())
|
|
|
|
#define GST_PNGENC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PNGENC,GstPngEnc))
|
|
|
|
#define GST_PNGENC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_PNGENC,GstPngEncClass))
|
|
|
|
#define GST_IS_PNGENC(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PNGENC))
|
|
|
|
#define GST_IS_PNGENC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PNGENC))
|
2002-11-22 22:25:03 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
typedef struct _GstPngEnc GstPngEnc;
|
|
|
|
typedef struct _GstPngEncClass GstPngEncClass;
|
2002-11-22 22:25:03 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
struct _GstPngEnc
|
|
|
|
{
|
2012-04-07 07:52:09 +00:00
|
|
|
GstVideoEncoder parent;
|
2002-11-22 22:25:03 +00:00
|
|
|
|
2012-04-07 07:52:09 +00:00
|
|
|
GstVideoCodecState *input_state;
|
2004-03-15 16:32:54 +00:00
|
|
|
GstBuffer *buffer_out;
|
2002-11-22 22:25:03 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
png_structp png_struct_ptr;
|
|
|
|
png_infop png_info_ptr;
|
2002-11-22 22:25:03 +00:00
|
|
|
|
2011-10-16 17:41:28 +00:00
|
|
|
gint png_color_type;
|
2012-03-13 22:08:38 +00:00
|
|
|
gint depth;
|
2005-01-09 16:30:15 +00:00
|
|
|
guint compression_level;
|
2004-07-27 09:59:17 +00:00
|
|
|
|
|
|
|
gboolean snapshot;
|
2004-07-30 09:35:09 +00:00
|
|
|
gboolean newmedia;
|
2004-03-15 16:32:54 +00:00
|
|
|
};
|
2002-11-22 22:25:03 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
struct _GstPngEncClass
|
|
|
|
{
|
2012-04-07 07:52:09 +00:00
|
|
|
GstVideoEncoderClass parent_class;
|
2004-03-15 16:32:54 +00:00
|
|
|
};
|
2002-11-22 22:25:03 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
GType gst_pngenc_get_type(void);
|
2002-11-22 22:25:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2004-03-15 16:32:54 +00:00
|
|
|
#endif /* __cplusplus */
|
2002-11-22 22:25:03 +00:00
|
|
|
|
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
#endif /* __GST_PNGENC_H__ */
|