Log in

View Full Version : RGB levels()/overlay()?


wonkey_monkey
7th December 2006, 11:06
Hi,

I would have searched for this, but search ignores terms under three characters long, like "RGB"!

I'm looking for RGB equivalents to levels() and overlay() - I write a lot of image manipulating stuff in RGB, but if I want to replicate what I've done (or replicate a combination of Photoshop filters and overlays) I get different results in AVISynth because levels() and overlay() convert to YUY2.

Can anyone help?

David

actionman133
7th December 2006, 14:14
Levels () works in both RGB and YUV without converting.

Overlay converts to a 24 bit YUV format (4:4:4) internally for processing but can output RGB if you want it to. Just specify it in the options (check the AVISynth manual for directions).

wonkey_monkey
7th December 2006, 14:23
From the manual:

Input for overlay is any colorspace, and colorspaces of different clip doesn't matter! The input clips are internally converted to a general YUV (with no chroma subsampling) format, so it is possible for the filter to output another colorspace than the input.

My mistake about levels(), though.

David

actionman133
7th December 2006, 16:33
That still matches with what I said... that Overlay internally converts to a YUV 4:4:4 (not YUY2, which is 4:2:2) for processing and then converts back to RGB.

Perhaps we can help you more if you can tell us specifically what you are trying to achieve with Overlay ()...

IanB
8th December 2006, 03:29
Layer() works nativly with RGB32.

wonkey_monkey
8th December 2006, 14:45
It was right there in front of me the whole time... thanks!

David