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. |
14th December 2016, 13:30 | #2701 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,316
|
I've made some tests, and i'm screwed, as i was afraid. As i suspected, the fact that Prefetch must be at the end of the script made me unable to get the value using GetProperty(AEP_FILTERCHAIN_THREADS) inside AvisynthPluginInit3, or, in worst case, inside Create_xxxx. I'll probably get the information only within GetFrame, but it's too late.
Using the value of the size of the internal threadpool is not interesting because it may lead to create too much threads, so, for now, i'll use the workaround to add a prefetch parameter to my plugins (the purpose is to try to speed-up things with script using prefecth). |
14th December 2016, 16:55 | #2702 | Link | |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,420
|
Quote:
Report the issue in the avspmod or YATTA threads. That's where the problems are, not here. |
|
14th December 2016, 21:19 | #2703 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
if I have 2 mvtools2.dll one that work with 2.5 in non plus folder and one that work with 2.6 in plugins+ I note that the one in the non plus folder is used in encode! is this normal?
__________________
See My Avisynth Stuff |
14th December 2016, 21:54 | #2704 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
It should load from the "+" directory first. Run "AVSMeter -avsinfo -log" and post the created log file.
__________________
Groucho's Avisynth Stuff |
15th December 2016, 09:12 | #2705 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Isn't better to have it opposite? first non plus then plus
in AVSMeter -avsinfo show the non plus first then plus one! whether in avsdeps.log or in avsinfo.log
__________________
See My Avisynth Stuff |
15th December 2016, 09:47 | #2706 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,316
|
I think it's the way avs+ is designed.
The plugins+ directory is "only" for the avs+ system plugins, the plugins directory is for the user plugins. "Theoricaly", you shouldn't put plugins in the plugins+ directory. As it's where are supposed to be the system plugins, it's (from my point of view) normal to have this directory read first. |
15th December 2016, 10:37 | #2707 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
__________________
Groucho's Avisynth Stuff Last edited by Groucho2004; 15th December 2016 at 11:09. |
|
16th December 2016, 00:05 | #2709 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
PluginDir2_5 in Software/Avisynth in HKEY_LOCAL_MACHINE PluginDir2_5 in Software/Avisynth in HKEY_CURRENT_USER PluginDir+ in Software/Avisynth in HKEY_LOCAL_MACHINE PluginDir+ in Software/Avisynth in HKEY_CURRENT_USER
__________________
See My Avisynth Stuff |
|
17th December 2016, 12:35 | #2711 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
Code:
#define FLT_DIG 6 /* # of decimal digits of precision */ #define FLT_EPSILON 1.192092896e-07F /* smallest such that 1.0+FLT_EPSILON != 1.0 */ #define FLT_GUARD 0 #define FLT_MANT_DIG 24 /* # of bits in mantissa */ #define FLT_MAX 3.402823466e+38F /* max value */ #define FLT_MAX_10_EXP 38 /* max decimal exponent */ #define FLT_MAX_EXP 128 /* max binary exponent */ #define FLT_MIN 1.175494351e-38F /* min positive value */ #define FLT_MIN_10_EXP (-37) /* min decimal exponent */ #define FLT_MIN_EXP (-125) /* min binary exponent */ #define FLT_NORMALIZE 0 #define FLT_RADIX 2 /* exponent radix */ #define FLT_ROUNDS 1 /* addition rounding: near */
__________________
Groucho's Avisynth Stuff |
|
17th December 2016, 12:38 | #2712 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,316
|
No, i mean the limit of the value a pixel can have in a float format.
I should take a look at the avisynth code which convert float to 8bits (if i found it), i think i'll have the answer i'm looking for. |
17th December 2016, 14:30 | #2713 | Link |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
Float is 0.0 to 1.0 for all planes. Usually not clamped. But the range may change if it is against silent standards, e.g. -0.5 to 0.5 for U and V planes. Now there is no danger of change unless zillions of plugins appear supporting it
|
17th December 2016, 15:22 | #2714 | Link | |
I'm Siri
Join Date: Oct 2012
Location: void
Posts: 2,633
|
Quote:
the only exception would be a floating point mask clip, which should be clamped to 0.0 - 1.0 |
|
17th December 2016, 15:33 | #2715 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Why u use offset float 4 uv? Whyyyyyy?
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
17th December 2016, 15:56 | #2716 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,781
|
Because U (Cb) and V (Cr) are defined as "difference away from neutral gray" towards blue/yellow or red/green. So it's quite intuitive. A default chrominance in short integer is unfortunately not 0 (between -128 and 127, as signed short int) but 128; it's unsigned short int (Pascal type: Byte).
|
17th December 2016, 16:15 | #2717 | Link | |
I'm Siri
Join Date: Oct 2012
Location: void
Posts: 2,633
|
Quote:
unsigned char = uint8_t |
|
17th December 2016, 16:48 | #2719 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,316
|
Ok, i'll work with that. I'm trying to see if i can change nnedi3 to support extended format. So far, results are not good, i have to continue to work/test, but i'm affraid that neural network is trained for range value of 0-255. Every input out of this range will produce improper result. For now, my next step will be to put all values in the 0-255 range, but in float format. So if input is float, multiply by 255, if input is integer more than 8 bits, convert to float by 255*(value/valuemax) (all in float of course).
This will be my next thing to try. |
17th December 2016, 16:54 | #2720 | Link | |
I'm Siri
Join Date: Oct 2012
Location: void
Posts: 2,633
|
Quote:
just do some copy-paste work from vaporsynth nnedi3 and ur good to go Last edited by feisty2; 17th December 2016 at 17:57. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|