| STAGE | JETPACK | HAVSFUNC |
|---|---|---|
| INIT | clip | Input |
| input_type | InputType | |
| tff | TFF | |
UPDATE: This page has now been moved to / incorporated into the JET Encoding Guide, in the hope that that that page can slowly grow into a more comprehensive encoding guide.
So this is supposed to be a list of encoding-related resources together with some very basic instructions. Kind of an encoding analogue to fansub.html. This is not a full guide on encoding.
Since this page is starting to get linked elsewhere, I should also make clear that it mostly comes from (a person adjacent to) the JET community. In particular, it's written primarily from the perspective of anime encoding. Still, most parts will hold up equally well for live action and other areas.
This guide may seem fairly technical. Partly this is because I have a background in pure mathematics and this is how I learned the material, but partly it's just because encoding is cursed and co
| local function XYZfromRGB(r, g, b) | |
| r, g, b = r/0xFF, g/0xFF, b/0xFF | |
| local function f(n) | |
| if n > 0.04045 then | |
| return math.pow(((n + 0.055) / 1.055), 2.4) | |
| else | |
| return n / 12.92 | |
| end | |
| end |
- Note: If any links are broken or you know of any more useful guides, please contact me with any suggestions.
- Last Updated: 2020Sep28
- Markdown and white version available here, alternative, click on "Raw".
| sampler s0 : register(s0); | |
| #define const_1 ( 16.0 / 235.0) | |
| #define const_2 (235.0 / 219.0) | |
| float4 main(float2 tex : TEXCOORD0) : COLOR | |
| { | |
| // original pixel | |
| float4 c0 = tex2D(s0, tex); |
| // This library is free software; you can redistribute it and/or | |
| // modify it under the terms of the GNU Lesser General Public | |
| // License as published by the Free Software Foundation; either | |
| // version 3.0 of the License, or (at your option) any later version. | |
| // | |
| // This library 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 | |
| // Lesser General Public License for more details. | |
| // |
| // SSimSuperRes by Shiandow | |
| // | |
| // This library is free software; you can redistribute it and/or | |
| // modify it under the terms of the GNU Lesser General Public | |
| // License as published by the Free Software Foundation; either | |
| // version 3.0 of the License, or (at your option) any later version. | |
| // | |
| // This library 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 |
| // KrigBilateral by Shiandow | |
| // | |
| // This library is free software; you can redistribute it and/or | |
| // modify it under the terms of the GNU Lesser General Public | |
| // License as published by the Free Software Foundation; either | |
| // version 3.0 of the License, or (at your option) any later version. | |
| // | |
| // This library 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 |
| """ | |
| Results: | |
| multiple_update: 33 ms | |
| copy_and_update: 27 ms | |
| dict_constructor: 29 ms | |
| kwargs_hack: 33 ms | |
| dict_comprehension: 33 ms | |
| concatenate_items: 81 ms | |
| union_items: 81 ms |
| #!/usr/bin/env python3 | |
| '''port of EasyVFR for VapourSynth''' | |
| __author__ = 'Chikuzen <chikuzen.mo at gmail dot com>' | |
| __version__ = '0.2.5' | |
| import vapoursynth as vs |