Upload quantiser and Huffman tables only if they are marked as dirty.
i.e. the user requested to load them.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
for (index = 0; index < num_tables; index++) {
int id = va_to_gen7_jpeg_hufftable[index];
+ if (!huffman_table->load_huffman_table[index])
+ continue;
BEGIN_BCS_BATCH(batch, 53);
OUT_BCS_BATCH(batch, MFX_JPEG_HUFF_TABLE_STATE | (53 - 2));
OUT_BCS_BATCH(batch, id);
unsigned char raster_qm[64];
int j;
+ if (!iq_matrix->load_quantiser_table[pic_param->components[index].quantiser_table_selector])
+ continue;
+
assert(precision == 8);
for (j = 0; j < 64; j++)