|
1 RGB to Y CbCr for SD&HD video input for floating point surfaces, ebook |
|
[ Pobierz całość w formacie PDF ] // (C) 2011 Jan-Willem Krans (janwillem32 <at> hotmail.com)// This file is part of Video pixel shader pack.// This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.// You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.// RGB to Y'CbCr for SD&HD video input for floating point surfaces// This shader should not be run as a screen space pixel shader.// If possible, avoid compiling with the software emulation modes (ps_?_sw). Pixel shaders require a lot of processing power to run in real-time software mode.// This shader will change BT.709 [HD] or BT.601 [SD] derived RGB to Y'CbCr of an image.sampler s0;float2 c0;float4 main(float2 tex : TEXCOORD0) : COLOR{float3 s1 = tex2D(s0, tex).rgb;// original pixelif(c0.x < 1120 && c0.y < 630) return float3(dot(float3(.299, .587, .114), s1), dot(float3(-.1495/.886, -.2935/.886, .5), s1), dot(float3(.5, -.2935/.701, -.057/.701), s1)).xyzz;// SD RGB to Y'CbCr outputreturn float3(dot(float3(.2126, .7152, .0722), s1), dot(float3(-.1063/.9278, -.3576/.9278, .5), s1), dot(float3(.5, -.3576/.7874, -.0361/.7874), s1)).xyzz;// HD RGB to Y'CbCr output}
[ Pobierz całość w formacie PDF ] zanotowane.pldoc.pisz.plpdf.pisz.plhadwao.keep.pl
|
|
|
|
|
Odnośniki |
|
- Indeks
- 11 Granny Square Crochet Patterns for Square Crochet Projects eBook, AA WZORY NA SZYDEŁKO
- 10 Essentials of Forex Trading, ebook, forex
- 06.Czas bezprawia - Beria - Sensacje XX wieku, Ebook, 02. XX-lecie miedzywojenne
- 08.Najcenniejszy świadek zbrodni - Sensacje XX wieku, Ebook, 02. XX-lecie miedzywojenne
- 11.Przeklęte okrety - Titanic - Sensacje XX wieku, Ebook, 02. XX-lecie miedzywojenne
- 08, ebook, programowanie, nowy katalog, uml, UML
- 09, ebook, programowanie, nowy katalog, uml, UML
- 10, ebook, programowanie, nowy katalog, uml, UML
- 12, ebook, programowanie, nowy katalog, uml, UML
- 09.Marszałek Tuchaczewski cz.1 - Sensacje XX wieku, Ebook, 02. XX-lecie miedzywojenne
- zanotowane.pl
- doc.pisz.pl
- pdf.pisz.pl
- coolinarny.opx.pl
|
|
|