Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
29th March 2020, 14:35 | #5302 | Link | |
Registered User
Join Date: Dec 2002
Location: Region 0
Posts: 1,436
|
Quote:
You can quickly test for it by doing an integer point resample modification to the chroma and back. It should be lossless, but using the built in avisynth+ functions it's not. Using avsresize (z.lib) it is lossless. Lossless: z_ConvertFormat(pixel_type="YUV422P10", resample_filter="point", colorspace_op="170m:601:170m:f=>170m:601:170m:f") z_ConvertFormat(pixel_type="YV12", resample_filter="point", colorspace_op="170m:601:170m:f=>170m:601:170m:f") not lossless ConvertToYUV422(matrix="PC.601", chromaresample="point") ConvertToYUV420(matrix="PC.601", chromaresample="point") |
|
30th March 2020, 06:37 | #5303 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
can someone add HBD to http://avisynth.nl/index.php/MedianBlur2 and http://avisynth.nl/index.php/AddGrainC ?
they are very basic functions that needed in many scripts
__________________
See My Avisynth Stuff |
30th March 2020, 08:45 | #5305 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
I kinda shy to ask pinterf since he already did many ports and work for avs if not you then maybe jpsdr or MeteorRain for MedianBlur2 there are also https://forum.doom9.org/showthread.p...20#post1810220
__________________
See My Avisynth Stuff |
|
30th March 2020, 09:08 | #5306 | Link | |
Registered User
Join Date: Jul 2018
Posts: 450
|
Quote:
|
|
30th March 2020, 09:39 | #5307 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
__________________
See My Avisynth Stuff |
|
31st March 2020, 00:13 | #5308 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
so, anyone will pickup MedianBlur2?
__________________
See My Avisynth Stuff |
31st March 2020, 14:04 | #5310 | Link |
Registered User
Join Date: Nov 2010
Posts: 124
|
Pinterf, i have a try to compile your last build of AviSynthPlus (VC2019),
but several times I encounter the following messages: Error C3447 third operand to the conditional operator ?: is of type 'void', but the second operand is neither a throw-expression nor of type 'void' and also C2440 'return': cannot convert from 'AVSMapValue' to 'AVSMapValue &' It is critical? I read some things in the following forum: https://cboard.cprogramming.com/c-pr...type-void.html Thank you in advance and sorry for disturbance. I'm not deep familiar with C/C++ programming. |
31st March 2020, 14:51 | #5313 | Link |
Registered User
Join Date: Nov 2010
Posts: 124
|
Also in strings.cpp ->
Warning C4996 'std::codecvt_utf8_utf16<wchar_t,1114111,(std::codecvt_mode)0>': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the <codecvt> header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning. and error C2039: 'unique_ptr': is not a member of 'std' message : see declaration of 'std' syntax error: missing ';' before '<' error C4430: missing type specifier - int assumed. Note: C++ does not support default-int Sorry for double post. |
31st March 2020, 17:56 | #5315 | Link |
I'm Siri
Join Date: Oct 2012
Location: void
Posts: 2,633
|
you could probably write a very high level script-like API wrapper, like I recently did, if you wanna make the coding process painless for people that wish to write their own plugins but with little knowledge of C or C++
|
1st April 2020, 07:33 | #5317 | Link |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
I enjoy your coding experiments despite the fact that sometimes I feel myself dummy and too old for those abstractions that are allowed by modern C++ syntax. I have the similar feelings when I'm looking into secrit-twc's repos who solves problems in two elegant lines which I'm doing with a half page of code. Probably my son will do it better than me (he's studying informatics), they had already C++ basics, C++11, 14 and 17 are covered by second half-year course, so he cannot help me right now in interpreting those magics you are doing.
|
2nd April 2020, 09:48 | #5319 | Link |
結城有紀
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 894
|
I actually took some time to read F2's code. I'm impressed by how elegant it's done. In my dual interface framework I put wrapper as template parameter, while he put the filter engine as template parameter. Very interesting design.
Lots of features are not supported yet -- lots of C++20 things. So no MSVC at this point == no chance for AviSynth+ for Windows. |
|
|