Files
external_libcamera/src/libcamera/include/formats.h
Laurent Pinchart 702dcb3105 libcamera: formats: Write libcamera in lowercase
The libcamera name should never be capitalized. Fix the two incorrect
occurrences.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
2019-10-28 13:04:38 +02:00

35 lines
729 B
C++

/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2019, Google Inc.
*
* formats.h - libcamera image formats
*/
#ifndef __LIBCAMERA_FORMATS_H__
#define __LIBCAMERA_FORMATS_H__
#include <map>
#include <vector>
#include <libcamera/geometry.h>
namespace libcamera {
class ImageFormats
{
public:
int addFormat(unsigned int format, const std::vector<SizeRange> &sizes);
bool isEmpty() const;
std::vector<unsigned int> formats() const;
const std::vector<SizeRange> &sizes(unsigned int format) const;
const std::map<unsigned int, std::vector<SizeRange>> &data() const;
private:
std::map<unsigned int, std::vector<SizeRange>> data_;
};
} /* namespace libcamera */
#endif /* __LIBCAMERA_FORMATS_H__ */