tirtc-devtools-cli 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -0
- package/USAGE.md +417 -0
- package/bin/tirtc-devtool.js +2 -0
- package/dist/app-server/protocol-client/index.d.ts +25 -0
- package/dist/app-server/protocol-client/index.js +114 -0
- package/dist/devtools/cli/src/config.d.ts +46 -0
- package/dist/devtools/cli/src/config.js +98 -0
- package/dist/devtools/cli/src/dummy.d.ts +0 -0
- package/dist/devtools/cli/src/dummy.js +1 -0
- package/dist/devtools/cli/src/embedded_paths.d.ts +7 -0
- package/dist/devtools/cli/src/embedded_paths.js +85 -0
- package/dist/devtools/cli/src/facade.d.ts +723 -0
- package/dist/devtools/cli/src/facade.js +194 -0
- package/dist/devtools/cli/src/ffmpeg_tool.d.ts +6 -0
- package/dist/devtools/cli/src/ffmpeg_tool.js +146 -0
- package/dist/devtools/cli/src/guide.d.ts +1 -0
- package/dist/devtools/cli/src/guide.js +49 -0
- package/dist/devtools/cli/src/index.d.ts +1 -0
- package/dist/devtools/cli/src/index.js +753 -0
- package/dist/devtools/cli/src/media_assets.d.ts +25 -0
- package/dist/devtools/cli/src/media_assets.js +121 -0
- package/dist/devtools/cli/src/session_manager.d.ts +25 -0
- package/dist/devtools/cli/src/session_manager.js +393 -0
- package/dist/devtools/cli/src/token_tool.d.ts +33 -0
- package/dist/devtools/cli/src/token_tool.js +217 -0
- package/dist/devtools/cli/src/transport.d.ts +30 -0
- package/dist/devtools/cli/src/transport.js +84 -0
- package/dist/dummy.d.ts +0 -0
- package/dist/dummy.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +48 -0
- package/package.json +54 -0
- package/script/ensure_ffmpeg.sh +22 -0
- package/vendor/app-server/bin/native/macos-arm64/credential_napi.node +0 -0
- package/vendor/app-server/bin/native/macos-arm64/libcrypto.dylib +0 -0
- package/vendor/app-server/bin/native/macos-arm64/libssl.dylib +0 -0
- package/vendor/app-server/bin/native/macos-arm64/libtgrtc.dylib +0 -0
- package/vendor/app-server/bin/native/macos-arm64/runtime_host_napi.node +0 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/audio_codec.h +23 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/audio_frame.h +36 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/audio_io.h +56 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/audio_io_android.h +19 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/audio_io_apple.h +19 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/audio_io_harmony.h +19 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/audio_io_windows.h +19 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/audio_processing.h +56 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/audio_sample_rate.h +18 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/error.h +20 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/logging.h +53 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/media_codec.h +21 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/media_downlink.h +89 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/media_uplink.h +115 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/runtime.h +236 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/video_codec.h +57 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/video_frame.h +55 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/video_io.h +46 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/video_io_android.h +32 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/video_io_apple.h +34 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/video_io_harmony.h +32 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/video_io_windows.h +26 -0
- package/vendor/app-server/bin/runtime/linux-x64/include/tirtc/video_processing.h +34 -0
- package/vendor/app-server/bin/runtime/linux-x64/lib/libmatrix_runtime_audio.a +0 -0
- package/vendor/app-server/bin/runtime/linux-x64/lib/libmatrix_runtime_facade.a +0 -0
- package/vendor/app-server/bin/runtime/linux-x64/lib/libmatrix_runtime_foundation_logging.a +0 -0
- package/vendor/app-server/bin/runtime/linux-x64/lib/libmatrix_runtime_media.a +0 -0
- package/vendor/app-server/bin/runtime/linux-x64/lib/libmatrix_runtime_video.a +0 -0
- package/vendor/app-server/bin/runtime/linux-x64/lib/libwebrtc_apm.a +0 -0
- package/vendor/app-server/bin/runtime/linux-x64/lib/libxlog.a +0 -0
- package/vendor/app-server/bin/runtime/linux-x64/manifest.txt +34 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/audio.h +398 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/audio_codec.h +23 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/audio_frame.h +36 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/audio_io.h +56 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/audio_io_android.h +19 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/audio_io_apple.h +19 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/audio_io_harmony.h +19 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/audio_io_windows.h +19 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/audio_processing.h +56 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/audio_sample_rate.h +18 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/av.h +452 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/credential.h +34 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/error.h +30 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/foundation/build_info.h +27 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/http.h +57 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/logging.h +55 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/media_codec.h +21 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/media_downlink.h +95 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/media_fixture_av_sync.h +61 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/media_fixture_source.h +77 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/media_live_source.h +71 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/media_uplink.h +116 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/transport.h +481 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/trp.h +541 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/video_codec.h +58 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/video_frame.h +55 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/video_io.h +46 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/video_io_android.h +32 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/video_io_apple.h +47 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/video_io_harmony.h +32 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/video_io_windows.h +26 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/video_processing.h +34 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libcrypto.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libcrypto.dylib +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_audio.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_credential.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_facade.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_foundation_http.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_foundation_logging.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_media.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_transport.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_video.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libssl.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libssl.dylib +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libwebrtc_apm.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libxlog.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/manifest.txt +50 -0
- package/vendor/app-server/bin/tirtc-devtool-host.js +2 -0
- package/vendor/app-server/dist/host/ArtifactManager.d.ts +18 -0
- package/vendor/app-server/dist/host/ArtifactManager.js +83 -0
- package/vendor/app-server/dist/host/HostProtocol.d.ts +107 -0
- package/vendor/app-server/dist/host/HostProtocol.js +256 -0
- package/vendor/app-server/dist/host/HostServer.d.ts +49 -0
- package/vendor/app-server/dist/host/HostServer.js +635 -0
- package/vendor/app-server/dist/host/HostState.d.ts +60 -0
- package/vendor/app-server/dist/host/HostState.js +19 -0
- package/vendor/app-server/dist/host/RuntimeAdapter.d.ts +81 -0
- package/vendor/app-server/dist/host/RuntimeAdapter.js +559 -0
- package/vendor/app-server/dist/host/RuntimeCredentialTokenIssuer.d.ts +30 -0
- package/vendor/app-server/dist/host/RuntimeCredentialTokenIssuer.js +224 -0
- package/vendor/app-server/dist/host/RuntimeReceiveWorker.d.ts +37 -0
- package/vendor/app-server/dist/host/RuntimeReceiveWorker.js +186 -0
- package/vendor/app-server/dist/host/RuntimeSendWorker.d.ts +42 -0
- package/vendor/app-server/dist/host/RuntimeSendWorker.js +274 -0
- package/vendor/app-server/dist/host/TokenTool.d.ts +15 -0
- package/vendor/app-server/dist/host/TokenTool.js +84 -0
- package/vendor/app-server/dist/host/WebPreviewGateway.d.ts +28 -0
- package/vendor/app-server/dist/host/WebPreviewGateway.js +815 -0
- package/vendor/app-server/dist/host/native/RuntimeCredentialTokenIssuer.d.ts +26 -0
- package/vendor/app-server/dist/host/native/RuntimeCredentialTokenIssuer.js +118 -0
- package/vendor/app-server/dist/host/native/RuntimeHostBridge.d.ts +19 -0
- package/vendor/app-server/dist/host/native/RuntimeHostBridge.js +141 -0
- package/vendor/app-server/dist/host/runtime_backed_preflight.d.ts +10 -0
- package/vendor/app-server/dist/host/runtime_backed_preflight.js +78 -0
- package/vendor/app-server/dist/host/tests/helpers/host_socket_client.d.ts +28 -0
- package/vendor/app-server/dist/host/tests/helpers/host_socket_client.js +85 -0
- package/vendor/app-server/dist/host/tests/helpers/runtime_e2e_local_config.d.ts +10 -0
- package/vendor/app-server/dist/host/tests/helpers/runtime_e2e_local_config.js +41 -0
- package/vendor/app-server/dist/host/tests/helpers/runtime_test_env.d.ts +11 -0
- package/vendor/app-server/dist/host/tests/helpers/runtime_test_env.js +32 -0
- package/vendor/app-server/dist/protocol/contract.d.ts +983 -0
- package/vendor/app-server/dist/protocol/contract.js +198 -0
- package/vendor/app-server/dist/protocol-client/index.d.ts +25 -0
- package/vendor/app-server/dist/protocol-client/index.js +114 -0
- package/vendor/app-server/dist/src/index.d.ts +1 -0
- package/vendor/app-server/dist/src/index.js +294 -0
- package/vendor/runtime/script/prepare_runtime_media_dataset.sh +427 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#ifndef TIRTC_VIDEO_FRAME_H_
|
|
2
|
+
#define TIRTC_VIDEO_FRAME_H_
|
|
3
|
+
|
|
4
|
+
#include <stddef.h>
|
|
5
|
+
#include <stdint.h>
|
|
6
|
+
|
|
7
|
+
#include "tirtc/media_codec.h"
|
|
8
|
+
|
|
9
|
+
#ifdef __cplusplus
|
|
10
|
+
extern "C" {
|
|
11
|
+
#endif
|
|
12
|
+
|
|
13
|
+
#define TIRTC_VIDEO_MAX_PLANES 4
|
|
14
|
+
|
|
15
|
+
typedef enum TirtcVideoPixelFormat {
|
|
16
|
+
TIRTC_VIDEO_PIXEL_FORMAT_NONE = 0,
|
|
17
|
+
TIRTC_VIDEO_PIXEL_FORMAT_I420 = 1,
|
|
18
|
+
TIRTC_VIDEO_PIXEL_FORMAT_NV12 = 2,
|
|
19
|
+
TIRTC_VIDEO_PIXEL_FORMAT_RGBA8888 = 3,
|
|
20
|
+
} TirtcVideoPixelFormat;
|
|
21
|
+
|
|
22
|
+
typedef enum TirtcVideoBitstreamFormat {
|
|
23
|
+
TIRTC_VIDEO_BITSTREAM_FORMAT_NONE = 0,
|
|
24
|
+
TIRTC_VIDEO_BITSTREAM_FORMAT_H264_ANNEXB = 1,
|
|
25
|
+
TIRTC_VIDEO_BITSTREAM_FORMAT_H265_ANNEXB = 2,
|
|
26
|
+
TIRTC_VIDEO_BITSTREAM_FORMAT_MJPEG_JFIF = 3,
|
|
27
|
+
} TirtcVideoBitstreamFormat;
|
|
28
|
+
|
|
29
|
+
typedef struct TirtcVideoPixelFrame {
|
|
30
|
+
uint32_t width;
|
|
31
|
+
uint32_t height;
|
|
32
|
+
TirtcVideoPixelFormat pixel_format;
|
|
33
|
+
int64_t pts_us;
|
|
34
|
+
uint32_t plane_count;
|
|
35
|
+
void* planes[TIRTC_VIDEO_MAX_PLANES];
|
|
36
|
+
uint32_t strides[TIRTC_VIDEO_MAX_PLANES];
|
|
37
|
+
size_t plane_bytes[TIRTC_VIDEO_MAX_PLANES];
|
|
38
|
+
} TirtcVideoPixelFrame;
|
|
39
|
+
|
|
40
|
+
typedef struct TirtcVideoEncodedFrame {
|
|
41
|
+
TirtcMediaCodec codec;
|
|
42
|
+
TirtcVideoBitstreamFormat bitstream_format;
|
|
43
|
+
uint32_t width;
|
|
44
|
+
uint32_t height;
|
|
45
|
+
int64_t pts_us;
|
|
46
|
+
int is_key_frame;
|
|
47
|
+
const void* data;
|
|
48
|
+
size_t data_bytes;
|
|
49
|
+
} TirtcVideoEncodedFrame;
|
|
50
|
+
|
|
51
|
+
#ifdef __cplusplus
|
|
52
|
+
}
|
|
53
|
+
#endif
|
|
54
|
+
|
|
55
|
+
#endif // TIRTC_VIDEO_FRAME_H_
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
#ifndef TIRTC_VIDEO_IO_H_
|
|
2
|
+
#define TIRTC_VIDEO_IO_H_
|
|
3
|
+
|
|
4
|
+
#include <stdint.h>
|
|
5
|
+
|
|
6
|
+
#include "tirtc/error.h"
|
|
7
|
+
#include "tirtc/video_frame.h"
|
|
8
|
+
|
|
9
|
+
#ifdef __cplusplus
|
|
10
|
+
extern "C" {
|
|
11
|
+
#endif
|
|
12
|
+
|
|
13
|
+
typedef struct TirtcVideoVin TirtcVideoVin;
|
|
14
|
+
typedef struct TirtcVideoVout TirtcVideoVout;
|
|
15
|
+
|
|
16
|
+
typedef struct TirtcVideoIoConfig {
|
|
17
|
+
uint32_t width;
|
|
18
|
+
uint32_t height;
|
|
19
|
+
uint32_t fps;
|
|
20
|
+
/* Preferred pixel format; actual format resolution is backend-specific. */
|
|
21
|
+
TirtcVideoPixelFormat pixel_format;
|
|
22
|
+
} TirtcVideoIoConfig;
|
|
23
|
+
|
|
24
|
+
typedef void (*TirtcVideoVinOnFrameFn)(TirtcVideoVin* vin, const TirtcVideoPixelFrame* frame,
|
|
25
|
+
void* user_data);
|
|
26
|
+
|
|
27
|
+
TirtcError tirtc_video_vin_open(TirtcVideoVin* vin, const TirtcVideoIoConfig* config,
|
|
28
|
+
TirtcVideoVinOnFrameFn on_frame, void* user_data);
|
|
29
|
+
TirtcError tirtc_video_vin_get_actual_config(TirtcVideoVin* vin, TirtcVideoIoConfig* out_config);
|
|
30
|
+
TirtcError tirtc_video_vin_start(TirtcVideoVin* vin);
|
|
31
|
+
TirtcError tirtc_video_vin_stop(TirtcVideoVin* vin);
|
|
32
|
+
TirtcError tirtc_video_vin_close(TirtcVideoVin* vin);
|
|
33
|
+
void tirtc_video_vin_destroy(TirtcVideoVin* vin);
|
|
34
|
+
|
|
35
|
+
TirtcError tirtc_video_vout_open(TirtcVideoVout* vout, const TirtcVideoIoConfig* config);
|
|
36
|
+
TirtcError tirtc_video_vout_get_actual_config(TirtcVideoVout* vout, TirtcVideoIoConfig* out_config);
|
|
37
|
+
TirtcError tirtc_video_vout_render_frame(TirtcVideoVout* vout, const TirtcVideoPixelFrame* frame);
|
|
38
|
+
TirtcError tirtc_video_vout_flush(TirtcVideoVout* vout);
|
|
39
|
+
TirtcError tirtc_video_vout_close(TirtcVideoVout* vout);
|
|
40
|
+
void tirtc_video_vout_destroy(TirtcVideoVout* vout);
|
|
41
|
+
|
|
42
|
+
#ifdef __cplusplus
|
|
43
|
+
}
|
|
44
|
+
#endif
|
|
45
|
+
|
|
46
|
+
#endif // TIRTC_VIDEO_IO_H_
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#ifndef TIRTC_VIDEO_IO_ANDROID_H_
|
|
2
|
+
#define TIRTC_VIDEO_IO_ANDROID_H_
|
|
3
|
+
|
|
4
|
+
#include "tirtc/video_io.h"
|
|
5
|
+
|
|
6
|
+
#ifdef __cplusplus
|
|
7
|
+
extern "C" {
|
|
8
|
+
#endif
|
|
9
|
+
|
|
10
|
+
#if defined(__ANDROID__)
|
|
11
|
+
struct ANativeWindow;
|
|
12
|
+
|
|
13
|
+
typedef enum TirtcVideoAndroidVoutRenderer {
|
|
14
|
+
TIRTC_VIDEO_ANDROID_VOUT_RENDERER_GLES = 0,
|
|
15
|
+
TIRTC_VIDEO_ANDROID_VOUT_RENDERER_NATIVE_WINDOW_RGBA = 1,
|
|
16
|
+
} TirtcVideoAndroidVoutRenderer;
|
|
17
|
+
|
|
18
|
+
typedef struct TirtcVideoAndroidSurfaceTextureVoutOptions {
|
|
19
|
+
struct ANativeWindow* native_window;
|
|
20
|
+
TirtcVideoAndroidVoutRenderer renderer;
|
|
21
|
+
} TirtcVideoAndroidSurfaceTextureVoutOptions;
|
|
22
|
+
|
|
23
|
+
TirtcError tirtc_video_android_create_surface_texture_vout(TirtcVideoVout** out_vout);
|
|
24
|
+
TirtcError tirtc_video_android_surface_texture_vout_set_options(
|
|
25
|
+
TirtcVideoVout* vout, const TirtcVideoAndroidSurfaceTextureVoutOptions* options);
|
|
26
|
+
#endif
|
|
27
|
+
|
|
28
|
+
#ifdef __cplusplus
|
|
29
|
+
}
|
|
30
|
+
#endif
|
|
31
|
+
|
|
32
|
+
#endif // TIRTC_VIDEO_IO_ANDROID_H_
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#ifndef TIRTC_VIDEO_IO_APPLE_H_
|
|
2
|
+
#define TIRTC_VIDEO_IO_APPLE_H_
|
|
3
|
+
|
|
4
|
+
#include "tirtc/video_io.h"
|
|
5
|
+
|
|
6
|
+
#ifdef __cplusplus
|
|
7
|
+
extern "C" {
|
|
8
|
+
#endif
|
|
9
|
+
|
|
10
|
+
#if defined(__APPLE__)
|
|
11
|
+
typedef enum TirtcVideoAppleVoutTarget {
|
|
12
|
+
TIRTC_VIDEO_APPLE_VOUT_TARGET_DEFAULT = 0,
|
|
13
|
+
TIRTC_VIDEO_APPLE_VOUT_TARGET_APPKIT_WINDOW = 1,
|
|
14
|
+
TIRTC_VIDEO_APPLE_VOUT_TARGET_PIXEL_BUFFER_CALLBACK = 2,
|
|
15
|
+
} TirtcVideoAppleVoutTarget;
|
|
16
|
+
|
|
17
|
+
typedef int (*TirtcVideoAppleOnPixelBufferFn)(void* pixel_buffer, void* user_data);
|
|
18
|
+
|
|
19
|
+
typedef struct TirtcVideoAppleCoreVideoVoutOptions {
|
|
20
|
+
TirtcVideoAppleVoutTarget target;
|
|
21
|
+
TirtcVideoAppleOnPixelBufferFn on_pixel_buffer;
|
|
22
|
+
void* user_data;
|
|
23
|
+
} TirtcVideoAppleCoreVideoVoutOptions;
|
|
24
|
+
|
|
25
|
+
TirtcError tirtc_video_apple_create_core_video_vout(TirtcVideoVout** out_vout);
|
|
26
|
+
TirtcError tirtc_video_apple_core_video_vout_set_options(
|
|
27
|
+
TirtcVideoVout* vout, const TirtcVideoAppleCoreVideoVoutOptions* options);
|
|
28
|
+
#endif
|
|
29
|
+
|
|
30
|
+
#ifdef __cplusplus
|
|
31
|
+
}
|
|
32
|
+
#endif
|
|
33
|
+
|
|
34
|
+
#endif // TIRTC_VIDEO_IO_APPLE_H_
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#ifndef TIRTC_VIDEO_IO_HARMONY_H_
|
|
2
|
+
#define TIRTC_VIDEO_IO_HARMONY_H_
|
|
3
|
+
|
|
4
|
+
#include "tirtc/video_io.h"
|
|
5
|
+
|
|
6
|
+
#ifdef __cplusplus
|
|
7
|
+
extern "C" {
|
|
8
|
+
#endif
|
|
9
|
+
|
|
10
|
+
#if defined(__OHOS__)
|
|
11
|
+
typedef struct NativeWindow OHNativeWindow;
|
|
12
|
+
|
|
13
|
+
typedef enum TirtcVideoHarmonyVoutRenderer {
|
|
14
|
+
TIRTC_VIDEO_HARMONY_VOUT_RENDERER_GLES = 0,
|
|
15
|
+
TIRTC_VIDEO_HARMONY_VOUT_RENDERER_NATIVE_WINDOW_RGBA = 1,
|
|
16
|
+
} TirtcVideoHarmonyVoutRenderer;
|
|
17
|
+
|
|
18
|
+
typedef struct TirtcVideoHarmonyNativeImageVoutOptions {
|
|
19
|
+
OHNativeWindow* native_window;
|
|
20
|
+
TirtcVideoHarmonyVoutRenderer renderer;
|
|
21
|
+
} TirtcVideoHarmonyNativeImageVoutOptions;
|
|
22
|
+
|
|
23
|
+
TirtcError tirtc_video_harmony_create_native_image_vout(TirtcVideoVout** out_vout);
|
|
24
|
+
TirtcError tirtc_video_harmony_native_image_vout_set_options(
|
|
25
|
+
TirtcVideoVout* vout, const TirtcVideoHarmonyNativeImageVoutOptions* options);
|
|
26
|
+
#endif
|
|
27
|
+
|
|
28
|
+
#ifdef __cplusplus
|
|
29
|
+
}
|
|
30
|
+
#endif
|
|
31
|
+
|
|
32
|
+
#endif // TIRTC_VIDEO_IO_HARMONY_H_
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#ifndef TIRTC_VIDEO_IO_WINDOWS_H_
|
|
2
|
+
#define TIRTC_VIDEO_IO_WINDOWS_H_
|
|
3
|
+
|
|
4
|
+
#include "tirtc/video_io.h"
|
|
5
|
+
|
|
6
|
+
#ifdef __cplusplus
|
|
7
|
+
extern "C" {
|
|
8
|
+
#endif
|
|
9
|
+
|
|
10
|
+
#if defined(_WIN32)
|
|
11
|
+
typedef struct HWND__* TirtcVideoWindowsHwnd;
|
|
12
|
+
|
|
13
|
+
typedef struct TirtcVideoWindowsDirect2dVoutOptions {
|
|
14
|
+
TirtcVideoWindowsHwnd hwnd;
|
|
15
|
+
} TirtcVideoWindowsDirect2dVoutOptions;
|
|
16
|
+
|
|
17
|
+
TirtcError tirtc_video_windows_create_direct2d_vout(TirtcVideoVout** out_vout);
|
|
18
|
+
TirtcError tirtc_video_windows_direct2d_vout_set_options(
|
|
19
|
+
TirtcVideoVout* vout, const TirtcVideoWindowsDirect2dVoutOptions* options);
|
|
20
|
+
#endif
|
|
21
|
+
|
|
22
|
+
#ifdef __cplusplus
|
|
23
|
+
}
|
|
24
|
+
#endif
|
|
25
|
+
|
|
26
|
+
#endif // TIRTC_VIDEO_IO_WINDOWS_H_
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#ifndef TIRTC_VIDEO_PROCESSING_H_
|
|
2
|
+
#define TIRTC_VIDEO_PROCESSING_H_
|
|
3
|
+
|
|
4
|
+
#include "tirtc/error.h"
|
|
5
|
+
#include "tirtc/video_frame.h"
|
|
6
|
+
|
|
7
|
+
#ifdef __cplusplus
|
|
8
|
+
extern "C" {
|
|
9
|
+
#endif
|
|
10
|
+
|
|
11
|
+
typedef struct TirtcVideoProcessor TirtcVideoProcessor;
|
|
12
|
+
|
|
13
|
+
typedef struct TirtcVideoProcessorConfig {
|
|
14
|
+
uint32_t output_width;
|
|
15
|
+
uint32_t output_height;
|
|
16
|
+
TirtcVideoPixelFormat output_pixel_format;
|
|
17
|
+
} TirtcVideoProcessorConfig;
|
|
18
|
+
|
|
19
|
+
TirtcError tirtc_video_processor_create(const TirtcVideoProcessorConfig* config,
|
|
20
|
+
TirtcVideoProcessor** out_processor);
|
|
21
|
+
void tirtc_video_processor_destroy(TirtcVideoProcessor* processor);
|
|
22
|
+
|
|
23
|
+
TirtcError tirtc_video_processor_set_config(TirtcVideoProcessor* processor,
|
|
24
|
+
const TirtcVideoProcessorConfig* config);
|
|
25
|
+
TirtcError tirtc_video_processor_process(TirtcVideoProcessor* processor,
|
|
26
|
+
const TirtcVideoPixelFrame* in_frame,
|
|
27
|
+
TirtcVideoPixelFrame* out_frame);
|
|
28
|
+
TirtcError tirtc_video_processor_reset(TirtcVideoProcessor* processor);
|
|
29
|
+
|
|
30
|
+
#ifdef __cplusplus
|
|
31
|
+
}
|
|
32
|
+
#endif
|
|
33
|
+
|
|
34
|
+
#endif // TIRTC_VIDEO_PROCESSING_H_
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
platform=linux-x64
|
|
2
|
+
staged_at_utc=2026-03-31T12:26:48Z
|
|
3
|
+
source_sdk=/workspace/.build/sdk/linux-x64
|
|
4
|
+
|
|
5
|
+
6d972ccfe150a3b4f2d7f18fa92b3ade9210c1c8bb754d061ac6b7997b59e2cb include/tirtc/audio_codec.h
|
|
6
|
+
7bacbdb2d8bb10d6444036a8fef42f2a8e3ea34dfc38e165ee678d61f189db41 include/tirtc/audio_frame.h
|
|
7
|
+
818dc6ea4484e7ea37651db1ab1b50bfe1abe644d24208914691297173dce7a1 include/tirtc/audio_io.h
|
|
8
|
+
c2e1f31dcc75be461c577d18b1cebe32774f212d51cb4dd2a5b5a9bfe62b693e include/tirtc/audio_io_android.h
|
|
9
|
+
878bb18220ac62304ec95807f31e83e050c8dac14811f873454f9b045028694a include/tirtc/audio_io_apple.h
|
|
10
|
+
0569eb1d043ee7fa8d45ca43143eca1a22e4c4bf1507ca7e045e010a3ecbc288 include/tirtc/audio_io_harmony.h
|
|
11
|
+
51cbc911fe9f9834046f0e0a1a7cdd814a8e194a615894a8b4d11f9e5f095610 include/tirtc/audio_io_windows.h
|
|
12
|
+
21f60729117260a44af22c1af986ef17d22673b102b7b7a035f492d0665cce16 include/tirtc/audio_processing.h
|
|
13
|
+
0ca7c3c630b1242f51a0fd8154097c0a332b4c816a5707090e4381719852998c include/tirtc/audio_sample_rate.h
|
|
14
|
+
a484e249b1eb5f66bb0fcdde1a716c48207e99c05edf57674613d22c9293eac2 include/tirtc/error.h
|
|
15
|
+
5527348107b8bf88d75adf7e46d335a1f83b2377a03da0dbfd9f6d83fff88580 include/tirtc/logging.h
|
|
16
|
+
7e2f7f81afe37e22f5414d9db32438edd948ff775230c3a0a17ff9ac1a0b560e include/tirtc/media_codec.h
|
|
17
|
+
bb3afc6cad8737400d51b30b523be8f7259853587c83541734460e00485d0fda include/tirtc/media_downlink.h
|
|
18
|
+
51658c1784b862e4f52ad5692533a3d288eb5267649f1e0fb1696f4c519299de include/tirtc/media_uplink.h
|
|
19
|
+
7f0f1f5afd665f0c2b826eda3c72ca37a4d4153872b9b41593b0d527fb2b4316 include/tirtc/runtime.h
|
|
20
|
+
dbfe7cb2f8b26b37af759f54c3e254a973fe21fbd9a4e69a74a36ba28d7a448a include/tirtc/video_codec.h
|
|
21
|
+
e51379666c199588cc33279ccf52248035d1cae3d1d468b1615ebf29f0b39c9c include/tirtc/video_frame.h
|
|
22
|
+
d920afad955b9f206b02b19ca152315190fa84ab6f24e895a5b24c3ab9ffd701 include/tirtc/video_io.h
|
|
23
|
+
9294d144dbc56415ddbc06c68a26b4a662b51a3808f49ded81a37776ad243293 include/tirtc/video_io_android.h
|
|
24
|
+
43197ceccfbcf20de046bf19c7f6787c9daf681cbef6cf0c50e8466677cfd4ce include/tirtc/video_io_apple.h
|
|
25
|
+
cae0bbeb884e5466a56da15182c78cc22baab6c743f349a58d3595f623333585 include/tirtc/video_io_harmony.h
|
|
26
|
+
65b5d24fe3a6bc2a299a2220148a153ba4eb0955a49c1c3baabf1fdfed8aabdd include/tirtc/video_io_windows.h
|
|
27
|
+
8cd6b66bea14890a665cc317f8572429b2c3e4463773f8b77c1e4dc30a4a8747 include/tirtc/video_processing.h
|
|
28
|
+
c9a3a02ff8550719140dfee9ef81b5a1f8210d0ff91be919dd28008701ee6ccb lib/libmatrix_runtime_audio.a
|
|
29
|
+
095fc457691d15d20991a8e1eed257521f8ae5cea40cbeacea25537db4b3f420 lib/libmatrix_runtime_facade.a
|
|
30
|
+
210b16e023a4837d3a4d13efac2dcb733a228b4f47262dc6df60bc4c63929fbe lib/libmatrix_runtime_foundation_logging.a
|
|
31
|
+
574598183bb913924c9a56ae32e02abb50894687759661bc8d06b6e272b7c1ba lib/libmatrix_runtime_media.a
|
|
32
|
+
f54f40319d63191ddc1963ef5d0032286c78eba6378a0d2f32fdc304305a6363 lib/libmatrix_runtime_video.a
|
|
33
|
+
a67ec9034848ef24a1b17671e444daa62a8f9e6b8319a1e932593908720ff2a1 lib/libwebrtc_apm.a
|
|
34
|
+
700e455255897e3cffab13ca593a6e4d9d11383ae609215cbbd6043a63d47161 lib/libxlog.a
|