color_description.h (617B)
1 // Copyright (c) the JPEG XL Project Authors. All rights reserved. 2 // 3 // Use of this source code is governed by a BSD-style 4 // license that can be found in the LICENSE file. 5 6 #ifndef LIB_EXTRAS_COLOR_DESCRIPTION_H_ 7 #define LIB_EXTRAS_COLOR_DESCRIPTION_H_ 8 9 #include <jxl/color_encoding.h> 10 11 #include <string> 12 13 #include "lib/jxl/base/status.h" 14 15 namespace jxl { 16 17 // Parse the color description into a JxlColorEncoding "RGB_D65_SRG_Rel_Lin". 18 Status ParseDescription(const std::string& description, 19 JxlColorEncoding* JXL_RESTRICT c); 20 21 } // namespace jxl 22 23 #endif // LIB_EXTRAS_COLOR_DESCRIPTION_H_