blob: 5785d91e825788860e869d33d8cba3c2841970a1 [file] [log] [blame] [edit]
// Copyright 2023 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef LORGNETTE_SCAN_PARAMETERS_H_
#define LORGNETTE_SCAN_PARAMETERS_H_
namespace lorgnette {
// The subset of SANE_Frame values that are supported.
enum FrameFormat {
kGrayscale,
kRGB,
};
// The subset of SANE_Parameters needed for frame formats we know how to decode.
struct ScanParameters {
FrameFormat format;
int bytes_per_line;
int pixels_per_line;
int lines;
int depth;
};
} // namespace lorgnette
#endif // LORGNETTE_SCAN_PARAMETERS_H_