2005-06-20 13:07:52 +00:00
|
|
|
/*
|
|
|
|
Copyright (C) 2005 Edward Hervey (edward@fluendo.com)
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
Copyright (C) 2006 Mark Nauwelaerts (manauw@skynet.be)
|
2005-06-20 13:07:52 +00:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program 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 General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
#include <gst/video/video.h>
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
#include <gst/video/gstvideofilter.h>
|
|
|
|
#include <liboil/liboil.h>
|
|
|
|
#include <liboil/liboilcpu.h>
|
|
|
|
#include <liboil/liboilfunction.h>
|
|
|
|
|
2005-06-20 13:07:52 +00:00
|
|
|
#ifdef HAVE_FFMPEG_UNINSTALLED
|
|
|
|
#include <avcodec.h>
|
2006-12-14 23:31:45 +00:00
|
|
|
#include <postprocess.h>
|
2005-06-20 13:07:52 +00:00
|
|
|
#else
|
|
|
|
#include <ffmpeg/avcodec.h>
|
2008-05-13 15:07:25 +00:00
|
|
|
#include <postproc/postprocess.h>
|
2005-06-20 13:07:52 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _PostProcDetails PostProcDetails;
|
|
|
|
|
2008-05-13 15:07:25 +00:00
|
|
|
struct _PostProcDetails
|
|
|
|
{
|
|
|
|
char *shortname;
|
|
|
|
char *longname;
|
|
|
|
char *description;
|
2005-06-20 13:07:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static PostProcDetails filterdetails[] = {
|
2008-05-13 15:07:25 +00:00
|
|
|
{"hb", "hdeblock", "horizontal deblocking filter"},
|
|
|
|
{"vb", "vdeblock", "vertical deblocking filter"},
|
|
|
|
{"h1", "x1hdeblock", "experimental horizontal deblocking filter 1"},
|
|
|
|
{"v1", "x1vdeblock", "experimental vertical deblocking filter 1"},
|
|
|
|
{"ha", "ahdeblock", "another horizontal deblocking filter"},
|
|
|
|
{"va", "avdeblock", "another vertical deblocking filter"},
|
|
|
|
{"dr", "dering", "deringing filter"},
|
|
|
|
{"al", "autolevels", "automatic brightness/contrast filter"},
|
|
|
|
{"lb", "linblenddeint", "linear blend interpolater"},
|
|
|
|
{"li", "linipoldeint", "linear interpolation deinterlacer"},
|
|
|
|
{"ci", "cubicipoldeint", "cubic interpolation deinterlacer"},
|
|
|
|
{"md", "mediandeint", "median deinterlacer"},
|
|
|
|
{"fd", "ffmpegdeint", "ffmpeg deinterlacer"},
|
|
|
|
{"l5", "lowpass5", "FIR lowpass deinterlacer"},
|
|
|
|
{"tn", "tmpnoise", "temporal noise reducer"},
|
|
|
|
{"fq", "forcequant", "force quantizer"},
|
|
|
|
{"de", "default", "default filters"},
|
|
|
|
{NULL, NULL, NULL}
|
2005-06-20 13:07:52 +00:00
|
|
|
};
|
|
|
|
|
2008-05-13 15:07:25 +00:00
|
|
|
typedef struct _GstPostProc GstPostProc;
|
2005-06-20 13:07:52 +00:00
|
|
|
|
2008-05-13 15:07:25 +00:00
|
|
|
struct _GstPostProc
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
{
|
|
|
|
GstVideoFilter element;
|
|
|
|
|
|
|
|
GstPad *sinkpad, *srcpad;
|
|
|
|
guint quality;
|
|
|
|
gint width, height;
|
|
|
|
|
|
|
|
gint ystride, ustride, vstride;
|
|
|
|
gint ysize, usize, vsize;
|
|
|
|
|
|
|
|
pp_mode_t *mode;
|
|
|
|
pp_context_t *context;
|
|
|
|
|
|
|
|
/* props of various filters */
|
|
|
|
gboolean autoq;
|
|
|
|
guint scope;
|
|
|
|
/* though not all needed at once,
|
|
|
|
* this avoids union or ugly re-use for simplicity */
|
|
|
|
gint diff, flat;
|
|
|
|
gint t1, t2, t3;
|
|
|
|
gboolean range;
|
|
|
|
gint quant;
|
|
|
|
|
|
|
|
/* argument string for pp */
|
|
|
|
gchar *cargs, *args;
|
|
|
|
};
|
2005-06-20 13:07:52 +00:00
|
|
|
|
2008-05-13 15:07:25 +00:00
|
|
|
typedef struct _GstPostProcClass GstPostProcClass;
|
2005-06-20 13:07:52 +00:00
|
|
|
|
2008-05-13 15:07:25 +00:00
|
|
|
struct _GstPostProcClass
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
{
|
|
|
|
GstVideoFilterClass parent_class;
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
gint filterid;
|
2005-06-20 13:07:52 +00:00
|
|
|
};
|
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
/* properties for the various pp filters */
|
|
|
|
/* common props */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
PROP_0,
|
|
|
|
PROP_QUALITY,
|
|
|
|
PROP_AUTOQ,
|
|
|
|
PROP_SCOPE,
|
|
|
|
PROP_MAX
|
|
|
|
};
|
|
|
|
|
|
|
|
/* possible filter scopes */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
SCOPE_BOTH,
|
|
|
|
SCOPE_CHROMA,
|
|
|
|
SCOPE_LUMA
|
|
|
|
};
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
#define DEFAULT_QUALITY PP_QUALITY_MAX
|
|
|
|
#define DEFAULT_AUTOQ FALSE
|
|
|
|
#define DEFAULT_SCOPE SCOPE_BOTH
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
/* deblocking props */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
PROP_DIFF = PROP_MAX,
|
|
|
|
PROP_FLAT
|
2005-06-20 13:07:52 +00:00
|
|
|
};
|
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
#define DEFAULT_DIFF -1
|
|
|
|
#define DEFAULT_FLAT -1
|
|
|
|
|
|
|
|
/* denoise props */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
PROP_T1 = PROP_MAX,
|
|
|
|
PROP_T2,
|
|
|
|
PROP_T3
|
|
|
|
};
|
|
|
|
|
|
|
|
#define DEFAULT_T1 -1
|
|
|
|
#define DEFAULT_T2 -1
|
|
|
|
#define DEFAULT_T3 -1
|
|
|
|
|
|
|
|
/* autolevels */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
PROP_RANGE = PROP_MAX
|
2005-06-20 13:07:52 +00:00
|
|
|
};
|
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
#define DEFAULT_RANGE FALSE
|
|
|
|
|
|
|
|
/* forceq props */
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
PROP_QUANT = PROP_MAX
|
|
|
|
};
|
|
|
|
|
|
|
|
#define DEFAULT_QUANT -1
|
|
|
|
|
|
|
|
|
2005-06-20 13:07:52 +00:00
|
|
|
/* hashtable, key = gtype, value = filterdetails index */
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
static GHashTable *global_plugins;
|
2005-06-20 13:07:52 +00:00
|
|
|
|
|
|
|
/* TODO : add support for the other format supported by libpostproc */
|
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
static GstStaticPadTemplate gst_post_proc_src_template =
|
2005-06-20 13:07:52 +00:00
|
|
|
GST_STATIC_PAD_TEMPLATE ("src",
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
GST_PAD_SRC,
|
|
|
|
GST_PAD_ALWAYS,
|
2008-05-06 14:31:22 +00:00
|
|
|
GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("{ IYUV, I420, YV12, Y42B, Y41B }"))
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static GstStaticPadTemplate gst_post_proc_sink_template =
|
2005-06-20 13:07:52 +00:00
|
|
|
GST_STATIC_PAD_TEMPLATE ("sink",
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
GST_PAD_SINK,
|
|
|
|
GST_PAD_ALWAYS,
|
2008-05-06 14:31:22 +00:00
|
|
|
GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("{ IYUV, I420, YV12, Y42B, Y41B }"))
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
);
|
|
|
|
|
2005-06-25 21:19:33 +00:00
|
|
|
GST_DEBUG_CATEGORY (postproc_debug);
|
|
|
|
#define GST_CAT_DEFAULT postproc_debug
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
static void gst_post_proc_class_init (GstPostProcClass * klass);
|
|
|
|
static void gst_post_proc_base_init (GstPostProcClass * klass);
|
|
|
|
static void gst_post_proc_init (GstPostProc * pproc);
|
|
|
|
static void gst_post_proc_dispose (GObject * object);
|
|
|
|
|
2008-05-13 15:07:25 +00:00
|
|
|
static gboolean gst_post_proc_setcaps (GstBaseTransform * btrans,
|
|
|
|
GstCaps * incaps, GstCaps * outcaps);
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
static GstFlowReturn gst_post_proc_transform_ip (GstBaseTransform * btrans,
|
|
|
|
GstBuffer * in);
|
|
|
|
|
|
|
|
/* static GstStateChangeReturn gst_post_proc_change_state (GstElement * element, */
|
|
|
|
/* GstStateChange transition); */
|
|
|
|
|
|
|
|
static void gst_post_proc_set_property (GObject * object,
|
2008-05-13 15:07:25 +00:00
|
|
|
guint prop_id, const GValue * value, GParamSpec * pspec);
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
static void gst_post_proc_get_property (GObject * object,
|
2008-05-13 15:07:25 +00:00
|
|
|
guint prop_id, GValue * value, GParamSpec * pspec);
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
static void gst_post_proc_deblock_set_property (GObject * object,
|
2008-05-13 15:07:25 +00:00
|
|
|
guint prop_id, const GValue * value, GParamSpec * pspec);
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
static void gst_post_proc_deblock_get_property (GObject * object,
|
2008-05-13 15:07:25 +00:00
|
|
|
guint prop_id, GValue * value, GParamSpec * pspec);
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
static void gst_post_proc_autolevels_set_property (GObject * object,
|
2008-05-13 15:07:25 +00:00
|
|
|
guint prop_id, const GValue * value, GParamSpec * pspec);
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
static void gst_post_proc_autolevels_get_property (GObject * object,
|
2008-05-13 15:07:25 +00:00
|
|
|
guint prop_id, GValue * value, GParamSpec * pspec);
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
static void gst_post_proc_tmpnoise_set_property (GObject * object,
|
2008-05-13 15:07:25 +00:00
|
|
|
guint prop_id, const GValue * value, GParamSpec * pspec);
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
static void gst_post_proc_tmpnoise_get_property (GObject * object,
|
2008-05-13 15:07:25 +00:00
|
|
|
guint prop_id, GValue * value, GParamSpec * pspec);
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
static void gst_post_proc_forcequant_set_property (GObject * object,
|
2008-05-13 15:07:25 +00:00
|
|
|
guint prop_id, const GValue * value, GParamSpec * pspec);
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
static void gst_post_proc_forcequant_get_property (GObject * object,
|
2008-05-13 15:07:25 +00:00
|
|
|
guint prop_id, GValue * value, GParamSpec * pspec);
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
|
|
|
|
static GstElementClass *parent_class = NULL;
|
|
|
|
|
|
|
|
#define GST_TYPE_PP_SCOPE (gst_pp_scope_get_type())
|
|
|
|
static GType
|
|
|
|
gst_pp_scope_get_type (void)
|
|
|
|
{
|
|
|
|
static GType pp_scope_type = 0;
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
static const GEnumValue pp_scope[] = {
|
|
|
|
{0, "Chrominance and Luminance filtering", "both"},
|
|
|
|
{1, "Chrominance only filtering", "chroma"},
|
|
|
|
{2, "Luminance only filtering", "luma"},
|
|
|
|
{0, NULL, NULL},
|
|
|
|
};
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
if (!pp_scope_type) {
|
2008-05-13 15:07:25 +00:00
|
|
|
pp_scope_type = g_enum_register_static ("GstPostProcPPScope", pp_scope);
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
}
|
|
|
|
return pp_scope_type;
|
|
|
|
}
|
2005-06-20 13:07:52 +00:00
|
|
|
|
|
|
|
#ifndef GST_DISABLE_GST_DEBUG
|
|
|
|
static void
|
2008-05-13 15:07:25 +00:00
|
|
|
gst_ffmpeg_log_callback (void *ptr, int level, const char *fmt, va_list vl)
|
2005-06-20 13:07:52 +00:00
|
|
|
{
|
|
|
|
GstDebugLevel gst_level;
|
|
|
|
|
|
|
|
switch (level) {
|
|
|
|
case AV_LOG_QUIET:
|
|
|
|
gst_level = GST_LEVEL_NONE;
|
|
|
|
break;
|
|
|
|
case AV_LOG_ERROR:
|
|
|
|
gst_level = GST_LEVEL_ERROR;
|
|
|
|
break;
|
|
|
|
case AV_LOG_INFO:
|
|
|
|
gst_level = GST_LEVEL_INFO;
|
|
|
|
break;
|
|
|
|
case AV_LOG_DEBUG:
|
|
|
|
gst_level = GST_LEVEL_DEBUG;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
gst_level = GST_LEVEL_INFO;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2005-06-25 21:19:33 +00:00
|
|
|
gst_debug_log_valist (postproc_debug, gst_level, "", "", 0, NULL, fmt, vl);
|
2005-06-20 13:07:52 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define ROUND_UP_2(x) (((x)+1)&~1)
|
|
|
|
#define ROUND_UP_4(x) (((x)+3)&~3)
|
|
|
|
#define ROUND_UP_8(x) (((x)+7)&~7)
|
|
|
|
|
|
|
|
static void
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
change_context (GstPostProc * postproc, gint width, gint height)
|
2005-06-20 13:07:52 +00:00
|
|
|
{
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
guint flags;
|
|
|
|
gint ppflags;
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
GST_DEBUG_OBJECT (postproc, "change_context, width:%d, height:%d",
|
|
|
|
width, height);
|
2005-06-20 13:07:52 +00:00
|
|
|
|
|
|
|
if ((width != postproc->width) && (height != postproc->height)) {
|
|
|
|
if (postproc->context)
|
|
|
|
pp_free_context (postproc->context);
|
2008-05-13 15:07:25 +00:00
|
|
|
flags = oil_cpu_get_flags ();
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
ppflags = (flags & OIL_IMPL_FLAG_MMX ? PP_CPU_CAPS_MMX : 0)
|
|
|
|
| (flags & OIL_IMPL_FLAG_MMXEXT ? PP_CPU_CAPS_MMX2 : 0)
|
|
|
|
| (flags & OIL_IMPL_FLAG_3DNOW ? PP_CPU_CAPS_3DNOW : 0)
|
|
|
|
| (flags & OIL_IMPL_FLAG_ALTIVEC ? PP_CPU_CAPS_ALTIVEC : 0);
|
2005-06-20 13:07:52 +00:00
|
|
|
postproc->context = pp_get_context (width, height, PP_FORMAT_420 | ppflags);
|
|
|
|
postproc->width = width;
|
|
|
|
postproc->height = height;
|
|
|
|
postproc->ystride = ROUND_UP_4 (width);
|
|
|
|
postproc->ustride = ROUND_UP_8 (width) / 2;
|
|
|
|
postproc->vstride = ROUND_UP_8 (postproc->ystride) / 2;
|
|
|
|
postproc->ysize = postproc->ystride * ROUND_UP_2 (height);
|
|
|
|
postproc->usize = postproc->ustride * ROUND_UP_2 (height) / 2;
|
|
|
|
postproc->vsize = postproc->vstride * ROUND_UP_2 (height) / 2;
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
GST_DEBUG_OBJECT (postproc, "new strides are (YUV) : %d %d %d",
|
|
|
|
postproc->ystride, postproc->ustride, postproc->vstride);
|
2005-06-20 13:07:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
/* append app to *base, and places result in *base */
|
|
|
|
/* all input strings are free'd */
|
|
|
|
static void inline
|
|
|
|
append (gchar ** base, gchar * app)
|
|
|
|
{
|
|
|
|
gchar *res;
|
|
|
|
gchar *sep;
|
|
|
|
|
|
|
|
if (**base && *app)
|
|
|
|
sep = ":";
|
|
|
|
else
|
|
|
|
sep = "";
|
|
|
|
res = g_strconcat (*base, sep, app, NULL);
|
|
|
|
g_free (*base);
|
|
|
|
g_free (app);
|
|
|
|
*base = res;
|
|
|
|
}
|
|
|
|
|
2005-06-20 13:07:52 +00:00
|
|
|
static void
|
2008-05-13 15:07:25 +00:00
|
|
|
change_mode (GstPostProc * postproc)
|
2005-06-20 13:07:52 +00:00
|
|
|
{
|
2008-05-13 15:07:25 +00:00
|
|
|
GstPostProcClass *klass;
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
gchar *name;
|
|
|
|
|
|
|
|
klass = (GstPostProcClass *) G_OBJECT_GET_CLASS (G_OBJECT (postproc));
|
2005-06-20 13:07:52 +00:00
|
|
|
|
|
|
|
if (postproc->mode)
|
|
|
|
pp_free_mode (postproc->mode);
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
|
|
|
|
name = g_strdup (filterdetails[klass->filterid].shortname);
|
|
|
|
append (&name, g_strdup (postproc->cargs));
|
|
|
|
append (&name, g_strdup (postproc->args));
|
|
|
|
GST_DEBUG_OBJECT (postproc, "requesting pp %s", name);
|
|
|
|
postproc->mode = pp_get_mode_by_name_and_quality (name, postproc->quality);
|
|
|
|
g_free (name);
|
|
|
|
|
|
|
|
g_assert (postproc->mode);
|
2005-06-20 13:07:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
gst_post_proc_base_init (GstPostProcClass * klass)
|
2005-06-20 13:07:52 +00:00
|
|
|
{
|
|
|
|
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
|
|
|
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
|
|
|
|
GstElementDetails details;
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
gint ppidx;
|
|
|
|
|
2005-06-20 13:07:52 +00:00
|
|
|
ppidx = GPOINTER_TO_INT (g_hash_table_lookup (global_plugins,
|
2008-05-13 15:07:25 +00:00
|
|
|
GINT_TO_POINTER (G_OBJECT_CLASS_TYPE (gobject_class))));
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
details.longname = g_strdup_printf ("LibPostProc %s filter",
|
|
|
|
filterdetails[ppidx].longname);
|
2005-06-20 13:07:52 +00:00
|
|
|
details.klass = "Filter/Video";
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
details.description = g_strdup_printf ("LibPostProc %s",
|
|
|
|
filterdetails[ppidx].description);
|
2008-05-13 15:07:25 +00:00
|
|
|
details.author =
|
|
|
|
"Edward Hervey <edward@fluendo.com>, Mark Nauwelaerts (manauw@skynet.be)";
|
2005-06-20 13:07:52 +00:00
|
|
|
gst_element_class_set_details (element_class, &details);
|
2008-05-13 15:07:25 +00:00
|
|
|
g_free (details.longname);
|
|
|
|
g_free (details.description);
|
2005-06-20 13:07:52 +00:00
|
|
|
|
2008-05-13 15:07:25 +00:00
|
|
|
gst_element_class_add_pad_template (element_class,
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
gst_static_pad_template_get (&gst_post_proc_src_template));
|
|
|
|
gst_element_class_add_pad_template (element_class,
|
|
|
|
gst_static_pad_template_get (&gst_post_proc_sink_template));
|
2005-06-20 13:07:52 +00:00
|
|
|
|
|
|
|
klass->filterid = ppidx;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
gst_post_proc_class_init (GstPostProcClass * klass)
|
2005-06-20 13:07:52 +00:00
|
|
|
{
|
2008-05-13 15:07:25 +00:00
|
|
|
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
/* GstElementClass *gstelement_class = GST_ELEMENT_CLASS (klass); */
|
|
|
|
GstBaseTransformClass *btrans_class = GST_BASE_TRANSFORM_CLASS (klass);
|
|
|
|
gint ppidx;
|
2005-06-20 13:07:52 +00:00
|
|
|
|
|
|
|
parent_class = g_type_class_peek_parent (klass);
|
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_post_proc_set_property);
|
|
|
|
gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_post_proc_get_property);
|
|
|
|
|
|
|
|
/* common props */
|
|
|
|
g_object_class_install_property (gobject_class, PROP_QUALITY,
|
2005-06-20 13:07:52 +00:00
|
|
|
g_param_spec_uint ("quality", "Quality",
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
"Quality level of filter (higher is better)",
|
|
|
|
0, PP_QUALITY_MAX, DEFAULT_QUALITY, G_PARAM_READWRITE));
|
|
|
|
|
|
|
|
g_object_class_install_property (gobject_class, PROP_AUTOQ,
|
|
|
|
g_param_spec_boolean ("autoq", "AutoQ",
|
|
|
|
"Automatically switch filter off if CPU too slow",
|
|
|
|
DEFAULT_AUTOQ, G_PARAM_READWRITE));
|
|
|
|
|
|
|
|
g_object_class_install_property (gobject_class, PROP_SCOPE,
|
|
|
|
g_param_spec_enum ("scope", "Scope",
|
|
|
|
"Operate on chrominance and/or luminance",
|
|
|
|
GST_TYPE_PP_SCOPE, DEFAULT_SCOPE, G_PARAM_READWRITE));
|
|
|
|
|
|
|
|
ppidx = klass->filterid;
|
|
|
|
/* per filter props */
|
|
|
|
if (g_strrstr (filterdetails[ppidx].longname, "deblock") != NULL &&
|
|
|
|
filterdetails[ppidx].longname[0] != 'x') {
|
|
|
|
/* deblocking */
|
|
|
|
g_object_class_install_property (gobject_class, PROP_DIFF,
|
|
|
|
g_param_spec_int ("difference", "Difference Factor",
|
|
|
|
"Higher values mean more deblocking (-1 = pp default)",
|
|
|
|
-1, G_MAXINT, DEFAULT_DIFF, G_PARAM_READWRITE));
|
|
|
|
|
|
|
|
g_object_class_install_property (gobject_class, PROP_FLAT,
|
|
|
|
g_param_spec_int ("flatness", "Flatness Threshold",
|
|
|
|
"Lower values mean more deblocking (-1 = pp default)",
|
|
|
|
-1, G_MAXINT, DEFAULT_FLAT, G_PARAM_READWRITE));
|
|
|
|
|
|
|
|
gobject_class->set_property =
|
|
|
|
GST_DEBUG_FUNCPTR (gst_post_proc_deblock_set_property);
|
|
|
|
gobject_class->get_property =
|
|
|
|
GST_DEBUG_FUNCPTR (gst_post_proc_deblock_get_property);
|
|
|
|
} else if (!(g_ascii_strcasecmp (filterdetails[ppidx].shortname, "tn"))) {
|
|
|
|
/* tmpnoise */
|
|
|
|
g_object_class_install_property (gobject_class, PROP_T1,
|
|
|
|
g_param_spec_int ("threshold-1", "Threshold One",
|
|
|
|
"Higher values mean stronger filtering (-1 = pp default)",
|
|
|
|
-1, G_MAXINT, DEFAULT_T1, G_PARAM_READWRITE));
|
|
|
|
|
|
|
|
g_object_class_install_property (gobject_class, PROP_T2,
|
|
|
|
g_param_spec_int ("threshold-2", "Threshold Two",
|
|
|
|
"Higher values mean stronger filtering (-1 = pp default)",
|
|
|
|
-1, G_MAXINT, DEFAULT_T2, G_PARAM_READWRITE));
|
|
|
|
|
|
|
|
g_object_class_install_property (gobject_class, PROP_T3,
|
|
|
|
g_param_spec_int ("threshold-3", "Threshold Three",
|
|
|
|
"Higher values mean stronger filtering (-1 = pp default)",
|
|
|
|
-1, G_MAXINT, DEFAULT_T3, G_PARAM_READWRITE));
|
|
|
|
|
|
|
|
gobject_class->set_property =
|
|
|
|
GST_DEBUG_FUNCPTR (gst_post_proc_tmpnoise_set_property);
|
|
|
|
gobject_class->get_property =
|
|
|
|
GST_DEBUG_FUNCPTR (gst_post_proc_tmpnoise_get_property);
|
|
|
|
} else if (!(g_ascii_strcasecmp (filterdetails[ppidx].shortname, "al"))) {
|
|
|
|
/* autolevels */
|
|
|
|
g_object_class_install_property (gobject_class, PROP_RANGE,
|
|
|
|
g_param_spec_boolean ("fully-range", "Fully Range",
|
2008-05-13 15:07:25 +00:00
|
|
|
"Stretch luminance to (0-255)", DEFAULT_RANGE, G_PARAM_READWRITE));
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
|
|
|
|
gobject_class->set_property =
|
|
|
|
GST_DEBUG_FUNCPTR (gst_post_proc_autolevels_set_property);
|
|
|
|
gobject_class->get_property =
|
|
|
|
GST_DEBUG_FUNCPTR (gst_post_proc_autolevels_get_property);
|
|
|
|
|
|
|
|
} else if (!(g_ascii_strcasecmp (filterdetails[ppidx].shortname, "fq"))) {
|
|
|
|
/* forcequant */
|
|
|
|
g_object_class_install_property (gobject_class, PROP_QUANT,
|
|
|
|
g_param_spec_int ("quantizer", "Force Quantizer",
|
2008-05-13 15:07:25 +00:00
|
|
|
"Quantizer to use (-1 = pp default)",
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
-1, G_MAXINT, DEFAULT_QUANT, G_PARAM_READWRITE));
|
|
|
|
|
|
|
|
gobject_class->set_property =
|
|
|
|
GST_DEBUG_FUNCPTR (gst_post_proc_forcequant_set_property);
|
|
|
|
gobject_class->get_property =
|
|
|
|
GST_DEBUG_FUNCPTR (gst_post_proc_forcequant_get_property);
|
|
|
|
}
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_post_proc_dispose);
|
|
|
|
btrans_class->set_caps = GST_DEBUG_FUNCPTR (gst_post_proc_setcaps);
|
|
|
|
btrans_class->transform_ip = GST_DEBUG_FUNCPTR (gst_post_proc_transform_ip);
|
2005-06-20 13:07:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
gst_post_proc_init (GstPostProc * postproc)
|
2005-06-20 13:07:52 +00:00
|
|
|
{
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
/* properties */
|
|
|
|
postproc->quality = DEFAULT_QUALITY;
|
|
|
|
postproc->autoq = DEFAULT_AUTOQ;
|
|
|
|
postproc->scope = DEFAULT_SCOPE;
|
|
|
|
postproc->diff = DEFAULT_DIFF;
|
|
|
|
postproc->flat = DEFAULT_FLAT;
|
|
|
|
postproc->quant = DEFAULT_QUANT;
|
|
|
|
postproc->t1 = DEFAULT_T1;
|
|
|
|
postproc->t2 = DEFAULT_T2;
|
|
|
|
postproc->t3 = DEFAULT_T3;
|
|
|
|
postproc->range = DEFAULT_RANGE;
|
2005-06-20 13:07:52 +00:00
|
|
|
postproc->mode = NULL;
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
postproc->cargs = g_strdup ("");
|
|
|
|
postproc->args = g_strdup ("");
|
2005-06-20 13:07:52 +00:00
|
|
|
change_mode (postproc);
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
|
2005-06-20 13:07:52 +00:00
|
|
|
postproc->context = NULL;
|
|
|
|
postproc->width = 0;
|
|
|
|
postproc->height = 0;
|
|
|
|
postproc->ystride = 0;
|
|
|
|
postproc->ustride = 0;
|
|
|
|
postproc->vstride = 0;
|
|
|
|
postproc->ysize = 0;
|
|
|
|
postproc->usize = 0;
|
|
|
|
postproc->vsize = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
gst_post_proc_dispose (GObject * object)
|
2005-06-20 13:07:52 +00:00
|
|
|
{
|
2008-05-13 15:07:25 +00:00
|
|
|
GstPostProc *postproc = (GstPostProc *) object;
|
2005-06-20 13:07:52 +00:00
|
|
|
|
|
|
|
if (postproc->mode)
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
pp_free_mode (postproc->mode);
|
2005-06-20 13:07:52 +00:00
|
|
|
if (postproc->context)
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
pp_free_context (postproc->context);
|
|
|
|
|
|
|
|
g_free (postproc->cargs);
|
|
|
|
postproc->cargs = NULL;
|
|
|
|
g_free (postproc->args);
|
|
|
|
postproc->args = NULL;
|
|
|
|
|
|
|
|
G_OBJECT_CLASS (parent_class)->dispose (object);
|
2005-06-20 13:07:52 +00:00
|
|
|
}
|
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
static gboolean
|
|
|
|
gst_post_proc_setcaps (GstBaseTransform * btrans, GstCaps * incaps,
|
|
|
|
GstCaps * outcaps)
|
2005-06-20 13:07:52 +00:00
|
|
|
{
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
GstPostProc *postproc = (GstPostProc *) (btrans);
|
|
|
|
GstStructure *structure;
|
|
|
|
gboolean ret = FALSE;
|
|
|
|
gint width, height;
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
structure = gst_caps_get_structure (incaps, 0);
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
if (gst_structure_get_int (structure, "width", &width) &&
|
|
|
|
gst_structure_get_int (structure, "height", &height)) {
|
|
|
|
change_context (postproc, width, height);
|
|
|
|
ret = TRUE;
|
|
|
|
}
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
return ret;
|
|
|
|
}
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
static GstFlowReturn
|
|
|
|
gst_post_proc_transform_ip (GstBaseTransform * btrans, GstBuffer * in)
|
|
|
|
{
|
|
|
|
GstPostProc *postproc;
|
|
|
|
gint stride[3];
|
|
|
|
guint8 *outplane[3];
|
2008-04-03 09:32:46 +00:00
|
|
|
guint8 *inplane[3];
|
2005-06-20 13:07:52 +00:00
|
|
|
|
2008-05-13 15:07:25 +00:00
|
|
|
/* postprocess the buffer ! */
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
postproc = (GstPostProc *) btrans;
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
stride[0] = postproc->ystride;
|
|
|
|
stride[1] = postproc->ustride;
|
|
|
|
stride[2] = postproc->vstride;
|
2008-04-03 09:32:46 +00:00
|
|
|
outplane[0] = inplane[0] = GST_BUFFER_DATA (in);
|
|
|
|
outplane[1] = inplane[1] = outplane[0] + postproc->ysize;
|
|
|
|
outplane[2] = inplane[2] = outplane[1] + postproc->usize;
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
|
|
|
|
GST_DEBUG_OBJECT (postproc, "calling pp_postprocess, width:%d, height:%d",
|
|
|
|
postproc->width, postproc->height);
|
|
|
|
|
2008-05-13 15:07:25 +00:00
|
|
|
pp_postprocess ((const guint8 **) inplane, stride, outplane, stride,
|
|
|
|
postproc->width, postproc->height, (int8_t *) "", 0,
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
postproc->mode, postproc->context, 0);
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
return GST_FLOW_OK;
|
2005-06-20 13:07:52 +00:00
|
|
|
}
|
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
|
2005-06-20 13:07:52 +00:00
|
|
|
static void
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
gst_post_proc_set_property (GObject * object, guint prop_id,
|
2008-05-13 15:07:25 +00:00
|
|
|
const GValue * value, GParamSpec * pspec)
|
2005-06-20 13:07:52 +00:00
|
|
|
{
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
GstPostProc *postproc = (GstPostProc *) object;
|
|
|
|
gint quality;
|
|
|
|
gchar *args;
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
switch (prop_id) {
|
|
|
|
case PROP_QUALITY:
|
|
|
|
quality = g_value_get_uint (value);
|
2008-05-13 15:07:25 +00:00
|
|
|
break;
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
case PROP_AUTOQ:
|
|
|
|
postproc->autoq = g_value_get_boolean (value);
|
|
|
|
break;
|
|
|
|
case PROP_SCOPE:
|
|
|
|
postproc->scope = g_value_get_enum (value);
|
|
|
|
break;
|
2008-05-13 15:07:25 +00:00
|
|
|
default:
|
|
|
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
|
|
break;
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
}
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
/* construct common args */
|
|
|
|
args = postproc->autoq ? g_strdup ("autoq") : g_strdup ("");
|
|
|
|
switch (postproc->scope) {
|
|
|
|
case SCOPE_BOTH:
|
|
|
|
break;
|
|
|
|
case SCOPE_CHROMA:
|
|
|
|
append (&args, g_strdup ("noluma"));
|
|
|
|
break;
|
|
|
|
case SCOPE_LUMA:
|
|
|
|
append (&args, g_strdup ("nochrom"));
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
g_assert_not_reached ();
|
|
|
|
break;
|
|
|
|
}
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
g_free (postproc->cargs);
|
|
|
|
postproc->cargs = args;
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
change_mode (postproc);
|
|
|
|
}
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
static void
|
|
|
|
gst_post_proc_get_property (GObject * object, guint prop_id,
|
2008-05-13 15:07:25 +00:00
|
|
|
GValue * value, GParamSpec * pspec)
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
{
|
|
|
|
GstPostProc *postproc = (GstPostProc *) object;
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
switch (prop_id) {
|
|
|
|
case PROP_QUALITY:
|
|
|
|
g_value_set_uint (value, postproc->quality);
|
|
|
|
break;
|
|
|
|
case PROP_AUTOQ:
|
|
|
|
g_value_set_boolean (value, postproc->autoq);
|
|
|
|
break;
|
|
|
|
case PROP_SCOPE:
|
|
|
|
g_value_set_enum (value, postproc->scope);
|
|
|
|
break;
|
|
|
|
default:
|
2008-05-13 15:07:25 +00:00
|
|
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
|
|
break;
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
}
|
2005-06-20 13:07:52 +00:00
|
|
|
}
|
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
|
|
|
|
static void
|
|
|
|
gst_post_proc_deblock_set_property (GObject * object, guint prop_id,
|
2008-05-13 15:07:25 +00:00
|
|
|
const GValue * value, GParamSpec * pspec)
|
2005-06-20 13:07:52 +00:00
|
|
|
{
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
GstPostProc *postproc = (GstPostProc *) object;
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
switch (prop_id) {
|
|
|
|
case PROP_DIFF:
|
|
|
|
postproc->diff = g_value_get_int (value);
|
|
|
|
break;
|
|
|
|
case PROP_FLAT:
|
|
|
|
postproc->flat = g_value_get_int (value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
gst_post_proc_set_property (object, prop_id, value, pspec);
|
|
|
|
break;
|
2005-06-20 13:07:52 +00:00
|
|
|
}
|
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
/* construct args */
|
|
|
|
g_free (postproc->args);
|
|
|
|
if (postproc->diff >= 0) {
|
|
|
|
postproc->args = g_strdup_printf ("%d", postproc->diff);
|
|
|
|
if (postproc->flat >= 0)
|
|
|
|
append (&postproc->args, g_strdup_printf ("%d", postproc->flat));
|
|
|
|
} else
|
|
|
|
postproc->args = g_strdup ("");
|
|
|
|
change_mode (postproc);
|
|
|
|
}
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
static void
|
2008-05-13 15:07:25 +00:00
|
|
|
gst_post_proc_deblock_get_property (GObject * object, guint prop_id,
|
|
|
|
GValue * value, GParamSpec * pspec)
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
{
|
|
|
|
GstPostProc *postproc = (GstPostProc *) object;
|
|
|
|
|
|
|
|
switch (prop_id) {
|
|
|
|
case PROP_DIFF:
|
|
|
|
g_value_set_int (value, postproc->diff);
|
|
|
|
break;
|
|
|
|
case PROP_FLAT:
|
|
|
|
g_value_set_int (value, postproc->flat);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
gst_post_proc_get_property (object, prop_id, value, pspec);
|
|
|
|
break;
|
|
|
|
}
|
2005-06-20 13:07:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
gst_post_proc_tmpnoise_set_property (GObject * object, guint prop_id,
|
2008-05-13 15:07:25 +00:00
|
|
|
const GValue * value, GParamSpec * pspec)
|
2005-06-20 13:07:52 +00:00
|
|
|
{
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
GstPostProc *postproc = (GstPostProc *) object;
|
2005-06-20 13:07:52 +00:00
|
|
|
|
|
|
|
switch (prop_id) {
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
case PROP_T1:
|
|
|
|
postproc->t1 = g_value_get_int (value);
|
|
|
|
break;
|
|
|
|
case PROP_T2:
|
|
|
|
postproc->t2 = g_value_get_int (value);
|
|
|
|
break;
|
|
|
|
case PROP_T3:
|
|
|
|
postproc->t3 = g_value_get_int (value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
gst_post_proc_set_property (object, prop_id, value, pspec);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* construct args */
|
|
|
|
g_free (postproc->args);
|
|
|
|
if (postproc->t1 >= 0) {
|
|
|
|
postproc->args = g_strdup_printf ("%d", postproc->t1);
|
|
|
|
if (postproc->t2 >= 0) {
|
|
|
|
append (&postproc->args, g_strdup_printf ("%d", postproc->t2));
|
|
|
|
if (postproc->t3 >= 0)
|
|
|
|
append (&postproc->args, g_strdup_printf ("%d", postproc->t3));
|
2005-06-20 13:07:52 +00:00
|
|
|
}
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
} else
|
|
|
|
postproc->args = g_strdup ("");
|
|
|
|
change_mode (postproc);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
gst_post_proc_tmpnoise_get_property (GObject * object, guint prop_id,
|
2008-05-13 15:07:25 +00:00
|
|
|
GValue * value, GParamSpec * pspec)
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
{
|
|
|
|
GstPostProc *postproc = (GstPostProc *) object;
|
|
|
|
|
|
|
|
switch (prop_id) {
|
|
|
|
case PROP_T1:
|
|
|
|
g_value_set_int (value, postproc->t1);
|
|
|
|
break;
|
|
|
|
case PROP_T2:
|
|
|
|
g_value_set_int (value, postproc->t2);
|
|
|
|
break;
|
|
|
|
case PROP_T3:
|
|
|
|
g_value_set_int (value, postproc->t3);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
gst_post_proc_get_property (object, prop_id, value, pspec);
|
|
|
|
break;
|
2005-06-20 13:07:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
gst_post_proc_autolevels_set_property (GObject * object, guint prop_id,
|
2008-05-13 15:07:25 +00:00
|
|
|
const GValue * value, GParamSpec * pspec)
|
2005-06-20 13:07:52 +00:00
|
|
|
{
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
GstPostProc *postproc = (GstPostProc *) object;
|
2005-06-20 13:07:52 +00:00
|
|
|
|
|
|
|
switch (prop_id) {
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
case PROP_RANGE:
|
|
|
|
postproc->range = g_value_get_boolean (value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
gst_post_proc_set_property (object, prop_id, value, pspec);
|
|
|
|
break;
|
2005-06-20 13:07:52 +00:00
|
|
|
}
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
|
|
|
|
/* construct args */
|
|
|
|
g_free (postproc->args);
|
|
|
|
if (postproc->range)
|
|
|
|
postproc->args = g_strdup ("f");
|
|
|
|
else
|
|
|
|
postproc->args = g_strdup ("");
|
|
|
|
change_mode (postproc);
|
2005-06-20 13:07:52 +00:00
|
|
|
}
|
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
static void
|
|
|
|
gst_post_proc_autolevels_get_property (GObject * object, guint prop_id,
|
2008-05-13 15:07:25 +00:00
|
|
|
GValue * value, GParamSpec * pspec)
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
{
|
|
|
|
GstPostProc *postproc = (GstPostProc *) object;
|
|
|
|
|
|
|
|
switch (prop_id) {
|
|
|
|
case PROP_RANGE:
|
|
|
|
g_value_set_boolean (value, postproc->range);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
gst_post_proc_get_property (object, prop_id, value, pspec);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
gst_post_proc_forcequant_set_property (GObject * object, guint prop_id,
|
2008-05-13 15:07:25 +00:00
|
|
|
const GValue * value, GParamSpec * pspec)
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
{
|
|
|
|
GstPostProc *postproc = (GstPostProc *) object;
|
|
|
|
|
|
|
|
switch (prop_id) {
|
|
|
|
case PROP_QUANT:
|
|
|
|
postproc->quant = g_value_get_int (value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
gst_post_proc_set_property (object, prop_id, value, pspec);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* construct args */
|
|
|
|
g_free (postproc->args);
|
|
|
|
if (postproc->quant >= 0)
|
|
|
|
postproc->args = g_strdup_printf ("%d", postproc->quant);
|
|
|
|
else
|
|
|
|
postproc->args = g_strdup ("");
|
|
|
|
change_mode (postproc);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
gst_post_proc_forcequant_get_property (GObject * object, guint prop_id,
|
2008-05-13 15:07:25 +00:00
|
|
|
GValue * value, GParamSpec * pspec)
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
{
|
|
|
|
GstPostProc *postproc = (GstPostProc *) object;
|
|
|
|
|
|
|
|
switch (prop_id) {
|
|
|
|
case PROP_QUANT:
|
|
|
|
g_value_set_int (value, postproc->quant);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
gst_post_proc_get_property (object, prop_id, value, pspec);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-06-20 13:07:52 +00:00
|
|
|
gboolean
|
2008-05-13 15:07:25 +00:00
|
|
|
gst_post_proc_register (GstPlugin * plugin)
|
2005-06-20 13:07:52 +00:00
|
|
|
{
|
2008-05-13 15:07:25 +00:00
|
|
|
GTypeInfo typeinfo = {
|
2005-06-20 13:07:52 +00:00
|
|
|
sizeof (GstPostProcClass),
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
(GBaseInitFunc) gst_post_proc_base_init,
|
2005-06-20 13:07:52 +00:00
|
|
|
NULL,
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
(GClassInitFunc) gst_post_proc_class_init,
|
2005-06-20 13:07:52 +00:00
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
sizeof (GstPostProc),
|
|
|
|
0,
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
(GInstanceInitFunc) gst_post_proc_init,
|
2005-06-20 13:07:52 +00:00
|
|
|
};
|
|
|
|
GType type;
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
int i;
|
2005-06-20 13:07:52 +00:00
|
|
|
|
|
|
|
global_plugins = g_hash_table_new (NULL, NULL);
|
|
|
|
for (i = 0; filterdetails[i].shortname; i++) {
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
gchar *type_name;
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
g_hash_table_insert (global_plugins, GINT_TO_POINTER (0),
|
|
|
|
GINT_TO_POINTER (i));
|
2005-06-20 13:44:06 +00:00
|
|
|
|
2005-06-20 13:07:52 +00:00
|
|
|
/* create type_name */
|
2008-05-13 15:07:25 +00:00
|
|
|
type_name = g_strdup_printf ("postproc_%s", filterdetails[i].longname);
|
2005-06-20 13:07:52 +00:00
|
|
|
if (g_type_from_name (type_name)) {
|
|
|
|
g_free (type_name);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* create gtype */
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
type = g_type_register_static (GST_TYPE_VIDEO_FILTER, type_name,
|
|
|
|
&typeinfo, 0);
|
2005-06-20 13:07:52 +00:00
|
|
|
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
g_hash_table_insert (global_plugins, GINT_TO_POINTER (type),
|
|
|
|
GINT_TO_POINTER (i));
|
2005-06-20 13:44:06 +00:00
|
|
|
|
2005-06-20 13:07:52 +00:00
|
|
|
/* register element */
|
|
|
|
if (!gst_element_register (plugin, type_name, GST_RANK_PRIMARY, type)) {
|
2008-05-13 15:07:25 +00:00
|
|
|
g_free (type_name);
|
2005-06-20 13:07:52 +00:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2008-05-13 15:07:25 +00:00
|
|
|
g_free (type_name);
|
2005-06-20 13:07:52 +00:00
|
|
|
}
|
|
|
|
g_hash_table_remove (global_plugins, GINT_TO_POINTER (0));
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
|
2005-06-20 13:07:52 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static gboolean
|
|
|
|
plugin_init (GstPlugin * plugin)
|
|
|
|
{
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
GST_DEBUG_CATEGORY_INIT (postproc_debug, "postproc", 0,
|
|
|
|
"video postprocessing elements");
|
2005-06-20 13:07:52 +00:00
|
|
|
#ifndef GST_DISABLE_GST_DEBUG
|
|
|
|
av_log_set_callback (gst_ffmpeg_log_callback);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Register the filters */
|
configure.ac: postproc filters need liboil to detect the cpu architecture
Original commit message from CVS:
Reviewed by: Edward Hervey <edward@fluendo.com>
* configure.ac:
postproc filters need liboil to detect the cpu architecture
* ext/libpostproc/Makefile.am:
Update for liboil requirement, libpostproc being moved around in
ffmpeg mirror, and removal of unused header file.
* ext/libpostproc/gstpostproc.h:
Header file not needed anymore
* ext/libpostproc/gstpostproc.c: (gst_pp_scope_get_type),
(change_context), (append), (change_mode),
(gst_post_proc_base_init), (gst_post_proc_class_init),
(gst_post_proc_init), (gst_post_proc_dispose),
(gst_post_proc_setcaps), (gst_post_proc_transform_ip),
(gst_post_proc_set_property), (gst_post_proc_get_property),
(gst_post_proc_deblock_set_property),
(gst_post_proc_deblock_get_property),
(gst_post_proc_tmpnoise_set_property),
(gst_post_proc_tmpnoise_get_property),
(gst_post_proc_autolevels_set_property),
(gst_post_proc_autolevels_get_property),
(gst_post_proc_forcequant_set_property),
(gst_post_proc_forcequant_get_property), (gst_post_proc_register),
(plugin_init):
Port of postprocessing elements to 0.10.
2006-10-20 15:17:38 +00:00
|
|
|
gst_post_proc_register (plugin);
|
2005-06-20 13:07:52 +00:00
|
|
|
|
|
|
|
/* Now we can return the pointer to the newly created Plugin object. */
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
|
|
GST_VERSION_MINOR,
|
|
|
|
"postproc",
|
2006-12-14 23:31:45 +00:00
|
|
|
"postprocessing elements (" FFMPEG_SOURCE ")",
|
2005-06-20 13:07:52 +00:00
|
|
|
plugin_init,
|
2006-12-14 23:31:45 +00:00
|
|
|
PACKAGE_VERSION, "GPL", "FFMpeg", "http://ffmpeg.sourceforge.net/")
|