diff options
Diffstat (limited to 'src/qcam/format_converter.h')
-rw-r--r-- | src/qcam/format_converter.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/qcam/format_converter.h b/src/qcam/format_converter.h new file mode 100644 index 00000000..196064c7 --- /dev/null +++ b/src/qcam/format_converter.h @@ -0,0 +1,25 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2019, Google Inc. + * + * format_convert.h - qcam - Convert buffer to RGB + */ +#ifndef __QCAM_FORMAT_CONVERTER_H__ +#define __QCAM_FORMAT_CONVERTER_H__ + +class FormatConverter +{ +public: + int configure(unsigned int format, unsigned int width, + unsigned int height); + + void convert(const unsigned char *src, unsigned char *dst); + +private: + unsigned int width_; + unsigned int height_; + unsigned int y_pos_; + unsigned int cb_pos_; +}; + +#endif /* __QCAM_FORMAT_CONVERTER_H__ */ |