add compress yuv method