ヘッダー検証付きobj.load(movie)を両エンジンで実装
このコミットが含まれているのは:
8ファイル変更
+355
-24
検索条件に一致するファイルはありません
@@ -91,6 +91,7 @@ namespace LuaScript
|
||||
private DrawCompositor? _drawCompositor;
|
||||
private TextRenderer? _nativeTextRenderer;
|
||||
private ImageDecoder? _nativeImageDecoder;
|
||||
private MovieDecoder? _nativeMovieDecoder;
|
||||
|
||||
protected override ID2D1Image? CreateEffect(IGraphicsDevicesAndContext devices)
|
||||
{
|
||||
@@ -450,6 +451,7 @@ namespace LuaScript
|
||||
NativeLoadFigure,
|
||||
NativeLoadText,
|
||||
NativeLoadImage,
|
||||
NativeLoadMovie,
|
||||
(name, args) => ctx.AddEffect(new AviUtlEffectRequest(name, args)),
|
||||
ctx.AddDraw,
|
||||
out bool dirty, out bool bufferReplaced, out byte[]? newPixels,
|
||||
@@ -516,6 +518,13 @@ namespace LuaScript
|
||||
return (buffer, w, h);
|
||||
}
|
||||
|
||||
private (byte[] buffer, int w, int h) NativeLoadMovie(string path, double time)
|
||||
{
|
||||
_nativeMovieDecoder ??= new MovieDecoder();
|
||||
var buffer = _nativeMovieDecoder.Decode(path, time, out int w, out int h);
|
||||
return (buffer, w, h);
|
||||
}
|
||||
|
||||
private static (byte[] buffer, int w, int h) NativeLoadFigure(string name, int color, double size, double lineWidth, double aspect)
|
||||
{
|
||||
aspect = Math.Clamp(aspect, -1d, 1d);
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする