From 3d60fb654bbcb45214c6bfdd99ef078630e26bde Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 13 Mar 2015 01:06:57 +1100 Subject: [PATCH] docs: Add new video functions and objects. Cleanup a little. Add GstVideoChroma, GstVideoDither, GstVideoScaler and friends to the docs. Remove and clean up a few obsolete/deleted refs and typos --- docs/libs/gst-plugins-base-libs-docs.sgml | 4 + docs/libs/gst-plugins-base-libs-sections.txt | 87 +++++++++++++++++--- gst-libs/gst/video/gstvideometa.c | 2 +- gst-libs/gst/video/video-chroma.c | 12 +++ gst-libs/gst/video/video-converter.c | 2 +- gst-libs/gst/video/video-dither.c | 8 ++ gst-libs/gst/video/video-resampler.c | 8 ++ gst-libs/gst/video/video-resampler.h | 1 + gst-libs/gst/video/video-scaler.c | 9 ++ gst/videoscale/gstvideoscale.h | 1 - 10 files changed, 120 insertions(+), 14 deletions(-) diff --git a/docs/libs/gst-plugins-base-libs-docs.sgml b/docs/libs/gst-plugins-base-libs-docs.sgml index 3da30ad7ae..865ee293ee 100644 --- a/docs/libs/gst-plugins-base-libs-docs.sgml +++ b/docs/libs/gst-plugins-base-libs-docs.sgml @@ -198,6 +198,10 @@ + + + + diff --git a/docs/libs/gst-plugins-base-libs-sections.txt b/docs/libs/gst-plugins-base-libs-sections.txt index 8b50589534..82a351fda5 100644 --- a/docs/libs/gst-plugins-base-libs-sections.txt +++ b/docs/libs/gst-plugins-base-libs-sections.txt @@ -2241,9 +2241,6 @@ GstVideoFormat GST_VIDEO_MAX_PLANES GST_VIDEO_MAX_COMPONENTS GstVideoFormatInfo -GstVideoChromaSite -gst_video_chroma_from_string -gst_video_chroma_to_string GstVideoFormatFlags GstVideoPackFlags GstVideoFormatUnpack @@ -2427,6 +2424,7 @@ gst_video_blend_scale_linear_RGBA #video-converter.h +GstVideoConverter gst_video_converter_new gst_video_converter_free gst_video_converter_get_config @@ -2518,7 +2516,6 @@ gst_video_gl_texture_upload_meta_get_info gst/video/video-overlay-composition.h GstVideoOverlayComposition -GstVideoOverlayCompositionClass gst_video_overlay_composition_new gst_video_overlay_composition_ref gst_video_overlay_composition_unref @@ -2542,7 +2539,6 @@ gst_buffer_remove_video_overlay_composition_meta GstVideoOverlayFormatFlags GstVideoOverlayRectangle -GstVideoOverlayRectangleClass gst_video_overlay_rectangle_new_raw gst_video_overlay_rectangle_ref gst_video_overlay_rectangle_unref @@ -2562,10 +2558,7 @@ gst_video_overlay_rectangle_set_global_alpha GST_TYPE_VIDEO_OVERLAY_COMPOSITION GST_VIDEO_OVERLAY_COMPOSITION -GST_VIDEO_OVERLAY_COMPOSITION_CLASS -GST_VIDEO_OVERLAY_COMPOSITION_GET_CLASS GST_IS_VIDEO_OVERLAY_COMPOSITION -GST_IS_VIDEO_VIDEO_OVERLAY_COMPOSITION_CLASS GST_VIDEO_OVERLAY_COMPOSITION_CAST GST_VIDEO_OVERLAY_COMPOSITION_META_API_TYPE GST_VIDEO_OVERLAY_COMPOSITION_META_INFO @@ -2574,10 +2567,7 @@ gst_video_overlay_composition_meta_api_get_type GST_TYPE_VIDEO_OVERLAY_RECTANGLE GST_VIDEO_OVERLAY_RECTANGLE -GST_VIDEO_OVERLAY_RECTANGLE_CLASS -GST_VIDEO_OVERLAY_RECTANGLE_GET_CLASS GST_IS_VIDEO_OVERLAY_RECTANGLE -GST_IS_VIDEO_VIDEO_OVERLAY_RECTANGLE_CLASS gst_video_overlay_rectangle_get_type @@ -2717,6 +2707,81 @@ GstVideoEncoderPrivate gst_video_encoder_get_type +
+gstvideodither +GstVideoDither +gst/video/video-dither.h +GstVideoDither +GstVideoDitherFlags +GstVideoDitherMethod +gst_video_dither_free +gst_video_dither_line +gst_video_dither_new + +GST_TYPE_VIDEO_DITHER_FLAGS +gst_video_dither_flags_get_type +
+ +
+gstvideochroma +GstVideoChroma +gst/video/video-chroma.h +GstVideoChromaSite +gst_video_chroma_from_string +gst_video_chroma_to_string +GstVideoChromaFlags + +GstVideoChromaMethod +GstVideoChromaResample +gst_video_chroma_resample +gst_video_chroma_resample_free +gst_video_chroma_resample_get_info +gst_video_chroma_resample_new + +gst_video_chroma_flags_get_type +gst_video_chroma_method_get_type +GST_TYPE_VIDEO_CHROMA_FLAGS +GST_TYPE_VIDEO_CHROMA_METHOD +
+ +
+gstvideoresampler +GstVideoResampler +gst/video/video-resampler.h +GstVideoResampler +GstVideoResamplerFlags +GstVideoResamplerMethod +gst_video_resampler_clear +gst_video_resampler_init +GST_VIDEO_RESAMPLER_OPT_CUBIC_B +GST_VIDEO_RESAMPLER_OPT_CUBIC_C +GST_VIDEO_RESAMPLER_OPT_ENVELOPE +GST_VIDEO_RESAMPLER_OPT_MAX_TAPS +GST_VIDEO_RESAMPLER_OPT_SHARPEN +GST_VIDEO_RESAMPLER_OPT_SHARPNESS + +gst_video_resampler_flags_get_type +gst_video_resampler_method_get_type +GST_TYPE_VIDEO_RESAMPLER_FLAGS +GST_TYPE_VIDEO_RESAMPLER_METHOD +
+ +
+gstvideoscaler +GstVideoScaler +gst/video/video-scaler.h +GstVideoScaler +GstVideoScalerFlags +gst_video_scaler_2d +gst_video_scaler_combine_packed_YUV +gst_video_scaler_free +gst_video_scaler_get_coeff +gst_video_scaler_horizontal +gst_video_scaler_new +gst_video_scaler_vertical + +
+
gstvideoutils GstVideoCodecFrame diff --git a/gst-libs/gst/video/gstvideometa.c b/gst-libs/gst/video/gstvideometa.c index a5cd8bded7..14fca21e95 100644 --- a/gst-libs/gst/video/gstvideometa.c +++ b/gst-libs/gst/video/gstvideometa.c @@ -645,7 +645,7 @@ gst_video_region_of_interest_meta_get_info (void) * Buffers can contain multiple #GstVideoRegionOfInterestMeta metadata items if * multiple regions of interests are marked on a frame. * - * Returns: the #GstVideoeRegionOfInterestMeta with @id or %NULL when there is + * Returns: the #GstVideoRegionOfInterestMeta with @id or %NULL when there is * no such metadata on @buffer. */ GstVideoRegionOfInterestMeta * diff --git a/gst-libs/gst/video/video-chroma.c b/gst-libs/gst/video/video-chroma.c index 0330f4afdd..d0b4407b11 100644 --- a/gst-libs/gst/video/video-chroma.c +++ b/gst-libs/gst/video/video-chroma.c @@ -27,6 +27,18 @@ #include "video-orc.h" #include "video-format.h" +/** + * SECTION:gstvideochroma + * @short_description: 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. + * + */ + typedef struct { const gchar *name; diff --git a/gst-libs/gst/video/video-converter.c b/gst-libs/gst/video/video-converter.c index 9f123061a0..437c3c6db7 100644 --- a/gst-libs/gst/video/video-converter.c +++ b/gst-libs/gst/video/video-converter.c @@ -2312,7 +2312,7 @@ gst_video_converter_set_config (GstVideoConverter * convert, /** * gst_video_converter_get_config: - * @@convert: a #GstVideoConverter + * @convert: a #GstVideoConverter * * Get the current configuration of @convert. * diff --git a/gst-libs/gst/video/video-dither.c b/gst-libs/gst/video/video-dither.c index 854f9bc6fd..64e0f9fbea 100644 --- a/gst-libs/gst/video/video-dither.c +++ b/gst-libs/gst/video/video-dither.c @@ -22,6 +22,14 @@ #include "video-dither.h" #include "video-orc.h" +/** + * SECTION:gstvideodither + * @short_description: Utility object for dithering and quantizing lines of video + * + * GstVideoDither provides implementations of several dithering algorithms + * that can be applied to lines of video pixels to quantize and dither them. + * + */ struct _GstVideoDither { GstVideoDitherMethod method; diff --git a/gst-libs/gst/video/video-resampler.c b/gst-libs/gst/video/video-resampler.c index ccad73c0e8..3024e544bf 100644 --- a/gst-libs/gst/video/video-resampler.c +++ b/gst-libs/gst/video/video-resampler.c @@ -27,6 +27,14 @@ #include "video-resampler.h" +/** + * SECTION:gstvideoresampler + * @short_description: Utility structure for resampler information + * + * #GstVideoResampler is a structure which holds the information + * required to perform various kinds of resampling filtering. + * + */ #define DEFAULT_OPT_CUBIC_B (1.0 / 3.0) #define DEFAULT_OPT_CUBIC_C (1.0 / 3.0) diff --git a/gst-libs/gst/video/video-resampler.h b/gst-libs/gst/video/video-resampler.h index 13331b10bb..d0c18cc1bf 100644 --- a/gst-libs/gst/video/video-resampler.h +++ b/gst-libs/gst/video/video-resampler.h @@ -151,6 +151,7 @@ struct _GstVideoResampler guint32 *n_taps; gdouble *taps; + /*< private >*/ gpointer _gst_reserved[GST_PADDING]; }; diff --git a/gst-libs/gst/video/video-scaler.c b/gst-libs/gst/video/video-scaler.c index 7a94412b81..b637775df7 100644 --- a/gst-libs/gst/video/video-scaler.c +++ b/gst-libs/gst/video/video-scaler.c @@ -25,6 +25,15 @@ #include #include +/** + * SECTION:gstvideoscaler + * @short_description: Utility object for rescaling video frames + * + * #GstVideoScaler is a utility object for rescaling and resampling + * video frames using various interpolation / sampling methods. + * + */ + #ifndef DISABLE_ORC #include #else diff --git a/gst/videoscale/gstvideoscale.h b/gst/videoscale/gstvideoscale.h index e459eda626..297ceed85b 100644 --- a/gst/videoscale/gstvideoscale.h +++ b/gst/videoscale/gstvideoscale.h @@ -48,7 +48,6 @@ GST_DEBUG_CATEGORY_EXTERN (video_scale_debug); * @GST_VIDEO_SCALE_BILINEAR: use 2-tap bilinear scaling (slower but prettier). * @GST_VIDEO_SCALE_4TAP: use a 4-tap sinc filter for scaling (slow). * @GST_VIDEO_SCALE_LANCZOS: use a multitap Lanczos filter for scaling (slow). - * * @GST_VIDEO_SCALE_BILINEAR2: use a multitap bilinear filter * @GST_VIDEO_SCALE_SINC: use a multitap sinc filter * @GST_VIDEO_SCALE_HERMITE: use a multitap bicubic Hermite filter