| Top |  |  |  |  | 
| GstVideoChromaResampleGstVideoChromaResample — Functions and utility object for operating on chroma video planes | 
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.
GstVideoChromaSite
gst_video_chroma_from_string (const gchar *s);
Convert s
 to a GstVideoChromaSite
 a GstVideoChromaSite or GST_VIDEO_CHROMA_SITE_UNKNOWN when s
does
not contain a valid chroma description.
const gchar *
gst_video_chroma_to_string (GstVideoChromaSite site);
Converts site
 to its string representation.
void gst_video_chroma_resample (GstVideoChromaResample *resample,gpointer lines[],gint width);
Perform resampling of width
 chroma pixels in lines
.
void
gst_video_chroma_resample_free (GstVideoChromaResample *resample);
Free resample
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
.
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]
| method | ||
| site | ||
| flags | ||
| format | the GstVideoFormat | |
| h_factor | horizontal resampling factor | |
| v_factor | vertical resampling factor | 
 a new GstVideoChromaResample that should be freed with
gst_video_chroma_resample_free() after usage.
Various Chroma sitings.
Extra flags that influence the result from gst_video_chroma_resample_new().