mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
vaapiencode: fix plugin description and debug name.
Align the plug-in debug category to its actual name. i.e. enable debug logs through vaapiencode_<CODEC> where <CODEC> is mpeg2, h264, etc. Fix the plug-in element description to make it more consistent with other VA-API plug-ins.
This commit is contained in:
parent
bc020c05f9
commit
1a4b3c3b22
2 changed files with 12 additions and 6 deletions
|
@ -30,6 +30,9 @@
|
||||||
#include "gstvaapivideomemory.h"
|
#include "gstvaapivideomemory.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define GST_PLUGIN_NAME "vaapiencode_h264"
|
||||||
|
#define GST_PLUGIN_DESC "A VA-API based H.264 video encoder"
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_STATIC (gst_vaapi_h264_encode_debug);
|
GST_DEBUG_CATEGORY_STATIC (gst_vaapi_h264_encode_debug);
|
||||||
#define GST_CAT_DEFAULT gst_vaapi_h264_encode_debug
|
#define GST_CAT_DEFAULT gst_vaapi_h264_encode_debug
|
||||||
|
|
||||||
|
@ -313,7 +316,7 @@ gst_vaapiencode_h264_class_init (GstVaapiEncodeH264Class * klass)
|
||||||
GstVaapiEncodeClass *const encode_class = GST_VAAPIENCODE_CLASS (klass);
|
GstVaapiEncodeClass *const encode_class = GST_VAAPIENCODE_CLASS (klass);
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_INIT (gst_vaapi_h264_encode_debug,
|
GST_DEBUG_CATEGORY_INIT (gst_vaapi_h264_encode_debug,
|
||||||
"vaapih264encode", 0, "vaapih264encode element");
|
GST_PLUGIN_NAME, 0, GST_PLUGIN_DESC);
|
||||||
|
|
||||||
object_class->finalize = gst_vaapiencode_h264_finalize;
|
object_class->finalize = gst_vaapiencode_h264_finalize;
|
||||||
object_class->set_property = gst_vaapiencode_h264_set_property;
|
object_class->set_property = gst_vaapiencode_h264_set_property;
|
||||||
|
@ -323,9 +326,9 @@ gst_vaapiencode_h264_class_init (GstVaapiEncodeH264Class * klass)
|
||||||
encode_class->allocate_buffer = gst_vaapiencode_h264_alloc_buffer;
|
encode_class->allocate_buffer = gst_vaapiencode_h264_alloc_buffer;
|
||||||
|
|
||||||
gst_element_class_set_static_metadata (element_class,
|
gst_element_class_set_static_metadata (element_class,
|
||||||
"VA-API h264 encoder",
|
"VA-API H.264 encoder",
|
||||||
"Codec/Encoder/Video",
|
"Codec/Encoder/Video",
|
||||||
"A VA-API based video encoder", "Wind Yuan <feng.yuan@intel.com>");
|
GST_PLUGIN_DESC, "Wind Yuan <feng.yuan@intel.com>");
|
||||||
|
|
||||||
/* sink pad */
|
/* sink pad */
|
||||||
gst_element_class_add_pad_template (element_class,
|
gst_element_class_add_pad_template (element_class,
|
||||||
|
|
|
@ -30,6 +30,9 @@
|
||||||
#include "gstvaapivideomemory.h"
|
#include "gstvaapivideomemory.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define GST_PLUGIN_NAME "vaapiencode_mpeg2"
|
||||||
|
#define GST_PLUGIN_DESC "A VA-API based MPEG-2 video encoder"
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_STATIC (gst_vaapi_mpeg2_encode_debug);
|
GST_DEBUG_CATEGORY_STATIC (gst_vaapi_mpeg2_encode_debug);
|
||||||
#define GST_CAT_DEFAULT gst_vaapi_mpeg2_encode_debug
|
#define GST_CAT_DEFAULT gst_vaapi_mpeg2_encode_debug
|
||||||
|
|
||||||
|
@ -192,7 +195,7 @@ gst_vaapiencode_mpeg2_class_init (GstVaapiEncodeMpeg2Class * klass)
|
||||||
GstVaapiEncodeClass *const encode_class = GST_VAAPIENCODE_CLASS (klass);
|
GstVaapiEncodeClass *const encode_class = GST_VAAPIENCODE_CLASS (klass);
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_INIT (gst_vaapi_mpeg2_encode_debug,
|
GST_DEBUG_CATEGORY_INIT (gst_vaapi_mpeg2_encode_debug,
|
||||||
"vaapimpeg2encode", 0, "vaapimpeg2encode element");
|
GST_PLUGIN_NAME, 0, GST_PLUGIN_DESC);
|
||||||
|
|
||||||
object_class->finalize = gst_vaapiencode_mpeg2_finalize;
|
object_class->finalize = gst_vaapiencode_mpeg2_finalize;
|
||||||
object_class->set_property = gst_vaapiencode_mpeg2_set_property;
|
object_class->set_property = gst_vaapiencode_mpeg2_set_property;
|
||||||
|
@ -201,9 +204,9 @@ gst_vaapiencode_mpeg2_class_init (GstVaapiEncodeMpeg2Class * klass)
|
||||||
encode_class->create_encoder = gst_vaapiencode_mpeg2_create_encoder;
|
encode_class->create_encoder = gst_vaapiencode_mpeg2_create_encoder;
|
||||||
|
|
||||||
gst_element_class_set_static_metadata (element_class,
|
gst_element_class_set_static_metadata (element_class,
|
||||||
"VA-API mpeg2 encoder",
|
"VA-API MPEG-2 encoder",
|
||||||
"Codec/Encoder/Video",
|
"Codec/Encoder/Video",
|
||||||
"A VA-API based video encoder", "Guangxin Xu <guangxin.xu@intel.com>");
|
GST_PLUGIN_DESC, "Guangxin Xu <guangxin.xu@intel.com>");
|
||||||
|
|
||||||
/* sink pad */
|
/* sink pad */
|
||||||
gst_element_class_add_pad_template (element_class,
|
gst_element_class_add_pad_template (element_class,
|
||||||
|
|
Loading…
Reference in a new issue