From 77ddde41d95a7b7b17b9f288c009232e02d2e90e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Wed, 3 Feb 2016 19:07:40 +0100 Subject: rename encoders to vaapi{codec}enc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Trying to comply with GStreamer's element names, this patch renames the encoders using the name format vaapi{codec}enc. In this way, the plugin documentation is linked correctly. Signed-off-by: Víctor Manuel Jáquez Leal --- docs/plugins/gstreamer-vaapi-plugins-docs.xml.in | 10 +++++----- docs/plugins/gstreamer-vaapi-plugins-sections.txt | 20 ++++++++++---------- gst/vaapi/gstvaapi.c | 10 +++++----- gst/vaapi/gstvaapiencode_h264.c | 6 +++--- gst/vaapi/gstvaapiencode_h265.c | 6 +++--- gst/vaapi/gstvaapiencode_jpeg.c | 6 +++--- gst/vaapi/gstvaapiencode_mpeg2.c | 6 +++--- gst/vaapi/gstvaapiencode_vp8.c | 6 +++--- 8 files changed, 35 insertions(+), 35 deletions(-) diff --git a/docs/plugins/gstreamer-vaapi-plugins-docs.xml.in b/docs/plugins/gstreamer-vaapi-plugins-docs.xml.in index 5070eb6e..6626e0e4 100644 --- a/docs/plugins/gstreamer-vaapi-plugins-docs.xml.in +++ b/docs/plugins/gstreamer-vaapi-plugins-docs.xml.in @@ -15,11 +15,11 @@ - - - - - + + + + + diff --git a/docs/plugins/gstreamer-vaapi-plugins-sections.txt b/docs/plugins/gstreamer-vaapi-plugins-sections.txt index c18e4621..bdd34f2c 100644 --- a/docs/plugins/gstreamer-vaapi-plugins-sections.txt +++ b/docs/plugins/gstreamer-vaapi-plugins-sections.txt @@ -60,8 +60,8 @@ gst_vaapisink_get_type
-element-vaapiencode_h264 -vaapiencode_h264 +element-vaapih264enc +vaapih264enc GST_IS_VAAPIENCODE_H264 GST_IS_VAAPIENCODE_H264_CLASS @@ -75,8 +75,8 @@ gst_vaapiencode_h264_get_type
-element-vaapiencode_h265 -vaapiencode_h265 +element-vaapih265enc +vaapih265enc GST_IS_VAAPIENCODE_H265 GST_IS_VAAPIENCODE_H265_CLASS @@ -90,8 +90,8 @@ gst_vaapiencode_h265_get_type
-element-vaapiencode_jpeg -vaapiencode_jpeg +element-vaapijpegenc +vaapijpegenc GST_IS_VAAPIENCODE_JPEG GST_IS_VAAPIENCODE_JPEG_CLASS @@ -105,8 +105,8 @@ gst_vaapiencode_jpeg_get_type
-element-vaapiencode_mpeg2 -vaapiencode_mpeg2 +element-vaapimpeg2enc +vaapimpeg2enc GST_IS_VAAPIENCODE_MPEG2 GST_IS_VAAPIENCODE_MPEG2_CLASS @@ -120,8 +120,8 @@ gst_vaapiencode_mpeg2_get_type
-element-vaapiencode_vp8 -vaapiencode_vp8 +element-vaapivp8enc +vaapivp8enc GST_IS_VAAPIENCODE_VP8 GST_IS_VAAPIENCODE_VP8_CLASS diff --git a/gst/vaapi/gstvaapi.c b/gst/vaapi/gstvaapi.c index a64cb645..dc972609 100644 --- a/gst/vaapi/gstvaapi.c +++ b/gst/vaapi/gstvaapi.c @@ -60,22 +60,22 @@ plugin_init (GstPlugin * plugin) gst_element_register (plugin, "vaapisink", GST_RANK_PRIMARY, GST_TYPE_VAAPISINK); #if USE_ENCODERS - gst_element_register (plugin, "vaapiencode_h264", + gst_element_register (plugin, "vaapih264enc", GST_RANK_PRIMARY, GST_TYPE_VAAPIENCODE_H264); - gst_element_register (plugin, "vaapiencode_mpeg2", + gst_element_register (plugin, "vaapimpeg2enc", GST_RANK_PRIMARY, GST_TYPE_VAAPIENCODE_MPEG2); #endif #if USE_JPEG_ENCODER - gst_element_register (plugin, "vaapiencode_jpeg", + gst_element_register (plugin, "vaapijpegenc", GST_RANK_PRIMARY, GST_TYPE_VAAPIENCODE_JPEG); #endif #if USE_VP8_ENCODER - gst_element_register (plugin, "vaapiencode_vp8", + gst_element_register (plugin, "vaapivp8enc", GST_RANK_PRIMARY, GST_TYPE_VAAPIENCODE_VP8); #endif #if USE_H265_ENCODER - gst_element_register (plugin, "vaapiencode_h265", + gst_element_register (plugin, "vaapih265enc", GST_RANK_PRIMARY, GST_TYPE_VAAPIENCODE_H265); #endif diff --git a/gst/vaapi/gstvaapiencode_h264.c b/gst/vaapi/gstvaapiencode_h264.c index 1c37ca7b..b4027ab1 100644 --- a/gst/vaapi/gstvaapiencode_h264.c +++ b/gst/vaapi/gstvaapiencode_h264.c @@ -22,7 +22,7 @@ */ /** - * SECTION:element-vaapiencode_h264 + * SECTION:element-vaapih264enc * @short_description: A VA-API based H.264 video encoder * * Encodes raw video streams into H.264 bitstreams. @@ -30,7 +30,7 @@ * * Example launch line * |[ - * gst-launch-1.0 -ev videotestsrc num-buffers=60 ! timeoverlay ! vaapiencode_h264 ! mp4mux ! filesink location=test.mp4 + * gst-launch-1.0 -ev videotestsrc num-buffers=60 ! timeoverlay ! vaapih264enc ! mp4mux ! filesink location=test.mp4 * ]| * */ @@ -43,7 +43,7 @@ #include "gstvaapipluginutil.h" #include "gstvaapivideomemory.h" -#define GST_PLUGIN_NAME "vaapiencode_h264" +#define GST_PLUGIN_NAME "vaapih264enc" #define GST_PLUGIN_DESC "A VA-API based H.264 video encoder" GST_DEBUG_CATEGORY_STATIC (gst_vaapi_h264_encode_debug); diff --git a/gst/vaapi/gstvaapiencode_h265.c b/gst/vaapi/gstvaapiencode_h265.c index f7324451..b5e5bf7c 100644 --- a/gst/vaapi/gstvaapiencode_h265.c +++ b/gst/vaapi/gstvaapiencode_h265.c @@ -21,7 +21,7 @@ */ /** - * SECTION:element-vaapiencode_h265 + * SECTION:element-vaapih265enc * @short_description: A VA-API based HEVC video encoder * * Encodes raw video streams into HEVC bitstreams. @@ -29,7 +29,7 @@ * * Example launch line * |[ - * gst-launch-1.0 -ev videotestsrc num-buffers=60 ! timeoverlay ! vaapiencode_h265 ! matroskamux ! filesink location=test.mkv + * gst-launch-1.0 -ev videotestsrc num-buffers=60 ! timeoverlay ! vaapih265enc ! matroskamux ! filesink location=test.mkv * ]| * */ @@ -42,7 +42,7 @@ #include "gstvaapipluginutil.h" #include "gstvaapivideomemory.h" -#define GST_PLUGIN_NAME "vaapiencode_h265" +#define GST_PLUGIN_NAME "vaapih265enc" #define GST_PLUGIN_DESC "A VA-API based H.265 video encoder" GST_DEBUG_CATEGORY_STATIC (gst_vaapi_h265_encode_debug); diff --git a/gst/vaapi/gstvaapiencode_jpeg.c b/gst/vaapi/gstvaapiencode_jpeg.c index 086d155c..902a12f6 100644 --- a/gst/vaapi/gstvaapiencode_jpeg.c +++ b/gst/vaapi/gstvaapiencode_jpeg.c @@ -21,7 +21,7 @@ */ /** - * SECTION:element-vaapiencode_jpeg + * SECTION:element-vaapijpegenc * @short_description: A VA-API based JPEG image encoder * * Encodes raw images into JPEG images. @@ -29,7 +29,7 @@ * * Example launch line * |[ - * gst-launch-1.0 -ev videotestsrc num-buffers=1 ! timeoverlay ! vaapiencode_jpeg ! filesink location=test.jpg + * gst-launch-1.0 -ev videotestsrc num-buffers=1 ! timeoverlay ! vaapijpegenc ! filesink location=test.jpg * ]| * */ @@ -41,7 +41,7 @@ #include "gstvaapipluginutil.h" #include "gstvaapivideomemory.h" -#define GST_PLUGIN_NAME "vaapiencode_jpeg" +#define GST_PLUGIN_NAME "vaapijpegenc" #define GST_PLUGIN_DESC "A VA-API based JPEG video encoder" GST_DEBUG_CATEGORY_STATIC (gst_vaapi_jpeg_encode_debug); diff --git a/gst/vaapi/gstvaapiencode_mpeg2.c b/gst/vaapi/gstvaapiencode_mpeg2.c index 9f2a23bb..791adff3 100644 --- a/gst/vaapi/gstvaapiencode_mpeg2.c +++ b/gst/vaapi/gstvaapiencode_mpeg2.c @@ -22,7 +22,7 @@ */ /** - * SECTION:element-vaapiencode_mpeg2 + * SECTION:element-vaapimpeg2enc * @short_description: A VA-API based MPEG2 video encoder * * Encodes raw video streams into MPEG2 bitstreams. @@ -30,7 +30,7 @@ * * Example launch line * |[ - * gst-launch-1.0 -ev videotestsrc num-buffers=60 ! timeoverlay ! vaapiencode_mpeg2 ! matroskamux ! filesink location=test.mkv + * gst-launch-1.0 -ev videotestsrc num-buffers=60 ! timeoverlay ! vaapimpeg2enc ! matroskamux ! filesink location=test.mkv * ]| * */ @@ -42,7 +42,7 @@ #include "gstvaapipluginutil.h" #include "gstvaapivideomemory.h" -#define GST_PLUGIN_NAME "vaapiencode_mpeg2" +#define GST_PLUGIN_NAME "vaapimpeg2enc" #define GST_PLUGIN_DESC "A VA-API based MPEG-2 video encoder" GST_DEBUG_CATEGORY_STATIC (gst_vaapi_mpeg2_encode_debug); diff --git a/gst/vaapi/gstvaapiencode_vp8.c b/gst/vaapi/gstvaapiencode_vp8.c index 276a5840..db5ead4e 100644 --- a/gst/vaapi/gstvaapiencode_vp8.c +++ b/gst/vaapi/gstvaapiencode_vp8.c @@ -21,7 +21,7 @@ */ /** - * SECTION:element-vaapiencode_vp8 + * SECTION:element-vaapivp8enc * @short_description: A VA-API based VP8 video encoder * * Encodes raw video streams into VP8 bitstreams. @@ -29,7 +29,7 @@ * * Example launch line * |[ - * gst-launch-1.0 -ev videotestsrc num-buffers=60 ! timeoverlay ! vaapiencode_vp8 ! matroskamux ! filesink location=test.mkv + * gst-launch-1.0 -ev videotestsrc num-buffers=60 ! timeoverlay ! vaapivp8enc ! matroskamux ! filesink location=test.mkv * ]| * */ @@ -41,7 +41,7 @@ #include "gstvaapipluginutil.h" #include "gstvaapivideomemory.h" -#define GST_PLUGIN_NAME "vaapiencode_vp8" +#define GST_PLUGIN_NAME "vaapivp8enc" #define GST_PLUGIN_DESC "A VA-API based VP8 video encoder" GST_DEBUG_CATEGORY_STATIC (gst_vaapi_vp8_encode_debug); -- cgit v1.2.1