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>
|
|
|
|
|
2020-03-15 17:52:57 +00:00
|
|
|
G_BEGIN_DECLS
|
2002-11-22 22:25:03 +00:00
|
|
|
|
2020-03-15 17:52:57 +00:00
|
|
|
#define GST_TYPE_PNGENC (gst_pngenc_get_type())
|
|
|
|
G_DECLARE_FINAL_TYPE (GstPngEnc, gst_pngenc, GST, PNGENC, GstVideoEncoder)
|
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
|
|
|
|
2021-02-12 09:33:50 +00:00
|
|
|
GST_ELEMENT_REGISTER_DECLARE (pngenc);
|
|
|
|
|
2020-03-15 17:52:57 +00:00
|
|
|
G_END_DECLS
|
2002-11-22 22:25:03 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
#endif /* __GST_PNGENC_H__ */
|