-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjls.h
31 lines (25 loc) · 924 Bytes
/
jls.h
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
27
28
29
30
31
// Copyright (c) Mathieu Malaterre
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include "format.h"
#include <charls/charls.h>
namespace jlst {
class tran_options;
class jls : public format
{
public:
format* clone() const override;
bool handle_type(std::string const& type) const override;
bool detect(source& s, image_info const& ii) const override;
void read_info(source& s, image& i) const override;
void read_data(source& s, image& i) const override;
void write_info(dest& d, const image& i, const jls_options& jo) const override;
void write_data(dest& d, const image& i, const jls_options& jo) const override;
void transform(dest& d, source& s, const tran_options& jo) const;
void fix_jai(dest& d, source& s) const;
void fix_spiff(dest& d, source& s) const;
private:
charls::jpegls_decoder decoder_;
charls::jpegls_encoder encoder_;
};
} // namespace jlst