h265parse: Add missing const qualifier
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 22 Oct 2020 16:38:11 +0000 (12:38 -0400)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 2 Nov 2020 18:20:32 +0000 (18:20 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1750>

gst-libs/gst/codecparsers/gsth265parser.c
gst-libs/gst/codecparsers/gsth265parser.h

index 121f844..75f4a3b 100644 (file)
@@ -3362,7 +3362,7 @@ sort_fre_profile_matches (H265ExtensionProfileMatch * a,
 
 static GstH265Profile
 get_extension_profile (H265ExtensionProfile * profiles, guint num,
-    GstH265ProfileTierLevel * ptl)
+    const GstH265ProfileTierLevel * ptl)
 {
   GstH265Profile result = GST_H265_PROFILE_INVALID;
   guint i;
@@ -3465,7 +3465,7 @@ get_extension_profile (H265ExtensionProfile * profiles, guint num,
 }
 
 static GstH265Profile
-get_format_range_extension_profile (GstH265ProfileTierLevel * ptl)
+get_format_range_extension_profile (const GstH265ProfileTierLevel * ptl)
 {
   /* Profile idc: GST_H265_PROFILE_IDC_FORMAT_RANGE_EXTENSION
      See Table A.2 for the definition of those formats */
@@ -3518,7 +3518,7 @@ get_format_range_extension_profile (GstH265ProfileTierLevel * ptl)
 }
 
 static GstH265Profile
-get_3d_profile (GstH265ProfileTierLevel * ptl)
+get_3d_profile (const GstH265ProfileTierLevel * ptl)
 {
   /* profile idc: GST_H265_PROFILE_IDC_3D_MAIN */
   static H265ExtensionProfile profiles[] = {
@@ -3530,7 +3530,7 @@ get_3d_profile (GstH265ProfileTierLevel * ptl)
 }
 
 static GstH265Profile
-get_multiview_profile (GstH265ProfileTierLevel * ptl)
+get_multiview_profile (const GstH265ProfileTierLevel * ptl)
 {
   static H265ExtensionProfile profiles[] = {
     {GST_H265_PROFILE_MULTIVIEW_MAIN,
@@ -3541,7 +3541,7 @@ get_multiview_profile (GstH265ProfileTierLevel * ptl)
 }
 
 static GstH265Profile
-get_scalable_profile (GstH265ProfileTierLevel * ptl)
+get_scalable_profile (const GstH265ProfileTierLevel * ptl)
 {
   static H265ExtensionProfile profiles[] = {
     {GST_H265_PROFILE_SCALABLE_MAIN,
@@ -3554,7 +3554,7 @@ get_scalable_profile (GstH265ProfileTierLevel * ptl)
 }
 
 static GstH265Profile
-get_high_throughput_profile (GstH265ProfileTierLevel * ptl)
+get_high_throughput_profile (const GstH265ProfileTierLevel * ptl)
 {
   static H265ExtensionProfile profiles[] = {
     {GST_H265_PROFILE_HIGH_THROUGHPUT_444,
@@ -3571,7 +3571,8 @@ get_high_throughput_profile (GstH265ProfileTierLevel * ptl)
 }
 
 static GstH265Profile
-get_screen_content_coding_extensions_profile (GstH265ProfileTierLevel * ptl)
+get_screen_content_coding_extensions_profile (const GstH265ProfileTierLevel *
+    ptl)
 {
   static H265ExtensionProfile profiles[] = {
     {GST_H265_PROFILE_SCREEN_EXTENDED_MAIN,
@@ -3588,7 +3589,8 @@ get_screen_content_coding_extensions_profile (GstH265ProfileTierLevel * ptl)
 }
 
 static GstH265Profile
-get_scalable_format_range_extensions_profile (GstH265ProfileTierLevel * ptl)
+get_scalable_format_range_extensions_profile (const GstH265ProfileTierLevel *
+    ptl)
 {
   static H265ExtensionProfile profiles[] = {
     {GST_H265_PROFILE_SCALABLE_MONOCHROME,
@@ -3606,7 +3608,7 @@ get_scalable_format_range_extensions_profile (GstH265ProfileTierLevel * ptl)
 
 static GstH265Profile
     get_screen_content_coding_extensions_high_throughput_profile
-    (GstH265ProfileTierLevel * ptl)
+    (const GstH265ProfileTierLevel * ptl)
 {
   static H265ExtensionProfile profiles[] = {
     {GST_H265_PROFILE_SCREEN_EXTENDED_HIGH_THROUGHPUT_444,
@@ -3630,7 +3632,7 @@ static GstH265Profile
  * Since: 1.14
  */
 GstH265Profile
-gst_h265_profile_tier_level_get_profile (GstH265ProfileTierLevel * ptl)
+gst_h265_profile_tier_level_get_profile (const GstH265ProfileTierLevel * ptl)
 {
   if (ptl->profile_idc == GST_H265_PROFILE_IDC_MAIN
       || ptl->profile_compatibility_flag[1])
index 8234761..0d80c19 100644 (file)
@@ -1777,7 +1777,7 @@ void    gst_h265_quant_matrix_8x8_get_raster_from_uprightdiagonal (guint8 out_qu
         gst_h265_quant_matrix_8x8_get_raster_from_uprightdiagonal
 
 GST_CODEC_PARSERS_API
-GstH265Profile gst_h265_profile_tier_level_get_profile (GstH265ProfileTierLevel * ptl);
+GstH265Profile gst_h265_profile_tier_level_get_profile (const GstH265ProfileTierLevel * ptl);
 
 GST_CODEC_PARSERS_API
 const gchar * gst_h265_profile_to_string (GstH265Profile profile);