h265decoder: Remove unsued WpOffsetHalfRangeC
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 3 Nov 2020 16:23:15 +0000 (11:23 -0500)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 4 Nov 2020 17:53:23 +0000 (17:53 +0000)
This is only needed for VA implementation of weight tables and isn't used
within the base class.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1714>

gst-libs/gst/codecs/gsth265decoder.c

index 8307d3e..f6f154c 100644 (file)
@@ -71,7 +71,6 @@ struct _GstH265DecoderPrivate
   const GstH265PPS *active_pps;
 
   guint32 SpsMaxLatencyPictures;
-  gint32 WpOffsetHalfRangeC;
 
   /* Picture currently being processed/decoded */
   GstH265Picture *current_picture;
@@ -252,8 +251,6 @@ gst_h265_decoder_process_sps (GstH265Decoder * self, GstH265SPS * sps)
   gint MaxLumaPS;
   const gint MaxDpbPicBuf = 6;
   gint PicSizeInSamplesY;
-  guint high_precision_offsets_enabled_flag = 0;
-  guint bitdepthC = 0;
 
   /* A.4.1 */
   MaxLumaPS = 35651584;
@@ -298,13 +295,6 @@ gst_h265_decoder_process_sps (GstH265Decoder * self, GstH265SPS * sps)
         sps->max_latency_increase_plus1[sps->max_sub_layers_minus1] - 1;
   }
 
-  /* Calculate WpOffsetHalfRangeC: (7-34)
-   * FIXME: We don't have parser API for sps_range_extension, so
-   * assuming high_precision_offsets_enabled_flag as zero */
-  bitdepthC = sps->bit_depth_chroma_minus8 + 8;
-  priv->WpOffsetHalfRangeC =
-      1 << (high_precision_offsets_enabled_flag ? (bitdepthC - 1) : 7);
-
   GST_DEBUG_OBJECT (self, "Set DPB max size %d", max_dpb_size);
 
   return TRUE;