![]() |
SDK Version 2.0.1
AnsuR Technologies ASMIRA SDK
|
#include <windows.h>#include <stdio.h>#include <cstdint>#include <chrono>#include <vector>Go to the source code of this file.
Classes | |
| struct | asdk::frame_t |
| A decoded video or photo frame, delivered by FrameFunc. More... | |
| struct | asdk::video_options_t |
| Encoder settings in effect on the sending client, delivered by VideoOptionsFunc. More... | |
| struct | asdk::video_mode_t |
| What the sending client is currently doing, delivered by VideoModeFunc. More... | |
| struct | asdk::audio_options_t |
| Audio encoder settings, see sdk_t::SetAudioOptions and sdk_t::AudioOptions. More... | |
| struct | asdk::audio_frame_t |
| Decoded room audio, delivered by DecodedAudioFrameFunc. More... | |
| struct | asdk::position_klv_values_t |
| Platform and sensor position decoded from MISB ST 0601 KLV. More... | |
| struct | asdk::position_nmea_values_t |
| Position decoded from an NMEA 0183 GNSS receiver. More... | |
| struct | asdk::position_values_t |
| Position reported by the sending client, delivered by PositionValuesFunc. More... | |
| struct | asdk::bandwidth_statistics_t |
| Full set of transport counters for one reporting period. More... | |
| struct | asdk::bandwidth_statistics_simple_t |
| Throughput of the active connection, delivered by BandwidthStatisticsFunc. More... | |
| struct | asdk::certificate_t |
| A server certificate, as filled in by sdk_t::RequestCertificate. More... | |
| struct | asdk::sdk_t |
| SDK Core. More... | |
Namespaces | |
| namespace | asdk |
Macros | |
| #define | ASDK_WINDOWS |
| #define | ASDK_LoadLib(a) |
| #define | ASDK_GetProc(a1, a2) |
| #define | ASDK_FreeLib(a) |
| #define | ASDK_CALL __cdecl |
| #define | ASDK_SAFE_ALIAS |
Typedefs | |
| typedef void * | asdk::hsdk |
| typedef uint32_t | asdk::RoomFlagValue |
| typedef uint32_t | asdk::RoomStateValue |
| typedef uint8_t | asdk::UserCapabilityValue |
| typedef int | asdk::DeviceCapabilityValue |
| typedef uint8_t | asdk::AudioFrameStateValue |
| typedef struct asdk::position_klv_values_t | asdk::position_klv_values_t |
| typedef struct asdk::position_nmea_values_t | asdk::position_nmea_values_t |
| typedef struct asdk::position_values_t | asdk::position_values_t |
| typedef struct asdk::bandwidth_statistics_t | asdk::bandwidth_statistics_t |
| using | asdk::TimePoint = std::chrono::high_resolution_clock::time_point |
| using | asdk::TimeMS = std::chrono::milliseconds |
| using | asdk::TimePointSteady = std::chrono::steady_clock::time_point |
| typedef struct asdk::certificate_t | asdk::certificate_t |
| typedef void(*) | asdk::ServerStateFunc(const ServerState serverState, void *opaque) |
| The connection to the server changed state. | |
| typedef void(*) | asdk::RoomAnnounceFunc(const char *roomName, const uint32_t roomID, const asdk::RoomStateValue state, const asdk::RoomFlagValue flags, void *opaque) |
| A room was announced after RequestRoomListSubscribe, or an announced room changed. | |
| typedef void(*) | asdk::RoomResponseFunc(const Request request, const RoomResponse response, const void *optionalData, const uint32_t optionalDataSize, void *opaque) |
| The server answered a request sent with SendRequest or SendRequestStr. | |
| typedef void(*) | asdk::RoomClientAddedFunc(const uint32_t clientID, const char *userName, const UserCapabilityValue userCapability, const DeviceCapabilityValue deviceCapability, void *opaque) |
| A client joined the room, and once for each member already present when this client joined. | |
| typedef void(*) | asdk::RoomClientRemovedFunc(const uint32_t clientID, void *opaque) |
| A client left the room, identified by the clientID given by RoomClientAdded. | |
| typedef void(*) | asdk::AuthenticateResponseFunc(const AuthenticationResponse authenticateResponse, void *opaque) |
| The server answered the login, see AuthenticationResponse for the bits. | |
| typedef void(*) | asdk::FrameFunc(const frame_t *frame, void *opaque) |
| A video or photo frame was decoded to RGB. | |
| typedef void(*) | asdk::EncodedStreamFunc(const StreamType type, const void *data, const uint32_t dataSize, void *opaque) |
| An encoded frame or stream chunk arrived, before any decoding. | |
| typedef void(*) | asdk::EncodedAudioFrameFunc(const uint16_t srcID, const unsigned int timeStamp, const asdk::AudioFrameStateValue state, const unsigned char *audioEncoded, const size_t audioEncodedSize, void *opaque) |
| An encoded audio frame arrived, before any decoding. | |
| typedef void(*) | asdk::VideoOptionsFunc(const video_options_t *videoOptions, void *opaque) |
| The sending client reported its encoder settings, see video_options_t. | |
| typedef void(*) | asdk::VideoModeFunc(const video_mode_t *videoMode, void *opaque) |
| The sending client switched photo mode, ROI or streaming on or off. | |
| typedef void(*) | asdk::PositionValuesFunc(const position_values_t *positionValues, void *opaque) |
| The sending client reported a position, see position_values_t. | |
| typedef void(*) | asdk::BandwidthStatisticsFunc(const bandwidth_statistics_simple_t *bandwidthStatistics, void *opaque) |
| Periodic throughput report for the active connection. | |
| typedef void(*) | asdk::RoomPreviewImageFunc(const uint32_t roomID, const uint64_t utc, const ImageFormat imageFormat, const uint8_t *data, const uint32_t size, void *opaque) |
| A room preview image arrived for a room announced with RoomStatePreview. | |
| typedef void(*) | asdk::RoomFileAvailableFunc(const uint32_t roomID, const uint64_t hash, const char *fileName, const uint32_t fileSize, const uint32_t originClientID, const uint64_t utc, void *opaque) |
| A room file became available to download (pull model). | |
| typedef void(*) | asdk::RoomFileDeletedFunc(const uint32_t roomID, const uint64_t hash, void *opaque) |
| A room file (roomID, hash) was deleted for the whole room; drop any reference to it. | |
| typedef void(*) | asdk::RoomFileDownloadedFunc(const uint32_t roomID, const uint64_t hash, const char *fileName, const uint8_t *data, const uint32_t size, void *opaque) |
| A requested room-file download finished and hash-verified: data/size hold the file bytes (valid only for the duration of the callback). | |
| typedef void(*) | asdk::RoomFileProgressFunc(const uint32_t roomID, const uint64_t hash, const char *fileName, const RoomFileDirection direction, const uint32_t transferred, const uint32_t total, void *opaque) |
| Bytes moved for a transfer in either direction. | |
| typedef void(*) | asdk::RoomFileSentFunc(const uint32_t roomID, const uint64_t hash, const char *fileName, void *opaque) |
| An upload reached the server, which now announces it to the other room members. | |
| typedef void(*) | asdk::RoomFileErrorFunc(const uint32_t roomID, const uint64_t hash, const char *fileName, const RoomFileError error, void *opaque) |
| A transfer failed, anything already received for it has been discarded. | |
| typedef void(*) | asdk::ChatMessageFunc(const uint32_t clientID, const char *message, const uint32_t size, void *opaque) |
| A chat message was received from the joined room. | |
| typedef void(*) | asdk::DecodedAudioFrameFunc(const audio_frame_t *audioFrame, void *opaque) |
| A received audio frame was decoded to PCM. | |
| typedef struct asdk::sdk_t | asdk::sdk_t |
Functions | |
| TimePoint | asdk::TimeNow () |
| Current high resolution clock reading. | |
| long long | asdk::TimeSpent (const TimePoint &timeStart) |
| Milliseconds elapsed since a TimeNow() reading. | |
| TimePointSteady | asdk::TimeNowSteady () |
| Current steady clock reading, unaffected by clock adjustments. | |
| long long | asdk::TimeSpentSteady (const TimePointSteady &time) |
| Milliseconds elapsed since a TimeNowSteady() reading. | |
| sdk_t * | asdk::Initialize () |
| Loads the SDK shared library and creates an SDK handle. | |
Variables | |
| static const uint8_t | asdk::VERSION_MAJOR = 2 |
| static const uint8_t | asdk::VERSION_MINOR = 0 |
| static const uint8_t | asdk::VERSION_PATCH = 1 |
| static const uint32_t | asdk::CHAT_MESSAGE_LEN = 256 |
| static const uint32_t | asdk::AUDIO_SAMPLE_RATE = 16000 |
| static const uint32_t | asdk::AUDIO_CHANNELS = 1 |
| static const uint32_t | asdk::AUDIO_FRAME_SAMPLES = 320 |
| #define ASDK_WINDOWS |
Definition at line 83 of file asmirasdk.h.
| #define ASDK_LoadLib | ( | a | ) |
Definition at line 86 of file asmirasdk.h.
Referenced by asdk::Initialize().
| #define ASDK_GetProc | ( | a1, | |
| a2 ) |
Definition at line 89 of file asmirasdk.h.
Referenced by asdk::Initialize().
| #define ASDK_FreeLib | ( | a | ) |
Definition at line 92 of file asmirasdk.h.
Referenced by asdk::Initialize(), and asdk::sdk_t::Unload().
| #define ASDK_CALL __cdecl |
Definition at line 94 of file asmirasdk.h.
Referenced by asdk::Initialize().
| #define ASDK_SAFE_ALIAS |
Definition at line 121 of file asmirasdk.h.