decoder: hevc: remove unused functions
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Fri, 28 Aug 2015 15:12:12 +0000 (17:12 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Mon, 31 Aug 2015 11:13:24 +0000 (13:13 +0200)
Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=754250

gst-libs/gst/vaapi/gstvaapidecoder_h265.c

index f8da665..d3acdfb 100644 (file)
@@ -573,6 +573,12 @@ get_sps (GstVaapiDecoderH265 * decoder)
   return pi ? &pi->data.sps : NULL;
 }
 
+/* VPS nal is not necessary to decode the base layers, so this is not
+ * needed at the moment. But in future we need this, especially when
+ * dealing with MVC and scalable layer decoding.
+ * See https://bugzilla.gnome.org/show_bug.cgi?id=754250
+ */
+#if 0
 /* Activate the supplied VPS */
 static GstH265VPS *
 ensure_vps (GstVaapiDecoderH265 * decoder, GstH265VPS * vps)
@@ -591,6 +597,7 @@ get_vps (GstVaapiDecoderH265 * decoder)
   GstVaapiParserInfoH265 *const pi = decoder->priv.active_vps;
   return pi ? &pi->data.vps : NULL;
 }
+#endif
 
 /* Get number of reference frames to use */
 static guint
@@ -1342,24 +1349,6 @@ parse_sps (GstVaapiDecoderH265 * decoder, GstVaapiDecoderUnit * unit)
   return GST_VAAPI_DECODER_STATUS_SUCCESS;
 }
 
-static void
-get_pic_width_height_in_ctbs (GstH265PPS * pps,
-    guint * PicWidthInCtbsY, guint * PicHeightInCtbsY)
-{
-  gint MinCbLog2SizeY, CtbLog2SizeY, MinCbSizeY, CtbSizeY;
-  GstH265SPS *sps = pps->sps;
-
-  MinCbLog2SizeY = sps->log2_min_luma_coding_block_size_minus3 + 3;
-  CtbLog2SizeY = MinCbLog2SizeY + sps->log2_diff_max_min_luma_coding_block_size;
-  MinCbSizeY = 1 << MinCbLog2SizeY;
-  CtbSizeY = 1 << CtbLog2SizeY;
-
-  *PicWidthInCtbsY =
-      ceil ((double) sps->pic_width_in_luma_samples / (double) CtbSizeY);
-  *PicHeightInCtbsY =
-      ceil ((double) sps->pic_height_in_luma_samples / (double) CtbSizeY);
-}
-
 static GstVaapiDecoderStatus
 parse_pps (GstVaapiDecoderH265 * decoder, GstVaapiDecoderUnit * unit)
 {