1. An encoder comprising: a DCT transformator operative to receive either of an image frame and a video frame and perform DCT transformation upon at least one pixel block in a macroblock of said frame, thereby providing a matrix of DCT coefficients; a zig-zag matrix-to-vector converter operative to receive said matrix of DCT coefficients from said DCT transformator and create a one-dimensional vector of DCT coefficients; an analyzer operative to receive said one-dimensional vector of DCT coefficients and classify said macroblock according to a level of detail and edginess; a rate controller operative to receive said classification information from said analyzer and select DCT filtering parameters; a DCT filter operative to receive said DCT filtering parameters selection from said rate controller and implement said DCT filtering parameters upon said frame, thereby providing a filtered DCT coefficient vector; a quantizer operative to quantize said filtered DCT coefficient vector; and a compressor operative to compress said quantized results.