Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2206>
#include "gstqsvallocator_va.h"
#endif /* G_OS_WIN32 */
-GST_DEBUG_CATEGORY_EXTERN (gst_qsv_decoder_debug);
+GST_DEBUG_CATEGORY_STATIC (gst_qsv_decoder_debug);
#define GST_CAT_DEFAULT gst_qsv_decoder_debug
#define GST_QSV_DECODER_FLOW_NEW_SEQUENCE GST_FLOW_CUSTOM_SUCCESS_1
};
#define gst_qsv_decoder_parent_class parent_class
-G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GstQsvDecoder, gst_qsv_decoder,
- GST_TYPE_VIDEO_DECODER);
+G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstQsvDecoder, gst_qsv_decoder,
+ GST_TYPE_VIDEO_DECODER, G_ADD_PRIVATE (GstQsvDecoder);
+ GST_DEBUG_CATEGORY_INIT (gst_qsv_decoder_debug,
+ "qsvdecoder", 0, "qsvdecoder"));
static void gst_qsv_decoder_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec);
#include "gstqsvallocator_va.h"
#endif /* G_OS_WIN32 */
-GST_DEBUG_CATEGORY_EXTERN (gst_qsv_encoder_debug);
+GST_DEBUG_CATEGORY_STATIC (gst_qsv_encoder_debug);
#define GST_CAT_DEFAULT gst_qsv_encoder_debug
GType
};
#define gst_qsv_encoder_parent_class parent_class
-G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GstQsvEncoder, gst_qsv_encoder,
- GST_TYPE_VIDEO_ENCODER);
+G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstQsvEncoder, gst_qsv_encoder,
+ GST_TYPE_VIDEO_ENCODER, G_ADD_PRIVATE (GstQsvEncoder);
+ GST_DEBUG_CATEGORY_INIT (gst_qsv_encoder_debug,
+ "qsvencoder", 0, "qsvencoder"));
static void gst_qsv_encoder_dispose (GObject * object);
static void gst_qsv_encoder_finalize (GObject * object);
#include <gst/va/gstvadisplay_drm.h>
#endif
-GST_DEBUG_CATEGORY_EXTERN (gst_qsv_h264_dec_debug);
+GST_DEBUG_CATEGORY_STATIC (gst_qsv_h264_dec_debug);
#define GST_CAT_DEFAULT gst_qsv_h264_dec_debug
typedef struct _GstQsvH264Dec
};
Resolution max_resolution;
+ GST_DEBUG_CATEGORY_INIT (gst_qsv_h264_dec_debug,
+ "qsvh264dec", 0, "qsvh264dec");
+
memset (¶m, 0, sizeof (mfxVideoParam));
memset (&max_resolution, 0, sizeof (Resolution));
#include <gst/va/gstva.h>
#endif
-GST_DEBUG_CATEGORY_EXTERN (gst_qsv_h264_enc_debug);
+GST_DEBUG_CATEGORY_STATIC (gst_qsv_h264_enc_debug);
#define GST_CAT_DEFAULT gst_qsv_h264_enc_debug
typedef enum
Resolution max_resolution;
bool supports_interlaced = false;
+ GST_DEBUG_CATEGORY_INIT (gst_qsv_h264_enc_debug,
+ "qsvh264enc", 0, "qsvh264enc");
+
memset (¶m, 0, sizeof (mfxVideoParam));
memset (&max_resolution, 0, sizeof (Resolution));
#include <gst/va/gstva.h>
#endif
-GST_DEBUG_CATEGORY_EXTERN (gst_qsv_h265_enc_debug);
+GST_DEBUG_CATEGORY_STATIC (gst_qsv_h265_enc_debug);
#define GST_CAT_DEFAULT gst_qsv_h265_enc_debug
typedef enum
mfxExtBuffer *ext_buffers[2];
gboolean hdr10_aware = FALSE;
+ GST_DEBUG_CATEGORY_INIT (gst_qsv_h265_enc_debug,
+ "qsvh265enc", 0, "qsvh265enc");
+
memset (¶m, 0, sizeof (mfxVideoParam));
memset (&max_resolution, 0, sizeof (Resolution));
memset (&cll, 0, sizeof (mfxExtContentLightLevelInfo));
#include <gst/va/gstva.h>
#endif
-GST_DEBUG_CATEGORY_EXTERN (gst_qsv_jpeg_enc_debug);
+GST_DEBUG_CATEGORY_STATIC (gst_qsv_jpeg_enc_debug);
#define GST_CAT_DEFAULT gst_qsv_jpeg_enc_debug
enum
mfxStatus status;
gboolean interlaved = TRUE;
+ GST_DEBUG_CATEGORY_INIT (gst_qsv_jpeg_enc_debug,
+ "qsvjpegenc", 0, "qsvjpegenc");
+
memset (¶m, 0, sizeof (mfxVideoParam));
memset (&max_resolution, 0, sizeof (Resolution));
#include <gst/va/gstva.h>
#endif
-GST_DEBUG_CATEGORY_EXTERN (gst_qsv_vp9_enc_debug);
+GST_DEBUG_CATEGORY_STATIC (gst_qsv_vp9_enc_debug);
#define GST_CAT_DEFAULT gst_qsv_vp9_enc_debug
#define GST_TYPE_QSV_VP9_ENC_RATE_CONTROL (gst_qsv_vp9_enc_rate_control_get_type ())
mfxExtVP9Param vp9_param;
mfxExtBuffer *ext_bufs[1];
+ GST_DEBUG_CATEGORY_INIT (gst_qsv_vp9_enc_debug, "qsvvp9enc", 0, "qsvvp9enc");
+
memset (¶m, 0, sizeof (mfxVideoParam));
memset (&max_resolution, 0, sizeof (Resolution));
GST_DEBUG_CATEGORY (gst_qsv_debug);
GST_DEBUG_CATEGORY (gst_qsv_allocator_debug);
-GST_DEBUG_CATEGORY (gst_qsv_decoder_debug);
-GST_DEBUG_CATEGORY (gst_qsv_encoder_debug);
-GST_DEBUG_CATEGORY (gst_qsv_h264_dec_debug);
-GST_DEBUG_CATEGORY (gst_qsv_h264_enc_debug);
-GST_DEBUG_CATEGORY (gst_qsv_h265_enc_debug);
-GST_DEBUG_CATEGORY (gst_qsv_jpeg_enc_debug);
-GST_DEBUG_CATEGORY (gst_qsv_vp9_enc_debug);
#define GST_CAT_DEFAULT gst_qsv_debug
#endif
GST_DEBUG_CATEGORY_INIT (gst_qsv_debug, "qsv", 0, "Intel Quick Sync Video");
+ GST_DEBUG_CATEGORY_INIT (gst_qsv_allocator_debug,
+ "qsvallocator", 0, "qsvallocator");
loader = gst_qsv_get_loader ();
if (!loader)
GST_INFO ("Found %d platform devices", g_list_length (platform_devices));
- GST_DEBUG_CATEGORY_INIT (gst_qsv_allocator_debug,
- "qsvallocator", 0, "qsvallocator");
- GST_DEBUG_CATEGORY_INIT (gst_qsv_decoder_debug,
- "qsvdecoder", 0, "qsvdecoder");
- GST_DEBUG_CATEGORY_INIT (gst_qsv_encoder_debug,
- "qsvencoder", 0, "qsvencoder");
- GST_DEBUG_CATEGORY_INIT (gst_qsv_h264_dec_debug,
- "qsvh264dec", 0, "qsvh264dec");
- GST_DEBUG_CATEGORY_INIT (gst_qsv_h264_enc_debug,
- "qsvh264enc", 0, "qsvh264enc");
- GST_DEBUG_CATEGORY_INIT (gst_qsv_h265_enc_debug,
- "qsvh265enc", 0, "qsvh265enc");
- GST_DEBUG_CATEGORY_INIT (gst_qsv_jpeg_enc_debug,
- "qsvjpegenc", 0, "qsvjpegenc");
- GST_DEBUG_CATEGORY_INIT (gst_qsv_vp9_enc_debug, "qsvvp9enc", 0, "qsvvp9enc");
-
do {
mfxStatus status = MFX_ERR_NONE;
mfxSession session = nullptr;