Стартовый пул

This commit is contained in:
2024-04-02 08:46:59 +03:00
parent fd57fffd3a
commit 3bb34d000b
5591 changed files with 3291734 additions and 0 deletions

View File

@@ -0,0 +1,248 @@
(*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Any non-GPL usage of this software or parts of this software is strictly
* forbidden.
*
* The "appropriate copyright message" mentioned in section 2c of the GPLv2
* must read: "Code from FAAD2 is copyright (c) Nero AG, www.nero.com"
*
*)
{$I ..\..\source\compiler.inc}
program DemoUseLog;
{$APPTYPE CONSOLE}
{$R *.res}
uses
Windows, SysUtils, SyncObjs,
PasLibVlcUnit in '..\..\source\PasLibVlcUnit.pas';
const
DEMO_FILE = '..\..\_testFiles\Maximize.mp4';
var
p_li : libvlc_instance_t_ptr;
p_md : libvlc_media_t_ptr;
p_mi : libvlc_media_player_t_ptr;
f: TextFile;
procedure libvlc_log_cb(
data : Pointer;
level : libvlc_log_level_t;
const ctx : libvlc_log_t_ptr;
const fmt : PAnsiChar;
args : TVaPtrListPtr); cdecl;
var
fmt_chr : AnsiChar;
fmt_idx : Integer;
out_str : AnsiString;
tmp_str : AnsiString;
fmt_str : AnsiString;
fmt_spc : AnsiString;
tmp_chr : PAnsiChar;
begin
out_str := '';
fmt_str := fmt;
if (level = LIBVLC_LOG_DEBUG) then exit;
WriteLn(f, 'fmt: ', fmt); Flush(f);
while (fmt_str <> '') do
begin
fmt_idx := Pos('%', fmt_str);
if (fmt_idx < 1) then break;
out_str := out_str + Copy(fmt_str, 1, fmt_idx-1);
Delete(fmt_str, 1, fmt_idx);
fmt_spc := '';
while (fmt_str <> '') and (fmt_str[1] in ['0'..'9', '.', 'z', 'l', ' ', '+', '-', '#']) do
begin
fmt_spc := fmt_spc + fmt_str[1];
Delete(fmt_str, 1, 1);
end;
if (fmt_str = '') then break;
fmt_chr := fmt_str[1];
Delete(fmt_str, 1, 1);
case fmt_chr of
'%' : begin
out_str := out_str + '%';
continue;
end;
's' : begin
tmp_chr := PAnsiChar(args^);
tmp_str := '';
if (fmt_spc = '4.4') then
begin
if (tmp_chr^ <> #00) then
begin
tmp_str := tmp_str + tmp_chr^; Inc(tmp_chr);
end;
if (tmp_chr^ <> #00) then
begin
tmp_str := tmp_str + tmp_chr^; Inc(tmp_chr);
end;
if (tmp_chr^ <> #00) then
begin
tmp_str := tmp_str + tmp_chr^; Inc(tmp_chr);
end;
if (tmp_chr^ <> #00) then
begin
tmp_str := tmp_str + tmp_chr^; // Inc(tmp_chr);
end;
while (Length(tmp_str) < 4) do
begin
tmp_str := ' ' + tmp_str;
end;
end
else
begin
while (tmp_chr <> NIL) and (tmp_chr^ <> #00) do
begin
tmp_str := tmp_str + tmp_chr^;
Inc(tmp_chr);
end;
end;
out_str := out_str + tmp_str;
end;
'd' : begin
if (fmt_spc = 'll') then
begin
tmp_str := IntToStr(Integer(args^));
end
else
if (fmt_spc = 'l') then
begin
tmp_str := IntToStr(Integer(args^));
end
else
if (fmt_spc = 'z') then
begin
tmp_str := IntToStr(SmallInt(args^));
end
else
begin
tmp_str := IntToStr(Integer(args^));
end;
out_str := out_str + tmp_str;
end;
'i' : begin
tmp_str := IntToStr(Integer(args^));
out_str := out_str + tmp_str;
end;
'u' : begin
if (fmt_spc = 'll') then
begin
tmp_str := IntToStr(Cardinal(args^));
end
else
if (fmt_spc = 'z') then
begin
tmp_str := IntToStr(Word(args^));
end
else
begin
tmp_str := IntToStr(Cardinal(args^));
end;
out_str := out_str + tmp_str;
end;
'x', 'X' : begin
tmp_str := IntToHex(Cardinal(args^), 8);
out_str := out_str + tmp_str;
end;
'f' : begin
tmp_str := Format('%' + fmt_spc + fmt_chr, [Single(args^)]);
out_str := out_str + tmp_str;
end;
end;
Inc(args);
end;
out_str := out_str + fmt_str;
WriteLn(f, 'out: ', out_str); Flush(f);
WriteLn(out_str);
end;
begin
{$IFDEF DELPHI2007_UP}
ReportMemoryLeaksOnShutdown := TRUE;
{$ENDIF}
AssignFile(f, 'dump.txt');
ReWrite(f);
try
SetConsoleOutputCP(65001);
libvlc_dynamic_dll_init();
if (libvlc_dynamic_dll_error <> '') then
begin
raise Exception.Create(libvlc_dynamic_dll_error);
end;
with TArgcArgs.Create([
libvlc_dynamic_dll_path,
'--intf=dummy',
'--ignore-config',
'--quiet',
'--no-video-title-show'
]) do
begin
p_li := libvlc_new(ARGC, ARGS);
Free;
end;
libvlc_log_set(p_li, libvlc_log_cb, NIL);
p_md := libvlc_media_new_path(p_li, PAnsiChar(UTF8Encode(DEMO_FILE)));
libvlc_media_parse(p_md);
p_mi := libvlc_media_player_new_from_media(p_md);
libvlc_media_player_play(p_mi);
while (libvlc_media_player_get_state(p_mi) <> libvlc_Ended) do
begin
Sleep(50);
end;
libvlc_media_release(p_md);
libvlc_media_player_release(p_mi);
libvlc_release(p_li);
except
on E:Exception do
Writeln(E.Classname, ': ', E.Message);
end;
Flush(f);
Close(f);
ReadLn;
end.

View File

@@ -0,0 +1,37 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectGuid>{4754135a-5f6e-46a6-8c5f-8d5622e9c43f}</ProjectGuid>
<MainSource>DemoUseLog.dpr</MainSource>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<DCC_DCCCompiler>DCC32</DCC_DCCCompiler>
<DCC_DependencyCheckOutputName>DemoUseLog.exe</DCC_DependencyCheckOutputName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Version>7.0</Version>
<DCC_DebugInformation>False</DCC_DebugInformation>
<DCC_LocalDebugSymbols>False</DCC_LocalDebugSymbols>
<DCC_SymbolReferenceInfo>0</DCC_SymbolReferenceInfo>
<DCC_Define>RELEASE</DCC_Define>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<Version>7.0</Version>
<DCC_Define>DEBUG</DCC_Define>
</PropertyGroup>
<ProjectExtensions>
<Borland.Personality>Delphi.Personality</Borland.Personality>
<Borland.ProjectType>VCLApplication</Borland.ProjectType>
<BorlandProject>
<BorlandProject><Delphi.Personality><Parameters><Parameters Name="UseLauncher">False</Parameters><Parameters Name="LoadAllSymbols">True</Parameters><Parameters Name="LoadUnspecifiedSymbols">False</Parameters></Parameters><VersionInfo><VersionInfo Name="IncludeVerInfo">True</VersionInfo><VersionInfo Name="AutoIncBuild">False</VersionInfo><VersionInfo Name="MajorVer">1</VersionInfo><VersionInfo Name="MinorVer">0</VersionInfo><VersionInfo Name="Release">0</VersionInfo><VersionInfo Name="Build">0</VersionInfo><VersionInfo Name="Debug">False</VersionInfo><VersionInfo Name="PreRelease">False</VersionInfo><VersionInfo Name="Special">False</VersionInfo><VersionInfo Name="Private">False</VersionInfo><VersionInfo Name="DLL">False</VersionInfo><VersionInfo Name="Locale">1045</VersionInfo><VersionInfo Name="CodePage">1250</VersionInfo></VersionInfo><VersionInfoKeys><VersionInfoKeys Name="CompanyName"></VersionInfoKeys><VersionInfoKeys Name="FileDescription"></VersionInfoKeys><VersionInfoKeys Name="FileVersion">1.0.0.0</VersionInfoKeys><VersionInfoKeys Name="InternalName"></VersionInfoKeys><VersionInfoKeys Name="LegalCopyright"></VersionInfoKeys><VersionInfoKeys Name="LegalTrademarks"></VersionInfoKeys><VersionInfoKeys Name="OriginalFilename"></VersionInfoKeys><VersionInfoKeys Name="ProductName"></VersionInfoKeys><VersionInfoKeys Name="ProductVersion">1.0.0.0</VersionInfoKeys><VersionInfoKeys Name="Comments"></VersionInfoKeys></VersionInfoKeys><Excluded_Packages>
<Excluded_Packages Name="$(BDS)\bin\dcloffice2k100.bpl">Microsoft Office 2000 Sample Automation Server Wrapper Components</Excluded_Packages>
<Excluded_Packages Name="$(BDS)\bin\dclofficexp100.bpl">Microsoft Office XP Sample Automation Server Wrapper Components</Excluded_Packages>
</Excluded_Packages><Source><Source Name="MainSource">DemoUseLog.dpr</Source></Source></Delphi.Personality></BorlandProject></BorlandProject>
</ProjectExtensions>
<Import Project="$(MSBuildBinPath)\Borland.Delphi.Targets" />
<ItemGroup>
<DelphiCompile Include="DemoUseLog.dpr">
<MainSource>MainSource</MainSource>
</DelphiCompile>
<DCCReference Include="..\..\source\PasLibVlcUnit.pas" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,76 @@
fmt: unknown box type %4.4s (incompletely loaded)
out: unknown box type mpod (incompletely loaded)
fmt: elst box found
out: elst box found
fmt: STTS table of %u entries
out: STTS table of 1 entries
fmt: elst box found
out: elst box found
fmt: STTS table of %u entries
out: STTS table of 1 entries
fmt: decoded zero sample
out: decoded zero sample
fmt: DirectWrite initialization failed. Falling back to GDI/Uniscribe
out: DirectWrite initialization failed. Falling back to GDI/Uniscribe
fmt: DirectWrite initialization failed. Falling back to GDI/Uniscribe
out: DirectWrite initialization failed. Falling back to GDI/Uniscribe
fmt: plane %d not aligned: disabling direct rendering
out: plane 0 not aligned: disabling direct rendering
fmt: playback too late (%lld): up-sampling
out: playback too late (88868): up-sampling
fmt: playback way too late (%lld): flushing buffers
out: playback way too late (186741): flushing buffers
fmt: playback way too early (%lld): playing silence
out: playback way too early (-351381): playing silence
fmt: playback too late (%lld): up-sampling
out: playback too late (72601): up-sampling
fmt: timing screwed (drift: %lld us): stopping resampling
out: timing screwed (drift: 149154 us): stopping resampling
fmt: playback too late (%lld): up-sampling
out: playback too late (178542): up-sampling
fmt: playback way too late (%lld): flushing buffers
out: playback way too late (211953): flushing buffers
fmt: playback way too early (%lld): playing silence
out: playback way too early (-337853): playing silence
fmt: playback too late (%lld): up-sampling
out: playback too late (76615): up-sampling
fmt: timing screwed (drift: %lld us): stopping resampling
out: timing screwed (drift: 157122 us): stopping resampling
fmt: playback way too late (%lld): flushing buffers
out: playback way too late (182533): flushing buffers
fmt: playback way too early (%lld): playing silence
out: playback way too early (-342705): playing silence
fmt: playback too late (%lld): up-sampling
out: playback too late (76615): up-sampling
fmt: playback way too late (%lld): flushing buffers
out: playback way too late (182511): flushing buffers
fmt: playback way too early (%lld): playing silence
out: playback way too early (-325191): playing silence
fmt: playback too late (%lld): up-sampling
out: playback too late (72601): up-sampling
fmt: timing screwed (drift: %lld us): stopping resampling
out: timing screwed (drift: 149109 us): stopping resampling
fmt: playback too late (%lld): up-sampling
out: playback too late (149498): up-sampling
fmt: playback way too late (%lld): flushing buffers
out: playback way too late (182519): flushing buffers
fmt: playback way too early (%lld): playing silence
out: playback way too early (-331630): playing silence
fmt: playback too late (%lld): up-sampling
out: playback too late (84210): up-sampling
fmt: playback way too late (%lld): flushing buffers
out: playback way too late (182473): flushing buffers
fmt: playback way too early (%lld): playing silence
out: playback way too early (-339726): playing silence
fmt: playback too late (%lld): up-sampling
out: playback too late (76601): up-sampling
fmt: playback way too late (%lld): flushing buffers
out: playback way too late (182451): flushing buffers
fmt: playback way too early (%lld): playing silence
out: playback way too early (-356165): playing silence
fmt: playback too late (%lld): up-sampling
out: playback too late (84211): up-sampling
fmt: playback way too late (%lld): flushing buffers
out: playback way too late (190038): flushing buffers
fmt: playback way too early (%lld): playing silence
out: playback way too early (-341018): playing silence