nx_cloud_storage_sdk
1.0
Cloud Storage SDK
|
Public Member Functions | |
StreamWriter (const std::shared_ptr< DataManager > &dataManager, const std::string &deviceId, int streamIndex, int64_t startTimeMs, const nx::sdk::IList< nx::sdk::cloud_storage::ICodecInfo > *codecList, const char *opaqueMetadata) | |
virtual nx::sdk::ErrorCode | putData (const nx::sdk::cloud_storage::IMediaDataPacket *packet) override |
virtual nx::sdk::ErrorCode | close (int64_t durationMs) override |
virtual int | size () const override |
![]() | |
RefCountable (const RefCountable &)=delete | |
RefCountable (RefCountable &&)=delete | |
RefCountable & | operator= (const RefCountable &)=delete |
RefCountable & | operator= (RefCountable &&)=delete |
virtual int | addRef () const override |
virtual int | releaseRef () const override |
int | refCount () const |
![]() | |
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 |
int | refCountThreadUnsafe () const |
Additional Inherited Members | |
![]() | |
static auto | interfaceId () |
![]() | |
static auto | interfaceId () |
![]() | |
virtual IRefCountable * | queryInterface (const IRefCountable::InterfaceId *id) override |
IRefCountable * | queryInterfaceSupportingDeprecatedId (const IRefCountable::InterfaceId *id, const Uuid &deprecatedInterfaceId) |
![]() | |
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 |
|
overridevirtual |
This function will be called just before destruction of the StreamWriter object and no other calls (except destructor) will follow.
Implements nx::sdk::cloud_storage::IStreamWriter.
|
overridevirtual |
Write a data packet. Implementation is discouraged to buffer packets. Instead, it should block until the data is completely processed.
packet->channelNumber() corresponds to ICodecInfo::channelNumber() i.e. if packet->type() == dptVideo && packet->channelNumber() == 1, then CodecInfo with mediaType == AVMEDIA_TYPE_VIDEO && channelNumber == 1 can be used to process this packet.
If packet->type() == dptAudio && packet->channelNumber() == 0, then CodecInfo with mediaType == AVMEDIA_TYPE_AUDIO && channelNumber == 0 can be used to process this packet.
If packet->type() == dptData && packet->channelNumber() == 0, then CodecInfo with mediaType == AVMEDIA_TYPE_DATA && channelNumber == 0 can be used to process this packet.
Implements nx::sdk::cloud_storage::IStreamWriter.
|
overridevirtual |
Total size of written data so far.
Implements nx::sdk::cloud_storage::IStreamWriter.