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;
356 inline bool hasFrame()
const;
403 inline unsigned int preferredFrameWidth()
const;
410 inline unsigned int preferredFrameHeight()
const;
559 frequency_(frequency)
565 FrameType(mediaFrameType, width, height),
566 frequency_(mediaFrameType.frequency_),
567 croppingLeft_(mediaFrameType.croppingLeft_),
568 croppingTop_(mediaFrameType.croppingTop_),
569 croppingWidth_(mediaFrameType.croppingWidth_),
570 croppingHeight_(mediaFrameType.croppingHeight_)
578 frequency_(mediaFrameType.frequency_),
579 croppingLeft_(mediaFrameType.croppingLeft_),
580 croppingTop_(mediaFrameType.croppingTop_),
581 croppingWidth_(mediaFrameType.croppingWidth_),
582 croppingHeight_(mediaFrameType.croppingHeight_)
588 FrameType(mediaFrameType, pixelFormat, pixelOrigin),
589 frequency_(mediaFrameType.frequency_),
590 croppingLeft_(mediaFrameType.croppingLeft_),
591 croppingTop_(mediaFrameType.croppingTop_),
592 croppingWidth_(mediaFrameType.croppingWidth_),
593 croppingHeight_(mediaFrameType.croppingHeight_)
599 FrameType(width, height, pixelFormat, pixelOrigin),
600 frequency_(frequency)
612 return croppingLeft_;
622 return croppingWidth_;
627 return croppingHeight_;
632 frequency_ = frequency;
637 croppingLeft_ = left;
639 croppingWidth_ = width;
640 croppingHeight_ = height;
This class implements Ocean's image class.
Definition Frame.h:1808
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:3170
PixelFormat pixelFormat() const
Returns the pixel format of the frame.
Definition Frame.h:3180
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:3175
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:1783
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