mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
nvenc: Add debug catagory for nvh264enc
https://bugzilla.gnome.org/show_bug.cgi?id=795037
This commit is contained in:
parent
52372a25c7
commit
6242dae832
4 changed files with 9 additions and 1 deletions
|
@ -27,6 +27,8 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#define GST_CAT_DEFAULT gst_nvenc_debug
|
||||
|
||||
#if HAVE_NVENC_GST_GL
|
||||
#include <cuda.h>
|
||||
#include <cuda_runtime_api.h>
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include "gstnvh264enc.h"
|
||||
|
||||
GST_DEBUG_CATEGORY (gst_nvenc_debug);
|
||||
#define GST_CAT_DEFAULT gst_nvenc_debug
|
||||
|
||||
static NV_ENCODE_API_FUNCTION_LIST nvenc_api;
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#include <cuda.h>
|
||||
|
||||
GST_DEBUG_CATEGORY_EXTERN (gst_nvenc_debug);
|
||||
#define GST_CAT_DEFAULT gst_nvenc_debug
|
||||
|
||||
CUcontext gst_nvenc_create_cuda_context (guint device_id);
|
||||
|
||||
|
|
|
@ -27,6 +27,9 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_nv_h264_enc_debug);
|
||||
#define GST_CAT_DEFAULT gst_nv_h264_enc_debug
|
||||
|
||||
#if HAVE_GST_GL
|
||||
#include <cuda.h>
|
||||
#include <cuda_runtime_api.h>
|
||||
|
@ -97,6 +100,9 @@ gst_nv_h264_enc_class_init (GstNvH264EncClass * klass)
|
|||
"Encode H.264 video streams using NVIDIA's hardware-accelerated NVENC encoder API",
|
||||
"Tim-Philipp Müller <tim@centricular.com>\n"
|
||||
"Matthew Waters <matthew@centricular.com>");
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (gst_nv_h264_enc_debug,
|
||||
"nvh264enc", 0, "Nvidia H.264 encoder");
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue