@yume-chan/scrcpy-decoder-shared 3.0.0-beta.0 → 3.0.0-beta.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/esm/decoder.d.ts +2 -2
- package/esm/decoder.d.ts.map +1 -1
- package/esm/pause-controller.d.ts +2 -2
- package/package.json +5 -5
- package/src/decoder.ts +3 -4
- package/src/pause-controller.ts +2 -2
package/esm/decoder.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MaybePromiseLike } from "@yume-chan/async";
|
|
2
2
|
import type { Event } from "@yume-chan/event";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ScrcpyVideoCodecId, ScrcpyVideoSize, ScrcpyVideoStreamPacket } from "@yume-chan/scrcpy";
|
|
4
4
|
import type { WritableStream } from "@yume-chan/stream-extra";
|
|
5
5
|
import type { ScrcpyVideoDecoderPerformanceCounterInterface } from "./decoder-counter.js";
|
|
6
6
|
import type { ScrcpyVideoDecoderPauseControllerInterface } from "./pause-controller.js";
|
|
@@ -14,7 +14,7 @@ export interface ScrcpyVideoDecoder extends ScrcpyVideoDecoderPerformanceCounter
|
|
|
14
14
|
readonly onTypeChange?: Event<ScrcpyVideoDecoder.Type> | undefined;
|
|
15
15
|
readonly rendererType: ScrcpyVideoDecoder.RendererType;
|
|
16
16
|
readonly onRendererTypeChange?: Event<ScrcpyVideoDecoder.RendererType> | undefined;
|
|
17
|
-
readonly writable: WritableStream<
|
|
17
|
+
readonly writable: WritableStream<ScrcpyVideoStreamPacket>;
|
|
18
18
|
dispose?(): MaybePromiseLike<undefined>;
|
|
19
19
|
}
|
|
20
20
|
export declare namespace ScrcpyVideoDecoder {
|
package/esm/decoder.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decoder.d.ts","sourceRoot":"","sources":["../src/decoder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM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CAC3C;AAED,yBAAiB,kBAAkB,CAAC;IAChC,KAAY,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC;IAE3C,KAAY,YAAY,GAAG,UAAU,GAAG,UAAU,CAAC;CACtD;AAED,MAAM,WAAW,6BAA6B;IAC1C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,4BAA4B,CAAC,CAAC;IAEpE,KAAK,KAAK,EAAE,kBAAkB,GAAG,kBAAkB,CAAC;CACvD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MaybePromiseLike } from "@yume-chan/async";
|
|
2
|
-
import type { ScrcpyMediaStreamConfigurationPacket, ScrcpyMediaStreamDataPacket,
|
|
2
|
+
import type { ScrcpyMediaStreamConfigurationPacket, ScrcpyMediaStreamDataPacket, ScrcpyVideoStreamPacket } from "@yume-chan/scrcpy";
|
|
3
3
|
import { TransformStream } from "@yume-chan/stream-extra";
|
|
4
4
|
export interface ScrcpyVideoDecoderPauseControllerInterface {
|
|
5
5
|
readonly paused: boolean;
|
|
@@ -34,7 +34,7 @@ export declare class ScrcpyVideoDecoderPauseController extends TransformStream<S
|
|
|
34
34
|
dispose(): void;
|
|
35
35
|
}
|
|
36
36
|
export declare namespace ScrcpyVideoDecoderPauseController {
|
|
37
|
-
type Input =
|
|
37
|
+
type Input = ScrcpyVideoStreamPacket;
|
|
38
38
|
type Output = ScrcpyMediaStreamConfigurationPacket | (ScrcpyMediaStreamDataPacket & {
|
|
39
39
|
skipRendering: boolean;
|
|
40
40
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yume-chan/scrcpy-decoder-shared",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.1",
|
|
4
4
|
"description": "Shared types and utilities for Scrcpy video decoders.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adb",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@yume-chan/async": "^4.1.3",
|
|
32
|
-
"@yume-chan/event": "3.0.0-beta.
|
|
33
|
-
"@yume-chan/scrcpy": "3.0.0-beta.
|
|
34
|
-
"@yume-chan/stream-extra": "3.0.0-beta.
|
|
32
|
+
"@yume-chan/event": "3.0.0-beta.1",
|
|
33
|
+
"@yume-chan/scrcpy": "3.0.0-beta.1",
|
|
34
|
+
"@yume-chan/stream-extra": "3.0.0-beta.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"prettier": "^3.
|
|
37
|
+
"prettier": "^3.9.6",
|
|
38
38
|
"typescript": "^6.0.3",
|
|
39
39
|
"@yume-chan/eslint-config": "^1.0.0",
|
|
40
40
|
"@yume-chan/tsconfig": "^1.0.0"
|
package/src/decoder.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { MaybePromiseLike } from "@yume-chan/async";
|
|
2
2
|
import type { Event } from "@yume-chan/event";
|
|
3
3
|
import type {
|
|
4
|
-
ScrcpyMediaStreamPacket,
|
|
5
4
|
ScrcpyVideoCodecId,
|
|
6
5
|
ScrcpyVideoSize,
|
|
6
|
+
ScrcpyVideoStreamPacket,
|
|
7
7
|
} from "@yume-chan/scrcpy";
|
|
8
8
|
import type { WritableStream } from "@yume-chan/stream-extra";
|
|
9
9
|
|
|
@@ -27,10 +27,9 @@ export interface ScrcpyVideoDecoder
|
|
|
27
27
|
|
|
28
28
|
readonly rendererType: ScrcpyVideoDecoder.RendererType;
|
|
29
29
|
readonly onRendererTypeChange?:
|
|
30
|
-
|
|
31
|
-
| undefined;
|
|
30
|
+
Event<ScrcpyVideoDecoder.RendererType> | undefined;
|
|
32
31
|
|
|
33
|
-
readonly writable: WritableStream<
|
|
32
|
+
readonly writable: WritableStream<ScrcpyVideoStreamPacket>;
|
|
34
33
|
|
|
35
34
|
dispose?(): MaybePromiseLike<undefined>;
|
|
36
35
|
}
|
package/src/pause-controller.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { PromiseResolver } from "@yume-chan/async";
|
|
|
3
3
|
import type {
|
|
4
4
|
ScrcpyMediaStreamConfigurationPacket,
|
|
5
5
|
ScrcpyMediaStreamDataPacket,
|
|
6
|
-
|
|
6
|
+
ScrcpyVideoStreamPacket,
|
|
7
7
|
} from "@yume-chan/scrcpy";
|
|
8
8
|
import type { TransformStreamDefaultController } from "@yume-chan/stream-extra";
|
|
9
9
|
import { TransformStream } from "@yume-chan/stream-extra";
|
|
@@ -250,7 +250,7 @@ export class ScrcpyVideoDecoderPauseController
|
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
export namespace ScrcpyVideoDecoderPauseController {
|
|
253
|
-
export type Input =
|
|
253
|
+
export type Input = ScrcpyVideoStreamPacket;
|
|
254
254
|
export type Output =
|
|
255
255
|
| ScrcpyMediaStreamConfigurationPacket
|
|
256
256
|
| (ScrcpyMediaStreamDataPacket & { skipRendering: boolean });
|