DecodeTrace: Combined together get_pixels_offset with get_samples_per_pixel