Struct opencv::gapi::MediaFrame
source · pub struct MediaFrame { /* private fields */ }Expand description
\addtogroup gapi_data_structures
Extra G-API data structures used to pass input/output data to the graph for processing. /
cv::MediaFrame class represents an image/media frame obtained from an external source.
cv::MediaFrame represents image data as specified in cv::MediaFormat. cv::MediaFrame is designed to be a thin wrapper over some external memory of buffer; the class itself provides an uniform interface over such types of memory. cv::MediaFrame wraps data from a camera driver or from a media codec and provides an abstraction layer over this memory to G-API. MediaFrame defines a compact interface to access and manage the underlying data; the implementation is fully defined by the associated Adapter (which is usually user-defined).
See also
cv::RMat
Implementations§
source§impl MediaFrame
impl MediaFrame
sourcepub fn default() -> Result<MediaFrame>
pub fn default() -> Result<MediaFrame>
Constructs an empty MediaFrame
The constructed object has no any data associated with it.