diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-07-15 01:49:32 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-07-15 17:29:59 +0300 |
commit | 945eedaf2f1106b1ac580cb43f259d33c785776c (patch) | |
tree | 648b86145d550ce953de8c1a404085a3abc76494 /src | |
parent | 4f509caa8ed0166ef2e99846f12b7997a37c3a7e (diff) |
libcamera: geometry: Turn Size and Rectangle into classes
SizeRange is defined as a class while Size and Rectangle are defined as
struct. This is confusing for users in forward declarations. Simplify it
by turning both structures into classes.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/pipeline/ipu3/cio2.h | 2 | ||||
-rw-r--r-- | src/libcamera/pipeline/ipu3/imgu.h | 2 | ||||
-rw-r--r-- | src/libcamera/pipeline/simple/converter.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libcamera/pipeline/ipu3/cio2.h b/src/libcamera/pipeline/ipu3/cio2.h index 4fd949f8..956355a0 100644 --- a/src/libcamera/pipeline/ipu3/cio2.h +++ b/src/libcamera/pipeline/ipu3/cio2.h @@ -21,8 +21,8 @@ class CameraSensor; class FrameBuffer; class MediaDevice; class Request; +class Size; class V4L2Subdevice; -struct Size; struct StreamConfiguration; class CIO2Device diff --git a/src/libcamera/pipeline/ipu3/imgu.h b/src/libcamera/pipeline/ipu3/imgu.h index 5c124af2..23ec1ca1 100644 --- a/src/libcamera/pipeline/ipu3/imgu.h +++ b/src/libcamera/pipeline/ipu3/imgu.h @@ -17,7 +17,7 @@ namespace libcamera { class FrameBuffer; class MediaDevice; -struct Size; +class Size; struct StreamConfiguration; class ImgUDevice diff --git a/src/libcamera/pipeline/simple/converter.h b/src/libcamera/pipeline/simple/converter.h index 8ca88912..78296680 100644 --- a/src/libcamera/pipeline/simple/converter.h +++ b/src/libcamera/pipeline/simple/converter.h @@ -20,7 +20,7 @@ namespace libcamera { class FrameBuffer; class MediaDevice; -struct Size; +class Size; class SizeRange; struct StreamConfiguration; class V4L2M2MDevice; |