diff options
Diffstat (limited to 'third_party/jpeg-xl/lib/extras/common.h')
-rw-r--r-- | third_party/jpeg-xl/lib/extras/common.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/third_party/jpeg-xl/lib/extras/common.h b/third_party/jpeg-xl/lib/extras/common.h new file mode 100644 index 0000000000..88ed581af3 --- /dev/null +++ b/third_party/jpeg-xl/lib/extras/common.h @@ -0,0 +1,26 @@ +// Copyright (c) the JPEG XL Project Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +#ifndef LIB_EXTRAS_COMMON_H_ +#define LIB_EXTRAS_COMMON_H_ + +#include <jxl/codestream_header.h> +#include <jxl/types.h> + +#include <vector> + +#include "lib/jxl/base/status.h" + +namespace jxl { +namespace extras { + +// TODO(sboukortt): consider exposing this as part of the C API. +Status SelectFormat(const std::vector<JxlPixelFormat>& accepted_formats, + const JxlBasicInfo& basic_info, JxlPixelFormat* format); + +} // namespace extras +} // namespace jxl + +#endif // LIB_EXTRAS_COMMON_H_ |