8 #ifndef META_OCEAN_MEDIA_FRAME_MEDIUM_H
9 #define META_OCEAN_MEDIA_FRAME_MEDIUM_H
123 inline unsigned int croppingLeft()
const;
129 inline unsigned int croppingTop()
const;
135 inline unsigned int croppingWidth()
const;
141 inline unsigned int croppingHeight()
const;
156 inline void setCroppingArea(
const unsigned int left,
const unsigned int top,
const unsigned int width,
const unsigned int height);
164 unsigned int croppingLeft_ = 0u;
167 unsigned int croppingTop_ = 0u;
170 unsigned int croppingWidth_ = 0u;
173 unsigned int croppingHeight_ = 0u;
354 inline bool hasFrame()
const;
401 inline unsigned int preferredFrameWidth()
const;
408 inline unsigned int preferredFrameHeight()
const;
548 frequency_(frequency)
554 FrameType(mediaFrameType, width, height),
555 frequency_(mediaFrameType.frequency_),
556 croppingLeft_(mediaFrameType.croppingLeft_),
557 croppingTop_(mediaFrameType.croppingTop_),
558 croppingWidth_(mediaFrameType.croppingWidth_),
559 croppingHeight_(mediaFrameType.croppingHeight_)
567 frequency_(mediaFrameType.frequency_),
568 croppingLeft_(mediaFrameType.croppingLeft_),
569 croppingTop_(mediaFrameType.croppingTop_),
570 croppingWidth_(mediaFrameType.croppingWidth_),
571 croppingHeight_(mediaFrameType.croppingHeight_)
577 FrameType(mediaFrameType, pixelFormat, pixelOrigin),
578 frequency_(mediaFrameType.frequency_),
579 croppingLeft_(mediaFrameType.croppingLeft_),
580 croppingTop_(mediaFrameType.croppingTop_),
581 croppingWidth_(mediaFrameType.croppingWidth_),
582 croppingHeight_(mediaFrameType.croppingHeight_)
588 FrameType(width, height, pixelFormat, pixelOrigin),
589 frequency_(frequency)
601 return croppingLeft_;
611 return croppingWidth_;
616 return croppingHeight_;
621 frequency_ = frequency;
626 croppingLeft_ = left;
628 croppingWidth_ = width;
629 croppingHeight_ = height;
This class implements Ocean's image class.
Definition: Frame.h:1792
Definition of a frame type composed by the frame dimension, pixel format and pixel origin.
Definition: Frame.h:30
PixelFormat
Definition of all pixel formats available in the Ocean framework.
Definition: Frame.h:183
unsigned int width() const
Returns the width of the frame format in pixel.
Definition: Frame.h:3143
PixelFormat pixelFormat() const
Returns the pixel format of the frame.
Definition: Frame.h:3153
PixelOrigin
Defines different types of frame origin positions.
Definition: Frame.h:1046
unsigned int height() const
Returns the height of the frame in pixel.
Definition: Frame.h:3148
This class implements a recursive lock object.
Definition: Lock.h:31
This template class implements a object reference with an internal reference counter.
Definition: base/ObjectRef.h:58
This class implements a subscription object which can be used unique subscriptions to e....
Definition: ScopedSubscription.h:28
This class implements a timestamp.
Definition: Timestamp.h:36
std::vector< FrameRef > FrameRefs
Definition of a vector holding frame references.
Definition: Frame.h:1767
std::shared_ptr< AnyCamera > SharedAnyCamera
Definition of a shared pointer holding an AnyCamera object with Scalar precision.
Definition: AnyCamera.h:60
std::vector< HomogenousMatrixD4 > HomogenousMatricesD4
Definition of a vector holding HomogenousMatrixD4 objects.
Definition: HomogenousMatrix4.h:79
SharedAnyCamerasT< Scalar > SharedAnyCameras
Definition of a vector holding AnyCamera objects.
Definition: AnyCamera.h:90
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15