pub trait MediaFrameTraitConst {
    fn as_raw_MediaFrame(&self) -> *const c_void;

    fn desc(&self) -> Result<GFrameDesc> { ... }
    fn blob_params(&self) -> Result<any> { ... }
}
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

Required Methods§

Provided Methods§

Returns a media frame descriptor – the information about the media format, dimensions, etc.

Returns

a cv::GFrameDesc

@private – exclude from the OpenCV documentation for now.

Implementors§