The constant is used in a single place internally and doesn't belong to DebayerParams anymore. Let's use 256 directly. Signed-off-by: Milan Zamazal <mzamazal@redhat.com> Reviewed-by: Andrei Konovalov <andrey.konovalov.ynk@gmail.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
29 lines
499 B
C++
29 lines
499 B
C++
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (C) 2023, 2024 Red Hat Inc.
|
|
*
|
|
* Authors:
|
|
* Hans de Goede <hdegoede@redhat.com>
|
|
*
|
|
* DebayerParams header
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <array>
|
|
#include <stdint.h>
|
|
|
|
namespace libcamera {
|
|
|
|
struct DebayerParams {
|
|
static constexpr unsigned int kRGBLookupSize = 256;
|
|
|
|
using ColorLookupTable = std::array<uint8_t, kRGBLookupSize>;
|
|
|
|
ColorLookupTable red;
|
|
ColorLookupTable green;
|
|
ColorLookupTable blue;
|
|
};
|
|
|
|
} /* namespace libcamera */
|