mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
libs: Move from g_debug to GST_DEBUG.
https://bugzilla.gnome.org/show_bug.cgi?id=797202
This commit is contained in:
parent
ee27377cb3
commit
5567a3d2cd
4 changed files with 25 additions and 16 deletions
|
@ -182,7 +182,7 @@ get_profile (guint profile_idc)
|
|||
profile = GST_VAAPI_PROFILE_VP9_3;
|
||||
break;
|
||||
default:
|
||||
g_debug ("unsupported profile_idc value");
|
||||
GST_DEBUG ("unsupported profile_idc value");
|
||||
profile = GST_VAAPI_PROFILE_UNKNOWN;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -25,6 +25,9 @@
|
|||
#include "gstvaapicompat.h"
|
||||
#include "gstvaapiutils_h264_priv.h"
|
||||
|
||||
#define DEBUG 1
|
||||
#include "gstvaapidebug.h"
|
||||
|
||||
struct map
|
||||
{
|
||||
guint value;
|
||||
|
@ -185,7 +188,7 @@ gst_vaapi_utils_h264_get_profile (guint8 profile_idc)
|
|||
profile = GST_VAAPI_PROFILE_H264_STEREO_HIGH;
|
||||
break;
|
||||
default:
|
||||
g_debug ("unsupported profile_idc value");
|
||||
GST_DEBUG ("unsupported profile_idc value");
|
||||
profile = GST_VAAPI_PROFILE_UNKNOWN;
|
||||
break;
|
||||
}
|
||||
|
@ -234,7 +237,7 @@ gst_vaapi_utils_h264_get_profile_idc (GstVaapiProfile profile)
|
|||
profile_idc = GST_H264_PROFILE_STEREO_HIGH;
|
||||
break;
|
||||
default:
|
||||
g_debug ("unsupported GstVaapiProfile value");
|
||||
GST_DEBUG ("unsupported GstVaapiProfile value");
|
||||
profile_idc = 0;
|
||||
break;
|
||||
}
|
||||
|
@ -274,7 +277,7 @@ gst_vaapi_utils_h264_get_level (guint8 level_idc)
|
|||
if (llp->level_idc == level_idc)
|
||||
return llp->level;
|
||||
}
|
||||
g_debug ("unsupported level_idc value");
|
||||
GST_DEBUG ("unsupported level_idc value");
|
||||
return (GstVaapiLevelH264) 0;
|
||||
}
|
||||
|
||||
|
@ -371,7 +374,7 @@ gst_vaapi_utils_h264_get_chroma_type (guint chroma_format_idc)
|
|||
chroma_type = GST_VAAPI_CHROMA_TYPE_YUV444;
|
||||
break;
|
||||
default:
|
||||
g_debug ("unsupported chroma_format_idc value");
|
||||
GST_DEBUG ("unsupported chroma_format_idc value");
|
||||
chroma_type = (GstVaapiChromaType) 0;
|
||||
break;
|
||||
}
|
||||
|
@ -398,7 +401,7 @@ gst_vaapi_utils_h264_get_chroma_format_idc (GstVaapiChromaType chroma_type)
|
|||
chroma_format_idc = 3;
|
||||
break;
|
||||
default:
|
||||
g_debug ("unsupported GstVaapiChromaType value");
|
||||
GST_DEBUG ("unsupported GstVaapiChromaType value");
|
||||
chroma_format_idc = 1;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -25,6 +25,9 @@
|
|||
#include "gstvaapicompat.h"
|
||||
#include "gstvaapiutils_h265_priv.h"
|
||||
|
||||
#define DEBUG 1
|
||||
#include "gstvaapidebug.h"
|
||||
|
||||
struct map
|
||||
{
|
||||
guint value;
|
||||
|
@ -160,7 +163,7 @@ gst_vaapi_utils_h265_get_profile (GstH265SPS * sps)
|
|||
break;
|
||||
}
|
||||
default:
|
||||
g_debug ("unsupported profile_idc value");
|
||||
GST_DEBUG ("unsupported profile_idc value");
|
||||
profile = GST_VAAPI_PROFILE_UNKNOWN;
|
||||
break;
|
||||
}
|
||||
|
@ -187,7 +190,7 @@ gst_vaapi_utils_h265_get_profile_idc (GstVaapiProfile profile)
|
|||
profile_idc = GST_H265_PROFILE_MAIN_422_10;
|
||||
break;
|
||||
default:
|
||||
g_debug ("unsupported GstVaapiProfile value");
|
||||
GST_DEBUG ("unsupported GstVaapiProfile value");
|
||||
profile_idc = 0;
|
||||
break;
|
||||
}
|
||||
|
@ -223,7 +226,7 @@ gst_vaapi_utils_h265_get_level (guint8 level_idc)
|
|||
if (llp->level_idc == level_idc)
|
||||
return llp->level;
|
||||
}
|
||||
g_debug ("unsupported level_idc value");
|
||||
GST_DEBUG ("unsupported level_idc value");
|
||||
return (GstVaapiLevelH265) 0;
|
||||
}
|
||||
|
||||
|
@ -320,7 +323,7 @@ gst_vaapi_utils_h265_get_chroma_type (guint chroma_format_idc,
|
|||
chroma_type = GST_VAAPI_CHROMA_TYPE_YUV444;
|
||||
break;
|
||||
default:
|
||||
g_debug ("unsupported chroma_format_idc value");
|
||||
GST_DEBUG ("unsupported chroma_format_idc value");
|
||||
chroma_type = (GstVaapiChromaType) 0;
|
||||
break;
|
||||
}
|
||||
|
@ -348,7 +351,7 @@ gst_vaapi_utils_h265_get_chroma_format_idc (GstVaapiChromaType chroma_type)
|
|||
chroma_format_idc = 3;
|
||||
break;
|
||||
default:
|
||||
g_debug ("unsupported GstVaapiChromaType value");
|
||||
GST_DEBUG ("unsupported GstVaapiChromaType value");
|
||||
chroma_format_idc = 1;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -25,6 +25,9 @@
|
|||
#include "gstvaapicompat.h"
|
||||
#include "gstvaapiutils_mpeg2_priv.h"
|
||||
|
||||
#define DEBUG 1
|
||||
#include "gstvaapidebug.h"
|
||||
|
||||
struct map
|
||||
{
|
||||
guint value;
|
||||
|
@ -124,7 +127,7 @@ gst_vaapi_utils_mpeg2_get_profile (guint8 profile_idc)
|
|||
profile = GST_VAAPI_PROFILE_MPEG2_HIGH;
|
||||
break;
|
||||
default:
|
||||
g_debug ("unsupported profile_idc value");
|
||||
GST_DEBUG ("unsupported profile_idc value");
|
||||
profile = GST_VAAPI_PROFILE_UNKNOWN;
|
||||
break;
|
||||
}
|
||||
|
@ -148,7 +151,7 @@ gst_vaapi_utils_mpeg2_get_profile_idc (GstVaapiProfile profile)
|
|||
profile_idc = GST_MPEG_VIDEO_PROFILE_HIGH;
|
||||
break;
|
||||
default:
|
||||
g_debug ("unsupported GstVaapiProfile value");
|
||||
GST_DEBUG ("unsupported GstVaapiProfile value");
|
||||
profile_idc = 0;
|
||||
break;
|
||||
}
|
||||
|
@ -185,7 +188,7 @@ gst_vaapi_utils_mpeg2_get_level (guint8 level_idc)
|
|||
if (llp->level_idc == level_idc)
|
||||
return llp->level;
|
||||
}
|
||||
g_debug ("unsupported level_idc value");
|
||||
GST_DEBUG ("unsupported level_idc value");
|
||||
return (GstVaapiLevelMPEG2) 0;
|
||||
}
|
||||
|
||||
|
@ -253,7 +256,7 @@ gst_vaapi_utils_mpeg2_get_chroma_type (guint chroma_format_idc)
|
|||
chroma_type = GST_VAAPI_CHROMA_TYPE_YUV444;
|
||||
break;
|
||||
default:
|
||||
g_debug ("unsupported chroma_format_idc value");
|
||||
GST_DEBUG ("unsupported chroma_format_idc value");
|
||||
chroma_type = (GstVaapiChromaType) 0;
|
||||
break;
|
||||
}
|
||||
|
@ -277,7 +280,7 @@ gst_vaapi_utils_mpeg2_get_chroma_format_idc (GstVaapiChromaType chroma_type)
|
|||
chroma_format_idc = GST_MPEG_VIDEO_CHROMA_444;
|
||||
break;
|
||||
default:
|
||||
g_debug ("unsupported GstVaapiChromaType value");
|
||||
GST_DEBUG ("unsupported GstVaapiChromaType value");
|
||||
chroma_format_idc = 1;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue