summaryrefslogtreecommitdiff
path: root/gst-libs/gst/codecparsers
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2020-10-22 12:38:11 -0400
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-11-02 18:20:32 +0000
commit2e2e93c30387e01f324f71445dbed3ed5e3f38a4 (patch)
tree3678c2f316495c571f5440e88e22f8140c93675c /gst-libs/gst/codecparsers
parent2f5257fd6978199995314658246edd94f5403f75 (diff)
downloadgstreamer-plugins-bad-2e2e93c30387e01f324f71445dbed3ed5e3f38a4.tar.gz
h265parse: Add missing const qualifier
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1750>
Diffstat (limited to 'gst-libs/gst/codecparsers')
-rw-r--r--gst-libs/gst/codecparsers/gsth265parser.c22
-rw-r--r--gst-libs/gst/codecparsers/gsth265parser.h2
2 files changed, 13 insertions, 11 deletions
diff --git a/gst-libs/gst/codecparsers/gsth265parser.c b/gst-libs/gst/codecparsers/gsth265parser.c
index 121f844cc..75f4a3b08 100644
--- a/gst-libs/gst/codecparsers/gsth265parser.c
+++ b/gst-libs/gst/codecparsers/gsth265parser.c
@@ -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])
diff --git a/gst-libs/gst/codecparsers/gsth265parser.h b/gst-libs/gst/codecparsers/gsth265parser.h
index 823476112..0d80c19b3 100644
--- a/gst-libs/gst/codecparsers/gsth265parser.h
+++ b/gst-libs/gst/codecparsers/gsth265parser.h
@@ -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);