Talk:GreyScale
From Avisynth wiki
(Difference between revisions)
(RGB behavior) |
Raffriff42 (Talk | contribs) (reply) |
||
Line 21: | Line 21: | ||
#ShowRed("YV12").Histogram("levels") | #ShowRed("YV12").Histogram("levels") | ||
</pre> | </pre> | ||
+ | :That is true, but the name "Rec601" is hard coded into the filter. This is why I explained that | ||
+ | ::''In all cases, Luma range is not changed'' | ||
+ | :Perhaps it can be worded better? I will try something. --[[User:Raffriff42|Raffriff42]] 17:09, 17 January 2016 (CET) |
Revision as of 18:09, 17 January 2016
RGB behavior
This statement was recently removed from the documentation:
- In RGB based formats, the conversion produces the luma using the coefficients given in the matrix parameter (rec601 by default, which reflects the behaviour in old AviSynth versions).
With the following script you can see that using Grayscale() on a RGB source actually uses the "PC.601" matrix, at least in AviSynth 2.6.
ColorBars() gray = Grayscale().Subtitle("Grayscale") pc601 = ConvertToY8(matrix="PC.601") pc601 = MergeRGB(pc601, pc601, pc601).Subtitle("PC.601") rec601 = ConvertToY8(matrix="Rec601") rec601 = MergeRGB(rec601, rec601, rec601).Subtitle("Rec601") Interleave(gray, pc601, rec601) #ShowRed("YV12").Histogram("levels")
- That is true, but the name "Rec601" is hard coded into the filter. This is why I explained that
- In all cases, Luma range is not changed
- Perhaps it can be worded better? I will try something. --Raffriff42 17:09, 17 January 2016 (CET)