summaryrefslogtreecommitdiffstats
path: root/third_party/jpeg-xl/lib/extras/common.h
blob: 88ed581af3dc10e2fbdfb6f1b3304cd5f9689034 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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_