diff options
author | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2015-08-28 17:12:12 +0200 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2015-08-31 13:13:24 +0200 |
commit | cc63452d723ab8631c39a2d61ad745eeb0d97d7f (patch) | |
tree | 45012f2d58fc190bb138bd4415348791c5218a0b | |
parent | dbedad66df57babcdc6594e06f4897a57ef651f9 (diff) | |
download | gstreamer-vaapi-cc63452d723ab8631c39a2d61ad745eeb0d97d7f.tar.gz |
decoder: hevc: remove unused functions
Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=754250
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapidecoder_h265.c | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h265.c b/gst-libs/gst/vaapi/gstvaapidecoder_h265.c index f8da6651..d3acdfb2 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_h265.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_h265.c @@ -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) { |