@Override public ColorSpace getInputColor() { if (videoEncoder == null) throw new IllegalStateException("Video encoder has not been initialized, init() must be called before using this class."); ColorSpace[] colorSpaces = videoEncoder.getSupportedColorSpaces(); return colorSpaces == null ? null : colorSpaces[0]; }