dynDCT: a dynamically adaptable integer DCT