tutamf.blogg.se

Sweetfx 2.0 link
Sweetfx 2.0 link






There are four matrices in use for consumer-grade digital video (see code box at the bottom of this post). For some reason the standards do specify all sorts of weird OECF formats, but those are usually not even close to the image reproduction reference.Īfter converting to RGB, you can convert to XYZ by matrix multiplication. This is correct for all consumer-grade digital video.

sweetfx 2.0 link

This method isn't the cleanest way to deal with exponentiation, but it does the job.) Note the standard 2.4 factor. (The pow instructions will produce a NaN on all negative inputs. The down-side to that is that it also encodes non-existing colors (which are actually not that hard to deal with).Īssuming R'G'B' input, the first conversion step is done by converting R'G'B' to RGB: "s1 = sign(s1)*pow(abs(s1), 2.4) // to linear RGB, negative input compatible". It's also all-positive, and can encode all colors in the human-visable spectrum. That means that it's great for linear scaling, but will not work for any filter that expects non-linearity at all. It demands linear light input, and also filters in linear light mode. The XYZ color space is the both the easiest and the hardest color space to manipulate. To start off with one shader, for the DPX shader I see that you've tried to use the XYZ color space. This is the first release, and I haven't taken the time to tweak the default settings so they are more suited for watching videos - if you find some better default settings please suggest them to me so I can update the shader package.Īll of the code for the effect follows the settings, but in the next version I'll probably separate them and just use a template to include the code from the untouched SweetFX shader in the SweetFX package for games as this makes porting over new versions of the effect a simple drag and drop of the new file so I don't have to port it again.

sweetfx 2.0 link

I'd make editing the settings easier if I could but MPC-HC doesn't have an interface for editing shader settings. I assume you know how to add and enable shaders in MPC-HC. On request I have ported over all the shaders from SweetFX so that they can now run in MPC-HC.ġ) Install the latest MPC-HC - you will need at least version 1.7.2 (current version as I write this is 1.7.3)Ģ) Extract the shaders to the Shaders folder in the MPC-HC folder.ģ) You can edit settings in the.








Sweetfx 2.0 link