|
Packit |
971217 |
|
|
Packit |
971217 |
<html>
|
|
Packit |
971217 |
<head>
|
|
Packit |
971217 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
Packit |
971217 |
<title>GstVideoResampler: GStreamer Base Plugins 1.0 Library Reference Manual</title>
|
|
Packit |
971217 |
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
|
|
Packit |
971217 |
<link rel="home" href="index.html" title="GStreamer Base Plugins 1.0 Library Reference Manual">
|
|
Packit |
971217 |
<link rel="up" href="gstreamer-video.html" title="Video Library">
|
|
Packit |
971217 |
<link rel="prev" href="gst-plugins-base-libs-GstVideoChroma.html" title="GstVideoChromaResample">
|
|
Packit |
971217 |
<link rel="next" href="gst-plugins-base-libs-GstVideoScaler.html" title="GstVideoScaler">
|
|
Packit |
971217 |
<meta name="generator" content="GTK-Doc V1.27 (XML mode)">
|
|
Packit |
971217 |
<link rel="stylesheet" href="style.css" type="text/css">
|
|
Packit |
971217 |
</head>
|
|
Packit |
971217 |
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Top |
|
|
Packit |
971217 |
Description
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GstVideoResampler
|
|
Packit |
971217 |
GstVideoResampler — Utility structure for resampler information
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Functions
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
void
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_video_resampler_clear ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gboolean
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_video_resampler_init ()
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Types and Values
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
struct
|
|
Packit |
971217 |
GstVideoResampler
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
enum
|
|
Packit |
971217 |
GstVideoResamplerFlags
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
enum
|
|
Packit |
971217 |
GstVideoResamplerMethod
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#define
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_OPT_CUBIC_B
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#define
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_OPT_CUBIC_C
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#define
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_OPT_ENVELOPE
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#define
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_OPT_MAX_TAPS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#define
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_OPT_SHARPEN
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#define
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_OPT_SHARPNESS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Includes
|
|
Packit |
971217 |
#include <gst/video/video-resampler.h>
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Description
|
|
Packit |
971217 |
GstVideoResampler is a structure which holds the information
|
|
Packit |
971217 |
required to perform various kinds of resampling filtering.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Functions
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_video_resampler_clear ()
|
|
Packit |
971217 |
void
|
|
Packit |
971217 |
gst_video_resampler_clear (GstVideoResampler *resampler );
|
|
Packit |
971217 |
Clear a previously initialized GstVideoResampler resampler
|
|
Packit |
971217 |
.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Parameters
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
resampler
|
|
Packit |
971217 |
a GstVideoResampler
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Since: 1.6
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gst_video_resampler_init ()
|
|
Packit |
971217 |
gboolean
|
|
Packit |
971217 |
gst_video_resampler_init (GstVideoResampler *resampler ,
|
|
Packit |
971217 |
GstVideoResamplerMethod method ,
|
|
Packit |
971217 |
GstVideoResamplerFlags flags ,
|
|
Packit |
971217 |
guint n_phases ,
|
|
Packit |
971217 |
guint n_taps ,
|
|
Packit |
971217 |
gdouble shift ,
|
|
Packit |
971217 |
guint in_size ,
|
|
Packit |
971217 |
guint out_size ,
|
|
Packit |
971217 |
GstStructure *options );
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Types and Values
|
|
Packit |
971217 |
|
|
Packit |
971217 |
struct GstVideoResampler
|
|
Packit |
971217 |
struct GstVideoResampler {
|
|
Packit |
971217 |
gint in_size;
|
|
Packit |
971217 |
gint out_size;
|
|
Packit |
971217 |
guint max_taps;
|
|
Packit |
971217 |
guint n_phases;
|
|
Packit |
971217 |
guint32 *offset;
|
|
Packit |
971217 |
guint32 *phase;
|
|
Packit |
971217 |
guint32 *n_taps;
|
|
Packit |
971217 |
gdouble *taps;
|
|
Packit |
971217 |
};
|
|
Packit |
971217 |
|
|
Packit |
971217 |
A structure holding resampler information.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Members
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gint in_size ;
|
|
Packit |
971217 |
the input size
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gint out_size ;
|
|
Packit |
971217 |
the output size
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
guint max_taps ;
|
|
Packit |
971217 |
the maximum number of taps
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
guint n_phases ;
|
|
Packit |
971217 |
the number of phases
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
guint32 *offset ;
|
|
Packit |
971217 |
array with the source offset for each output element
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
guint32 *phase ;
|
|
Packit |
971217 |
array with the phase to use for each output element
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
guint32 *n_taps ;
|
|
Packit |
971217 |
array with new number of taps for each phase
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gdouble *taps ;
|
|
Packit |
971217 |
the taps for all phases
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Since: 1.6
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
enum GstVideoResamplerFlags
|
|
Packit |
971217 |
Different resampler flags.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Members
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_FLAG_NONE
|
|
Packit |
971217 |
|
|
Packit |
971217 |
no flags
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_FLAG_HALF_TAPS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
when no taps are given, half the
|
|
Packit |
971217 |
number of calculated taps. This can be used when making scalers
|
|
Packit |
971217 |
for the different fields of an interlaced picture. Since 1.10
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Since: 1.6
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
enum GstVideoResamplerMethod
|
|
Packit |
971217 |
Different subsampling and upsampling methods
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Members
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_METHOD_NEAREST
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Duplicates the samples when
|
|
Packit |
971217 |
upsampling and drops when downsampling
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_METHOD_LINEAR
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Uses linear interpolation to reconstruct
|
|
Packit |
971217 |
missing samples and averaging to downsample
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_METHOD_CUBIC
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Uses cubic interpolation
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_METHOD_SINC
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Uses sinc interpolation
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_METHOD_LANCZOS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Uses lanczos interpolation
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Since: 1.6
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_OPT_CUBIC_B
|
|
Packit |
971217 |
#define GST_VIDEO_RESAMPLER_OPT_CUBIC_B "GstVideoResampler.cubic-b"
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_TYPE_DOUBLE, B parameter of the cubic filter. The B
|
|
Packit |
971217 |
parameter controls the bluriness. Values between 0.0 and
|
|
Packit |
971217 |
2.0 are accepted. 1/3 is the default.
|
|
Packit |
971217 |
Below are some values of popular filters:
|
|
Packit |
971217 |
B C
|
|
Packit |
971217 |
Hermite 0.0 0.0
|
|
Packit |
971217 |
Spline 1.0 0.0
|
|
Packit |
971217 |
Catmull-Rom 0.0 1/2
|
|
Packit |
971217 |
Mitchell 1/3 1/3
|
|
Packit |
971217 |
Robidoux 0.3782 0.3109
|
|
Packit |
971217 |
Robidoux
|
|
Packit |
971217 |
Sharp 0.2620 0.3690
|
|
Packit |
971217 |
Robidoux
|
|
Packit |
971217 |
Soft 0.6796 0.1602
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_OPT_CUBIC_C
|
|
Packit |
971217 |
#define GST_VIDEO_RESAMPLER_OPT_CUBIC_C "GstVideoResampler.cubic-c"
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_TYPE_DOUBLE, C parameter of the cubic filter. The C
|
|
Packit |
971217 |
parameter controls the Keys alpha value. Values between 0.0 and
|
|
Packit |
971217 |
2.0 are accepted. 1/3 is the default.
|
|
Packit |
971217 |
See GST_VIDEO_RESAMPLER_OPT_CUBIC_B for some more common values
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_OPT_ENVELOPE
|
|
Packit |
971217 |
#define GST_VIDEO_RESAMPLER_OPT_ENVELOPE "GstVideoResampler.envelope"
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_TYPE_DOUBLE, specifies the size of filter envelope for
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_METHOD_LANCZOS
|
|
Packit |
971217 |
. values are clamped between
|
|
Packit |
971217 |
1.0 and 5.0. 2.0 is the default.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_OPT_MAX_TAPS
|
|
Packit |
971217 |
#define GST_VIDEO_RESAMPLER_OPT_MAX_TAPS "GstVideoResampler.max-taps"
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_TYPE_INT, limits the maximum number of taps to use.
|
|
Packit |
971217 |
16 is the default.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_OPT_SHARPEN
|
|
Packit |
971217 |
#define GST_VIDEO_RESAMPLER_OPT_SHARPEN "GstVideoResampler.sharpen"
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_TYPE_DOUBLE, specifies sharpening of the filter for
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_METHOD_LANCZOS
|
|
Packit |
971217 |
. values are clamped between
|
|
Packit |
971217 |
0.0 and 1.0. 0.0 is the default.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_OPT_SHARPNESS
|
|
Packit |
971217 |
#define GST_VIDEO_RESAMPLER_OPT_SHARPNESS "GstVideoResampler.sharpness"
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_TYPE_DOUBLE, specifies sharpness of the filter for
|
|
Packit |
971217 |
GST_VIDEO_RESAMPLER_METHOD_LANCZOS
|
|
Packit |
971217 |
. values are clamped between
|
|
Packit |
971217 |
0.5 and 1.5. 1.0 is the default.
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
Generated by GTK-Doc V1.27
|
|
Packit |
971217 |
</body>
|
|
Packit |
971217 |
</html>
|