Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
f949c3e
LumaYUV v8 interface
Asd-g May 13, 2020
7e4c39d
Update README.md
Asd-g May 15, 2020
ddcf97c
Rename the plugin to D2VSource
Asd-g Jun 20, 2020
30508c3
Set frame properties
Asd-g Oct 13, 2020
7ba1d7f
Set variables FFSAR_NUM, FFSAR_DEN, FFSAR
Asd-g Dec 1, 2020
a2451b0
make library buildable under linux too
eblanca Dec 8, 2020
e09a2ec
Merge pull request #5 from eblanca/posix_compat
Asd-g Dec 14, 2020
f8b68fe
Fix file path (Linux)
Asd-g Jan 1, 2021
2f40322
Add support for path using forward slash (Windows)
Asd-g Jan 16, 2021
23c9bc6
Remove unused definition
Asd-g Jan 16, 2021
c93c218
Move building files for Linux
Asd-g Jan 16, 2021
af0b296
Add building instruction
Asd-g Jan 17, 2021
5696dac
Display correct values of frame properties _Quants* when info=0
Asd-g Jan 20, 2021
a0c60f0
Update CHANGELOG.md
Asd-g Jan 20, 2021
09da7b8
Update CMakeLists.txt
Asd-g Feb 9, 2021
fc56927
Update README.md
Asd-g Feb 9, 2021
bddff87
Fix FFSAR_NUM, FFSAR_DEN, FFSAR
Asd-g Apr 14, 2021
a52ca7d
Update README.md
Asd-g Sep 8, 2021
ff818d1
Fix regression for relative file paths
Asd-g Dec 11, 2021
dcc9acc
Update to 1.2.5
Asd-g Apr 17, 2022
3bf6a9b
Fix Linux building
Asd-g May 7, 2022
5cbd9d7
Restore previous behavior of _FieldBased
Asd-g May 7, 2022
bd75418
Fix _DurationNum and _DurationDen
Asd-g May 7, 2022
a08bc2d
Add _SARDen and _SARNum (videoh) (#10)
Asd-g May 7, 2022
998477d
Add _FieldOperation, _TFF, _RFF, _Film, _ProgressiveFrame, _ChromaLoc…
Asd-g May 7, 2022
8d4a976
Add nocrop and rff (#9)
Asd-g May 7, 2022
df6eda2
Update CHANGELOG.md
Asd-g May 7, 2022
a4b690e
Update README.md
Asd-g May 7, 2022
3bbe326
Update to 1.3.0; close #10
Asd-g May 15, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
#sources
*.c text
*.cc text
*.cxx text
*.cpp text
*.c++ text
*.hpp text
*.h text
*.h++ text
*.hh text

# Compiled Object files
*.slo binary
*.lo binary
*.o binary
*.obj binary

# Precompiled Headers
*.gch binary
*.pch binary

# Compiled Dynamic libraries
*.so binary
*.dylib binary
*.dll binary

# Compiled Static libraries
*.lai binary
*.la binary
*.a binary
*.lib binary

# Executables
*.exe binary
*.out binary
*.app binary
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just comment the entries below and
# uncomment the group further below
###############################################################################

*.sln text eol=crlf
*.csproj text eol=crlf
*.vbproj text eol=crlf
*.vcxproj text eol=crlf
*.vcproj text eol=crlf
*.dbproj text eol=crlf
*.fsproj text eol=crlf
*.lsproj text eol=crlf
*.wixproj text eol=crlf
*.modelproj text eol=crlf
*.sqlproj text eol=crlf
*.wmaproj text eol=crlf

*.xproj text eol=crlf
*.props text eol=crlf
*.filters text eol=crlf
*.vcxitems text eol=crlf


#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary

#*.xproj merge=binary
#*.props merge=binary
#*.filters merge=binary
#*.vcxitems merge=binary
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
##### 1.3.0:
Changed `_SARDen`, `_SARNum` to display MPEG-4 PAR. (videoh)
Changed `_AspectRatio` type to array int.

##### 1.2.6:
Restored previous behavior of frame property `_FieldBased`.
Fixed frame properties `_DurationNum` and `_DurationDen`.
Added frame properties `_SARDen`, `_SARNum`, `_FieldOrder`, `_FieldOperation`, `_TFF`, `_RFF`, `_Film`, `_ProgressiveFrame`, `_ChromaLocation`, `_AbsoluteTime`. (videoh)
Added parameters `nocrop` and `rff`.

##### 1.2.5:
Fixed frame property `_FieldBased`.

##### 1.2.4:
Fixed regression for relative file paths.

##### 1.2.3:
Fixed FFSAR_NUM, FFSAR_DEN, FFSAR.

##### 1.2.2:
Fixed values of frame properties _Quants* when info=0.

##### 1.2.1:
Added support for path with forward slash (Windows).

##### 1.2.0:
Added variables (ffms2 like) - FFSAR_NUM, FFSAR_DEN, FFSAR.

##### 1.1.0:
Set frame properties - _DurationNum, _DurationDen, _FieldBased, _AspectRatio, _GOPNumber, _GOPPosition, _GOPClosed, _EncodedFrameTop, _EncodedFrameBottom, _PictType, _Matrix, _QuantsAverage, _QuantsAverage, _QuantsMax.

##### 1.0.0:
Renamed the plugin and function to D2VSource.
67 changes: 67 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
cmake_minimum_required(VERSION 3.16)

project(libd2vsource 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(d2vsource SHARED
src/AVISynthAPI.cpp
src/color_convert.cpp
src/getbit.cpp
src/gethdr.cpp
src/getpic.cpp
src/global.cpp
src/idct_ap922_sse2.cpp
src/idct_llm_float_avx2.cpp
src/idct_llm_float_sse2.cpp
src/idct_ref_sse3.cpp
src/mc.cpp
src/misc.cpp
src/MPEG2Decoder.cpp
src/store.cpp
src/yv12pict.cpp
)

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

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

set_source_files_properties(src/idct_ap922_sse2.cpp PROPERTIES COMPILE_OPTIONS "-mfpmath=sse;-msse2")
set_source_files_properties(src/idct_llm_float_sse2.cpp PROPERTIES COMPILE_OPTIONS "-mfpmath=sse;-msse2")
set_source_files_properties(src/idct_ref_sse3.cpp PROPERTIES COMPILE_OPTIONS "-mssse3")
set_source_files_properties(src/idct_llm_float_avx2.cpp PROPERTIES COMPILE_OPTIONS "-mavx2;-mfma")

target_include_directories(d2vsource PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/src
/usr/local/include/avisynth
)

set_target_properties(d2vsource PROPERTIES OUTPUT_NAME "d2vsource.${ver}")

target_compile_features(d2vsource PRIVATE cxx_std_17)

include(GNUInstallDirs)

INSTALL(TARGETS d2vsource
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}/avisynth")

# uninstall target
if(NOT TARGET uninstall)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)

add_custom_target(uninstall
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
endif()
File renamed without changes.
File renamed without changes.
Loading