Nondiscreete compression algorithm for video