OpenCV  4.6.0-pre
Open Source Computer Vision
Classes | Namespaces | Functions
s11n.hpp File Reference
#include <vector>
#include <map>
#include <unordered_map>
#include <opencv2/gapi/s11n/base.hpp>
#include <opencv2/gapi/gcomputation.hpp>
#include <opencv2/gapi/rmat.hpp>
#include <opencv2/gapi/media.hpp>
#include <opencv2/gapi/util/util.hpp>

Classes

struct  cv::gapi::s11n::IIStream
 This structure is an interface for deserialization routines. More...
 
struct  cv::gapi::s11n::IOStream
 This structure is an interface for serialization routines. More...
 

Namespaces

 cv
 "black box" representation of the file storage associated with a file on disk.
 
 cv::gapi
 
 cv::gapi::s11n
 This namespace contains G-API serialization and deserialization functions and data structures.
 
 cv::gapi::s11n::detail
 

Functions

template<>
cv::GComputation cv::gapi::deserialize (const std::vector< char > &bytes)
 Deserialize GComputation from a byte array. More...
 
template<>
cv::GMetaArgs cv::gapi::deserialize (const std::vector< char > &bytes)
 Deserialize GMetaArgs from a byte array. More...
 
template<>
cv::GRunArgs cv::gapi::deserialize (const std::vector< char > &bytes)
 Deserialize GRunArgs from a byte array. More...
 
template<>
std::vector< std::string > cv::gapi::deserialize (const std::vector< char > &bytes)
 Deserialize std::vector<std::string> from a byte array. More...
 
template<typename T , typename... Types>
std::enable_if< std::is_same< T, GCompileArgs >::value, GCompileArgs >::type cv::gapi::deserialize (const std::vector< char > &bytes)
 Deserialize GCompileArgs which types were specified in the template from a byte array. More...
 
template<typename T , typename AtLeastOneAdapterT , typename... AdapterTypes>
std::enable_if< std::is_same< T, GRunArgs >::value, GRunArgs >::type cv::gapi::deserialize (const std::vector< char > &bytes)
 Deserialize GRunArgs including RMat and MediaFrame objects if any from a byte array. More...
 
template<typename V >
IIStream & cv::gapi::s11n::detail::get_v (IIStream &, V &, std::size_t, std::size_t)
 
template<typename V , typename X , typename... Xs>
IIStream & cv::gapi::s11n::detail::get_v (IIStream &is, V &v, std::size_t i, std::size_t gi)
 
std::unique_ptr< IIStream > cv::gapi::s11n::detail::getInStream (const std::vector< char > &bytes)
 
IOStream & cv::gapi::s11n::operator<< (IOStream &os, const cv::Point &pt)
 
IOStream & cv::gapi::s11n::operator<< (IOStream &os, const cv::Point2f &pt)
 
IOStream & cv::gapi::s11n::operator<< (IOStream &os, const cv::Size &sz)
 
IOStream & cv::gapi::s11n::operator<< (IOStream &os, const cv::Rect &rc)
 
IOStream & cv::gapi::s11n::operator<< (IOStream &os, const cv::Scalar &s)
 
IOStream & cv::gapi::s11n::operator<< (IOStream &os, const cv::Mat &m)
 
IOStream & cv::gapi::s11n::operator<< (IOStream &os, const cv::UMat &um)
 
IOStream & cv::gapi::s11n::operator<< (IOStream &os, const cv::RMat &r)
 
IOStream & cv::gapi::s11n::operator<< (IOStream &os, const cv::gapi::wip::IStreamSource::Ptr &issptr)
 
IOStream & cv::gapi::s11n::operator<< (IOStream &os, const cv::detail::VectorRef &vr)
 
IOStream & cv::gapi::s11n::operator<< (IOStream &os, const cv::detail::OpaqueRef &opr)
 
template<typename K , typename V >
IOStream & cv::gapi::s11n::operator<< (IOStream &os, const std::map< K, V > &m)
 
template<typename K , typename V >
IOStream & cv::gapi::s11n::operator<< (IOStream &os, const std::unordered_map< K, V > &m)
 
template<typename T >
IOStream & cv::gapi::s11n::operator<< (IOStream &os, const std::vector< T > &ts)
 
template<typename... Ts>
IOStream & cv::gapi::s11n::operator<< (IOStream &os, const cv::util::variant< Ts... > &v)
 
IIStream & cv::gapi::s11n::operator>> (IIStream &is, cv::Point &pt)
 
IIStream & cv::gapi::s11n::operator>> (IIStream &is, cv::Point2f &pt)
 
IIStream & cv::gapi::s11n::operator>> (IIStream &is, cv::Size &sz)
 
IIStream & cv::gapi::s11n::operator>> (IIStream &is, cv::Rect &rc)
 
IIStream & cv::gapi::s11n::operator>> (IIStream &is, cv::Scalar &s)
 
IIStream & cv::gapi::s11n::operator>> (IIStream &is, cv::Mat &m)
 
IIStream & cv::gapi::s11n::operator>> (IIStream &is, cv::UMat &um)
 
IIStream & cv::gapi::s11n::operator>> (IIStream &is, cv::RMat &r)
 
IIStream & cv::gapi::s11n::operator>> (IIStream &is, cv::gapi::wip::IStreamSource::Ptr &issptr)
 
IIStream & cv::gapi::s11n::operator>> (IIStream &is, cv::detail::VectorRef &vr)
 
IIStream & cv::gapi::s11n::operator>> (IIStream &is, cv::detail::OpaqueRef &opr)
 
template<typename K , typename V >
IIStream & cv::gapi::s11n::operator>> (IIStream &is, std::map< K, V > &m)
 
template<typename K , typename V >
IIStream & cv::gapi::s11n::operator>> (IIStream &is, std::unordered_map< K, V > &m)
 
template<typename T >
IIStream & cv::gapi::s11n::operator>> (IIStream &is, std::vector< T > &ts)
 
template<typename... Ts>
IIStream & cv::gapi::s11n::operator>> (IIStream &is, cv::util::variant< Ts... > &v)
 
template<typename V >
IOStream & cv::gapi::s11n::detail::put_v (IOStream &, const V &, std::size_t)
 
template<typename V , typename X , typename... Xs>
IOStream & cv::gapi::s11n::detail::put_v (IOStream &os, const V &v, std::size_t x)
 
std::vector< char > cv::gapi::serialize (const cv::GComputation &c)
 Serialize a graph represented by GComputation into an array of bytes. More...
 
std::vector< char > cv::gapi::serialize (const cv::GCompileArgs &ca)
 
std::vector< char > cv::gapi::serialize (const cv::GMetaArgs &ma)
 
std::vector< char > cv::gapi::serialize (const cv::GRunArgs &ra)
 
std::vector< char > cv::gapi::serialize (const std::vector< std::string > &vs)