Top |
GstVideoChromaResampleGstVideoChromaResample — Functions and utility object for operating on chroma video planes |
Description
The functions gst_video_chroma_from_string()
and gst_video_chroma_to_string()
convert
between GstVideoChromaSite and string descriptions.
GstVideoChromaResample is a utility object for resampling chroma planes and converting between different chroma sampling sitings.
Functions
gst_video_chroma_from_string ()
GstVideoChromaSite
gst_video_chroma_from_string (const gchar *s
);
Convert s
to a GstVideoChromaSite
Returns
a GstVideoChromaSite or GST_VIDEO_CHROMA_SITE_UNKNOWN
when s
does
not contain a valid chroma description.
gst_video_chroma_to_string ()
const gchar *
gst_video_chroma_to_string (GstVideoChromaSite site
);
Converts site
to its string representation.
gst_video_chroma_resample ()
void gst_video_chroma_resample (GstVideoChromaResample *resample
,gpointer lines[]
,gint width
);
Perform resampling of width
chroma pixels in lines
.
gst_video_chroma_resample_free ()
void
gst_video_chroma_resample_free (GstVideoChromaResample *resample
);
Free resample
gst_video_chroma_resample_get_info ()
void gst_video_chroma_resample_get_info (GstVideoChromaResample *resample
,guint *n_lines
,gint *offset
);
The resampler must be fed n_lines
at a time. The first line should be
at offset
.
gst_video_chroma_resample_new ()
GstVideoChromaResample * gst_video_chroma_resample_new (GstVideoChromaMethod method
,GstVideoChromaSite site
,GstVideoChromaFlags flags
,GstVideoFormat format
,gint h_factor
,gint v_factor
);
Create a new resampler object for the given parameters. When h_factor
or
v_factor
is > 0, upsampling will be used, otherwise subsampling is
performed.
[skip]
Parameters
method |
||
site |
||
flags |
||
format |
the GstVideoFormat |
|
h_factor |
horizontal resampling factor |
|
v_factor |
vertical resampling factor |
Returns
a new GstVideoChromaResample that should be freed with
gst_video_chroma_resample_free()
after usage.
Types and Values
enum GstVideoChromaSite
Various Chroma sitings.
enum GstVideoChromaFlags
Extra flags that influence the result from gst_video_chroma_resample_new()
.