-- added method getFormats() to check for mjpeg compression.