Discontinuity Detection in the DCT Domain for Real-Time Processing