Skip to content

Commit

Permalink
Update to 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Asd-g committed Jan 2, 2022
1 parent ef858c5 commit 3d17e2b
Show file tree
Hide file tree
Showing 5 changed files with 233 additions and 180 deletions.
34 changes: 20 additions & 14 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,36 @@ cmake_minimum_required(VERSION 3.16)

project(libhqdn3d LANGUAGES CXX)

find_package (Git)

if (GIT_FOUND)
execute_process (COMMAND ${GIT_EXECUTABLE} describe --tags --abbrev=0
OUTPUT_VARIABLE ver
OUTPUT_STRIP_TRAILING_WHITESPACE
)
else ()
message (STATUS "GIT not found")
endif ()

add_library(hqdn3d SHARED src/hqdn3d.cpp)

target_include_directories(hqdn3d PRIVATE /usr/local/include/avisynth)

if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
endif()

string(TOLOWER ${CMAKE_BUILD_TYPE} build_type)
if (build_type STREQUAL debug)
target_compile_definitions(hqdn3d PRIVATE DEBUG_BUILD)
else (build_type STREQUAL release)
target_compile_definitions(hqdn3d PRIVATE RELEASE_BUILD)
endif ()

message(STATUS "Build type - ${CMAKE_BUILD_TYPE}")

target_include_directories(hqdn3d PRIVATE /usr/local/include/avisynth)
target_compile_features(hqdn3d PRIVATE cxx_std_17)

set_target_properties(hqdn3d PROPERTIES OUTPUT_NAME "hqdn3d.${ver}")
find_package (Git)

target_compile_features(hqdn3d PRIVATE cxx_std_11)
if (GIT_FOUND)
execute_process (COMMAND ${GIT_EXECUTABLE} describe --tags --abbrev=0
OUTPUT_VARIABLE ver
OUTPUT_STRIP_TRAILING_WHITESPACE
)
set_target_properties(hqdn3d PROPERTIES OUTPUT_NAME "hqdn3d.${ver}")
else ()
message (STATUS "GIT not found")
endif ()

include(GNUInstallDirs)

Expand Down
5 changes: 5 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
hqdn3d 1.1.0 (2022-01-03):
Fixed bug if the frame processing is out of sequence.
Improved the speed by ~20% (mt=false).
Added parameter mt.

hqdn3d 1.0.2 (2021-12-17):
Fixed crash when the clip is high bit depth and cs=0.
Fixed garbage second row when the clip is high bit depth.
Expand Down
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ High bit depth support ported from the ffmpeg plugin.
### Usage:

```
hqdn3d (clip input, float "ls", float "cs", float "lt", float "ct", int "restart", int "y", int "u", int "v")
hqdn3d (clip input, float "ls", float "cs", float "lt", float "ct", int "restart", int "y", int "u", int "v", bool "mt")
```

### Parameters:

- input\
A clip to process.\
It must be in YUV 8..16-bit planar format.

- ls\
Spatial luma strength.\
Increasing the value will improve the smoothing but may overblur.\
Anything above about 10 is probably not a good idea.\
Must be between 0.0..255.0.\
Default: 4.0.

- cs\
Spatial chroma strength.\
Increasing the value will improve the smoothing but may overblur.\
Expand All @@ -42,27 +42,31 @@ hqdn3d (clip input, float "ls", float "cs", float "lt", float "ct", int "restart
Anything above about 13 is probably not a good idea.\
Must be between 0.0..255.0.\
Default: 6.0 \* ls / 4.0.

- ct\
Chroma temporal strength.\
Increasing the values will improve the smoothing but may cause ghosting.\
Anything above about 13 is probably not a good idea.\
Must be between 0.0..255.0.\
Default: lt \* cs / ls.

- restart\
Whenever a frame is requested out of order, restart filtering this many frames before.\
While seeking still slightly affects the content of the frames returned, this should reduce the disturbance to an unnoticeable level.\
Must be non-negative value.
Default: max(2, 1 + max(lt, ct)).

- y, u, v\
Planes to process.\
1: Return garbage.\
2: Copy plane.\
3: Process plane.\
Default: y = u = v = 3.


- mt\
Whether to process the planes in parallel.\
Default: False.

### Building:

- Windows\
Expand All @@ -72,7 +76,7 @@ hqdn3d (clip input, float "ls", float "cs", float "lt", float "ct", int "restart
```
Requirements:
- Git
- C++11 compiler
- C++17 compiler
- CMake >= 3.16
```
```
Expand Down
Loading

0 comments on commit 3d17e2b

Please sign in to comment.