Motion JPEG (M-JPEG) is the video version of JPEG. It compresses an 8x8 block of pixels using cosine transofrms.
Here is an m-jpeg encoder in Verilog released under the permissive Cern 2 license.