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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 7th October 2005, 15:44   #1  |  Link
kingmob
Registered User
 
Join Date: Jun 2004
Location: Netherlands
Posts: 129
converting RGB levels to YUV levels

It seems to be impossible for me to create anything logical with YV12lut to adjust levels. I cannot seem to grasp how the colors are going to change or what i need to tweak, while i do not have this problem with RGBlut.
So now i was thinking, isn't it possible to somehow convert these numbers to YUV? I'm guessing you can describe either Y, U or V by using RGB values, so each RGB combination is linked to a YUV combination. Extrapolating on this it should be possible to use this while changing levels.
If so, this would save me the colorspace conversion to RGB and back to YV12, which i now need to do on my underwatervideos.
So, am I way off with this or is it possible?

To show what i mean here is something i found by googling:
Code:
From RGB to YUV


Y = 0.299R + 0.587G + 0.114B
U = 0.492 (B-Y)
V = 0.877 (R-Y)


It can also be represented as:


Y =  0.299R + 0.587G + 0.114B
U = -0.147R - 0.289G + 0.436B
V =  0.615R - 0.515G - 0.100B




From YUV to RGB


R = Y + 1.140V
G = Y - 0.395U - 0.581V
B = Y + 2.032U

Last edited by kingmob; 7th October 2005 at 15:46.
kingmob is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 18:18.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.