Add some comments.

This commit is contained in:
siivonek 2023-08-22 14:01:58 +03:00 committed by Joose Sainio
parent 8d743be0d4
commit bcdd339a04

View file

@ -8095,6 +8095,7 @@ static void mts_dct_avx2(
else{
const int log2_width_minus1 = uvg_g_convert_to_log2[width] - 1;
const int log2_height_minus1 = uvg_g_convert_to_log2[height] - 1;
// Transforms with 1 lenght dimensions are handled separately since their interface differ from other full pass functions
if (height == 1) {
if (width == 16) {
fast_forward_DCT2_B16_avx2_hor(input, (__m256i*)output, type_hor == DCT2 ? ff_dct2_16xN_coeff_hor : ff_dst7_16xN_coeff_hor, 3, 1, 0, 0);
@ -8140,6 +8141,7 @@ static void mts_idct_avx2(
else {
const int log2_width_minus1 = uvg_g_convert_to_log2[width] - 1;
const int log2_height_minus1 = uvg_g_convert_to_log2[height] - 1;
// Transforms with 1 lenght dimensions can be transformed with existing forward functions
if (height == 1) {
if (width == 16) {
fast_forward_DCT2_B16_avx2_hor(input, (__m256i*)output, type_hor == DCT2 ? fi_dct2_16x1_coeff_hor : fi_dst7_16x1_coeff_hor, 13, 1, 0, 0);