summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorHaihao Xiang <haihao.xiang@intel.com>2020-02-14 19:53:09 +0800
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-02-21 17:30:29 +0000
commit17d82e14e78af901f1cd7f2344e173ad6ae6a8a6 (patch)
treef938be8da03fdf3aa4d31433cac4d8a831360fde /gst-libs
parent4573d3eefe84c99fc4fda6d2b749abcb72abc7da (diff)
libs: h265enc: Set max_transform_hierarchy_depth_{inter, intra} to 2
Intel HW has limitation on max_transform_hierarchy_depth_inter and max_transform_hierarchy_depth_intra (see [1]). We can provide a quirk for other HWs if other HWs may support other values [1] https://01.org/sites/default/files/documentation/intel-gfx-prm-osrc-kbl-vol10-hevc.pdf
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/vaapi/gstvaapiencoder_h265.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h265.c b/gst-libs/gst/vaapi/gstvaapiencoder_h265.c
index 2c9b79a6..86ab5f81 100644
--- a/gst-libs/gst/vaapi/gstvaapiencoder_h265.c
+++ b/gst-libs/gst/vaapi/gstvaapiencoder_h265.c
@@ -1640,8 +1640,14 @@ fill_sequence (GstVaapiEncoderH265 * encoder, GstVaapiEncSequence * sequence)
seq_param->log2_diff_max_min_luma_coding_block_size = 2;
seq_param->log2_min_transform_block_size_minus2 = 0;
seq_param->log2_diff_max_min_transform_block_size = 3;
- seq_param->max_transform_hierarchy_depth_inter = 3;
- seq_param->max_transform_hierarchy_depth_intra = 3;
+ /*
+ * Intel HW supports up to 2, we can provide a quirk for other HWs in future
+ * if other HW may support other values
+ *
+ * Refer to https://01.org/sites/default/files/documentation/intel-gfx-prm-osrc-kbl-vol10-hevc.pdf
+ */
+ seq_param->max_transform_hierarchy_depth_inter = 2;
+ seq_param->max_transform_hierarchy_depth_intra = 2;
seq_param->pcm_sample_bit_depth_luma_minus1 = 0;
seq_param->pcm_sample_bit_depth_chroma_minus1 = 0;