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. |
27th August 2018, 02:02 | #1 | Link |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
pixelscope - pixel value displayer
Download: pixelscope0.1.zip v0.1 - includes source
pixelscope, a debugging filter to display pixel values. Yes, the numbers are very small; I view it at 200% in VirtualDub2. At the moment, it only understands the "classic" colourspaces: RGB24, RGB32, Y8, YUY2, YV12, YV16, YV24, and YV411. If there's any interest I'll think about adding more. There are four DLLs in the zip file - x86 and x64 versions, plus statically-linked versions so you don't have to go around installing more runtimes if you don't want to. Code:
pixelscope (v0.1) ================= (c) David Horman, 2018 This debugging filter displays individual pixel values. It currently only works with the "classic" Avisynth colourspaces (RGB24, RGB32, Y8, YUY2, YV12, YV16, YV24, YV411). Usage ===== pixelscope( clip, (int) scale = 32, (bool) hex = false, (int) darken = 1, (bool) grid = true, (bool) interlaced = false, (string) matrix = "rec601", (bool) nocrop = false, (bool) right = false ) Parameters ========== scale: Upscale factor. hex: Displays values in hexadecimal. darken: This parameters darkens the input video for display. It does not affect displayed pixel values. 0: do not darken video 1: darken video (default) 2: darken video more grid: Enable/disable grid lines. interlaced: For YV12 video, this determines whether the video is treated as interlaced when converted to RGB for display, and also changes how the UV values are displayed to reflect interlacing. matrix: Colour matrix to use when converting to RGB for display. See converttorgb. nocrop: By default, pixelscope crops the input so that the output does not exceed 4K resolution - this is to avoid crashing Avisynth or your viewer. Setting this to true disables cropping. right: Right aligns pixel values instead of centering them. Last edited by wonkey_monkey; 27th August 2018 at 02:19. |
27th August 2018, 14:40 | #4 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
+2
Thanx for sharing. The RGB24 numbers look familiar, did you use some other plugin debug mode as inspiration ? (what plug). EDIT: Can you post image of YV12 Interlaced=True, sample, am curious how you do it. [chroma numbers layout]
__________________
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; 27th August 2018 at 14:44. |
27th August 2018, 15:08 | #5 | Link |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Well it's not pretty:
I may add some arrows or something to more properly indicate that lines 1 and 3 share chroma, lines 2 and 4, and so on. As for the numbers, I drew them myself - there are only so many ways to draw 3x5 characters. For RGB32 a white alpha number is added above red. For YUV inputs, U is blue and V is red. Last edited by wonkey_monkey; 3rd July 2019 at 13:43. |
27th August 2018, 15:12 | #6 | Link | ||
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Lovely David, thanx, better than anticipated.
Would it then be Mpeg1 chroma placement as opposed to mpeg2 [just throwing you a curved ball ] EDIT: Quote:
EDIT: Or maybe use different pairs of [EDIT: background] colors for "pairs of chroma pairs", if you get what I mean. (red,grn,red,grn, - blue,yel,blu,yel) or something like that. EDIT: Quote:
font to the builtin one (because as you say, there are only so many ways you can do it). EDIT: Maybe its the QL style font that is familiar to me [I did comercial s/w for it for several (4 or 5) years].
__________________
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; 27th August 2018 at 15:40. |
||
16th December 2018, 17:19 | #7 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,377
|
Thanks for the filter
Quote:
Would it be difficult to add additional ones ? 10bit is becoming more prevalent in consumer space |
|
9th April 2020, 21:17 | #9 | Link |
Big Bit Savings Now !
Join Date: Feb 2007
Location: close to the wall
Posts: 1,545
|
Oh I could need some 10bit support now ;-)
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain) "Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..." |
|
|