Skip to content

Commit

Permalink
restore color range detection, update velopack
Browse files Browse the repository at this point in the history
  • Loading branch information
the-database committed Feb 26, 2024
1 parent 4cfbd02 commit 8ac6be7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
7 changes: 5 additions & 2 deletions AnimeJaNaiConverterGui/AnimeJaNaiConverterGui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<ApplicationManifest>app.manifest</ApplicationManifest>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
<Version>0.0.6</Version>
<Version>0.0.7</Version>
<Title>AnimeJaNaiConverterGui</Title>
<PackageIcon>logo.png</PackageIcon>
<ApplicationIcon>Assets\logo.ico</ApplicationIcon>
Expand Down Expand Up @@ -44,7 +44,7 @@
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Salaros.ConfigParser" Version="0.3.8" />
<PackageReference Include="SharpCompress" Version="0.36.0" />
<PackageReference Include="Velopack" Version="0.0.332" />
<PackageReference Include="Velopack" Version="0.0.340" />
</ItemGroup>


Expand All @@ -54,6 +54,9 @@


<ItemGroup>
<None Update="appstate - Copy.json">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<None Update="appstate.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@ def run_animejanai(clip, container_fps, chain_conf, backend):
models = chain_conf.get('models', [])
colorspace = "709"
colorlv = 1
# try:
# colorlv = clip.get_frame(0).props._ColorRange
# except AttributeError:
# pass
try:
colorlv = clip.get_frame(0).props._ColorRange
except AttributeError:
pass
fmt_in = clip.format.id

if len(models) > 0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,10 @@ def rife(
w_in, h_in = input.width, input.height
size_in = w_in * h_in
colorlv = 1
# TODO
# try:
# colorlv = getattr(input.get_frame(0).props, "_ColorRange", 0)
# except:
# pass
try:
colorlv = getattr(input.get_frame(0).props, "_ColorRange", 0)
except:
pass
fmt_in = input.format.id
fps_factor = fps_num / fps_den

Expand Down

0 comments on commit 8ac6be7

Please sign in to comment.