Face Engine SDK  5.23.1
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
IImageTransfer.h
1 #pragma once
2 
3 #include <fsdk/FSDKError.h>
4 #include <fsdk/Types.h>
5 
6 #include <fsdk/vlc/future.h>
7 
8 #include <fsdk/IImagesBatch.h>
9 
10 namespace fsdk {
11 
12 #ifndef DOXYGEN_SHOULD_SKIP_THIS
13  DECLARE_SMARTPTR(IImageTransfer);
14 #endif
15 
30 
40  transfer(Span<const Image> images, Image::MemoryResidence residence) const noexcept = 0;
41 
53  Span<const Image> images,
54  Image::MemoryResidence residence,
55  Span<Result<FSDKError>> errors) const noexcept = 0;
56 
60  using ImagesBatchFuture = vlc::future<IImagesBatchPtr>;
61 
73  virtual ImagesBatchFuture
74  transferAsync(Span<const Image> images, Image::MemoryResidence residence) const = 0;
75  };
76 
78 } // namespace fsdk
virtual ResultValue< FSDKError, Ref< IImagesBatch > > transfer(Span< const Image > images, Image::MemoryResidence residence) const noexcept=0
Transfer of multiple images.
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
Common data types and structures.
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:37
MemoryResidence
Memory residence.
Definition: Image.h:107
virtual ImagesBatchFuture transferAsync(Span< const Image > images, Image::MemoryResidence residence) const =0
Asynchronously transfer multiple images.
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:21
vlc::future< IImagesBatchPtr > ImagesBatchFuture
Common alias for IImageTransfer asynchronous interface.
Definition: IImageTransfer.h:60
Image transfer facility which give speed up of usage internal memory pool.
Definition: IImageTransfer.h:29
virtual Result< FSDKError > validate(Span< const Image > images, Image::MemoryResidence residence, Span< Result< FSDKError >> errors) const noexcept=0
Validate input of multiple frames in a single function call.
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14