summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKaaira Gupta <kgupta@es.iitr.ac.in>2020-04-03 21:36:23 +0530
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-04-04 00:39:44 +0300
commit72278369b30af757c8ab756cc6c9cadcf15684d5 (patch)
tree3d6ae5dd03789af6aa83aeb9e2aa02275a5b6566 /include
parent8f8992e4ee181f1efba3b8ab5eb680e425bf1b12 (diff)
libcamera: pixelformats: Replace set of modifiers with single value
DRM fourccs look like they have a per-plane modifier, but in fact each of them should be same. Hence instead of passing a set of modifiers for each fourcc in PixelFormat class, we can pass just a single modifier. So, replace the set with a single value. Signed-off-by: Kaaira Gupta <kgupta@es.iitr.ac.in> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> [Fix compilation error in src/libcamera/pipeline/ipu3/ipu3.cpp] Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/pixelformats.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libcamera/pixelformats.h b/include/libcamera/pixelformats.h
index 9ce6f7f0..89966e5e 100644
--- a/include/libcamera/pixelformats.h
+++ b/include/libcamera/pixelformats.h
@@ -19,7 +19,7 @@ class PixelFormat
{
public:
PixelFormat();
- explicit PixelFormat(uint32_t fourcc, const std::set<uint64_t> &modifiers = {});
+ explicit PixelFormat(uint32_t fourcc, uint64_t modifier = 0);
bool operator==(const PixelFormat &other) const;
bool operator!=(const PixelFormat &other) const { return !(*this == other); }
@@ -29,13 +29,13 @@ public:
operator uint32_t() const { return fourcc_; }
uint32_t fourcc() const { return fourcc_; }
- const std::set<uint64_t> &modifiers() const { return modifiers_; }
+ uint64_t modifier() const { return modifier_; }
std::string toString() const;
private:
uint32_t fourcc_;
- std::set<uint64_t> modifiers_;
+ uint64_t modifier_;
};
} /* namespace libcamera */