nx_cloud_storage_sdk
1.0
Cloud Storage SDK
|
#include <i_stream_reader.h>
Public Member Functions | |
virtual ErrorCode | getNextData (IMediaDataPacket **packet)=0 |
Result< const IString * > | opaqueMetadata () const |
Ptr< const IList< ICodecInfo > > | codecInfoList () const |
virtual int64_t | startTimeUs () const =0 |
virtual int64_t | endTimeUs () const =0 |
virtual ErrorCode | seek (int64_t timestampUs, bool findKeyFrame, int64_t *selectedPositionUs)=0 |
![]() | |
virtual IRefCountable * | queryInterface (const InterfaceId *id) |
Ptr< RefCountable > | queryInterface () |
Ptr< const RefCountable > | queryInterface () const |
![]() | |
virtual | ~IRefCountable ()=default |
template<class RefCountable > | |
Ptr< RefCountable > | queryInterface () |
template<class RefCountable > | |
Ptr< const RefCountable > | queryInterface () const |
virtual int | addRef () const =0 |
virtual int | releaseRef () const =0 |
int | refCountThreadUnsafe () const |
Static Public Member Functions | |
static constexpr auto | interfaceId () |
![]() | |
static auto | interfaceId () |
Protected Member Functions | |
virtual void | getOpaqueMetadata (Result< const IString *> *outResult) const =0 |
virtual const IList< ICodecInfo > * | getCodecInfoList () const =0 |
![]() | |
virtual IRefCountable * | queryInterface (const IRefCountable::InterfaceId *id) override |
IRefCountable * | queryInterfaceSupportingDeprecatedId (const IRefCountable::InterfaceId *id, const Uuid &deprecatedInterfaceId) |
Additional Inherited Members | |
![]() | |
template<int len> | |
static constexpr const InterfaceId * | makeId (const char(&charArray)[len]) |
template<class TemplateInstance , class TemplateArg , int len> | |
static const InterfaceId * | makeIdForTemplate (const char(&baseIdCharArray)[len]) |
![]() | |
template<typename RefCountable > | |
static constexpr bool | hasAlternativeInterfaceId = HasAlternativeInterfaceId<RefCountable>::value |
Stream Reader for the media data chunk previously recorded by the Stream Writer.
|
inline |
Returns codec info list that was provided to the plugin when a stream writer for the corresponding media data chunk was created.
|
pure virtual |
Attempts to read a next media data packet. Should return ErrorCode::noData if there is no data left to read.
Implemented in nx::vms_server_plugins::cloud_storage::stub::StreamReader, and nx::vms_server_plugins::cloud_storage::sample::StreamReader.
Returns opaque metadata that was provided to the plugin when a stream writer for the corresponding media data chunk was created.
|
pure virtual |
Moves stream data cursor to the required position if possible. This position may be greater than requested if there is no media data packet with the exact timestamp. If 'findKeyFrame' is true, selected position should correspond to the media data packet which has 'isKeyFrame' flag set.
Implemented in nx::vms_server_plugins::cloud_storage::stub::StreamReader, and nx::vms_server_plugins::cloud_storage::sample::StreamReader.