From 5ea1f8a548aa779049175dc011b965465f46a4c8 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sun, 15 Oct 2023 00:27:27 +0900 Subject: [PATCH] d3d11converter: Print calculated matrix for debugging Part-of: --- .../gst-libs/gst/d3d11/gstd3d11converter.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11converter.cpp b/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11converter.cpp index 0a67c6abab..8cbed6f7cd 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11converter.cpp +++ b/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11converter.cpp @@ -1397,6 +1397,21 @@ gst_d3d11_converter_calculate_matrix (GstD3D11Converter * self, break; } + if (gst_debug_category_get_threshold (GST_CAT_DEFAULT) >= GST_LEVEL_DEBUG) { + gchar *matrix_dump; + matrix_dump = gst_d3d11_dump_color_matrix (&pre_coeff); + GST_DEBUG_OBJECT (self, "PreCoeff \n%s", matrix_dump); + g_free (matrix_dump); + + matrix_dump = gst_d3d11_dump_color_matrix (&primaries_coeff); + GST_DEBUG_OBJECT (self, "PrimaryCoeff \n%s", matrix_dump); + g_free (matrix_dump); + + matrix_dump = gst_d3d11_dump_color_matrix (&post_coeff); + GST_DEBUG_OBJECT (self, "PostCoeff \n%s", matrix_dump); + g_free (matrix_dump); + } + PSColorSpace *preCoeff = &priv->const_data.preCoeff; PSColorSpace *postCoeff = &priv->const_data.postCoeff; PSColorSpace *primariesCoeff = &priv->const_data.primariesCoeff;