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. |
8th April 2017, 20:53 | #3222 | Link | |
Registered User
Join Date: Mar 2012
Location: Texas
Posts: 1,666
|
Quote:
Don't know if you have any interest in fixing this but a while back I reported an issue with ImageWriter and Y8 colorspace: https://github.com/AviSynth/AviSynthPlus/issues/58 Feature request: Is it possible to add a parameter to ImageWriter to be able to specify DPI? And also add the ability to save B/W 1-bit images? I don't know the ins and outs of DevIL so if it's something complicated, please ignore me. |
|
9th April 2017, 18:21 | #3225 | Link |
Registered User
Join Date: Feb 2003
Location: Russia, Moscow
Posts: 854
|
High bit image processing under avisynth
Hi all!
Thanks for support! I am trying filtering grey scale image 6639x4032 using Code:
KNLMeansCL(device_type="GPU",h=2, lsb_inout=true,a=32,s=4) yup. |
10th April 2017, 18:30 | #3226 | Link |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
More dev news:
- avs scripts with unicode filenames can be opened though the VfW interface (VirtualDub, MPC-HC) - SubTitle: new parameter bool "utf8" to allow rendering an UTF8 encoded text. Something like this: Title="Cherry blossom "+CHR($E6)+CHR($A1)+CHR($9C)+CHR($E3)+CHR($81)+CHR($AE)+CHR($E8)+CHR($8A)+CHR($B1) SubTitle(Title,utf8=true) I don't know whether this was a huge demand or not, but someone probably can use it. |
10th April 2017, 19:24 | #3227 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
(Also other functions using filenames, builtin or plugin [EDIT: where filenames generated from eg ScripName()]).
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 10th April 2017 at 19:35. |
|
11th April 2017, 08:00 | #3228 | Link | |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
Quote:
The plugin directories, reading them from registry, adding them through LoadPlugin and SCRIPTxxx macro expansion is not effected yet. Now there are ScriptNameUtf8(), ScriptFileUtf8() and ScriptDirUtf8() functions. All functions working with file names and path would be nice to have an utf8 version, maybe we'll need functions converting to and from utf8 as well. ImageSource, etc. have to be extended too. Nice plans anyway, but sticking with the idea of "keep it compatible with everything existed so far" makes it harder. |
|
12th April 2017, 19:28 | #3230 | Link |
Registered User
Join Date: Jan 2016
Posts: 79
|
I have a few questions regarding Stacked16, its interleaved counterpart and "Native" bit depth.
First off, how is a Stacked format converted to and from "native" bit depth and likewise for interleaved formats? I also do not understand what native bitdepth. Is it when both the MSB and the LSb are at the same place in memory? Secondly, let's say you have a piece of code like this: Code:
ConvertToStacked() StackVertical(dither_get_msb().mt_lut("x 20 +"), dither_get_lsb().mt_lut("x 0.8 ^")).ConvertFromStacked() Sorry if I don't make much sense. Thank you. |
12th April 2017, 20:44 | #3231 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
native in memory will be like interleaved, but it's not use any hack, so no extra parameters will needed to tell the filter what is the bitdepth
__________________
See My Avisynth Stuff Last edited by real.finder; 12th April 2017 at 21:32. |
|
12th April 2017, 21:11 | #3232 | Link |
Retried Guesser
Join Date: Jun 2012
Posts: 1,373
|
With pinterf's masktools v2.2.x, stacking is not needed. The following statements are equivalent (or very close):
Code:
## 8-bit gamma 0.8, TV range: mt_lut("x 16 - 219 / 1 0.8 / ^ 219 * 16 +") Code:
## 16-bit gamma 0.8, TV range: ConvertBits(16) ## (if needed) mt_lut(x 16 @B - 219 @B / 1 0.8 / ^ 219 @B * 16 @B +") ConvertBits(8) ## (if needed) |
13th April 2017, 01:42 | #3233 | Link |
Registered User
Join Date: Jan 2016
Posts: 79
|
I am aware of what you both said but I guess I'm looking for a description of the method to convert from stack16 to native 16 bits and vice versa and the same thing for stack16 and interleaved. As in when converting from stack16 to native 16 bits, is it the average of the MSB and LSB then bitshifted [((MSB+LSB)/2) >> 8]. It's probably not that easy so I would just like to know. Again, sorry if I do not make much sense.
Thank you. |
13th April 2017, 04:51 | #3236 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
so this will do same thing
Code:
mt_lut("x 256 / Floor 20 + 0 255 clip 8 << x 256 % 0.8 ^ +") and this Code:
mt_lut("i16 clamp_f_i16 x 256 scalef / Floor 20 + 0 255 clip 256 scalef * x 256 scalef % 0.8 ^ +")
__________________
See My Avisynth Stuff Last edited by real.finder; 13th April 2017 at 10:24. |
14th April 2017, 07:58 | #3238 | Link |
Registered User
Join Date: Jul 2003
Location: India
Posts: 890
|
i am on r2420_MT 64 bit version. I have problem if I convertto YUY2()
my script is Code:
imagesource(....) #converttoYV24() #converttoYUY2() a = stackhorizontal(last, last) b = stackhorizontal(last, last) stackvertical(a,b) # reduceby2 does take back last to image with YUY2 reduceby2() return(last) |
|
|