JpegSource
From Avisynth wiki
(Difference between revisions)
(JpegSource) |
m (update) |
||
Line 10: | Line 10: | ||
== Description == | == Description == | ||
:An advanced JPEG decoder for AviSynth 2.6. | :An advanced JPEG decoder for AviSynth 2.6. | ||
+ | <br> | ||
+ | == Limitations == | ||
+ | :JpegSource does not support the following: | ||
+ | |||
+ | ::*YUV440 JPEGs (AviSynth does not support this colorspace) | ||
+ | ::*CMYK/YCCK JPEGs | ||
+ | ::*JPEGs with arithmetic compression | ||
+ | <br> | ||
+ | :RGB encoded images are supported, but AviSynth does not support planar RGB so there's a work around to correctly display RGB JPEGs. | ||
+ | :See the [[JpegSource#Examples|examples]] below. | ||
<br> | <br> | ||
== Requirements: == | == Requirements: == | ||
:- [http://forum.doom9.org/showthread.php?t=168764 AviSynth 2.6.0 Alpha5] or later | :- [http://forum.doom9.org/showthread.php?t=168764 AviSynth 2.6.0 Alpha5] or later | ||
:- Supported color formats: [[Y8]], [[YV12]], [[YV16]], [[YV24]], [[YV411]] | :- Supported color formats: [[Y8]], [[YV12]], [[YV16]], [[YV24]], [[YV411]] | ||
+ | |||
+ | :- [[SSSE3]] capable CPU | ||
<br> | <br> | ||
== [[Script variables|Syntax and Parameters]] == | == [[Script variables|Syntax and Parameters]] == | ||
Line 37: | Line 49: | ||
JpegSource("image.jpg", rec=1, length=1000, fps_num=24, fps_den=1) | JpegSource("image.jpg", rec=1, length=1000, fps_num=24, fps_den=1) | ||
<br> | <br> | ||
− | + | Correctly display an RGB encoded JPEG: | |
− | JpegSource(" | + | JpegSource("RGBimage.jpg") |
+ | [[MergeRGB]](last, UToY8(), VToY8(), "RGB24") | ||
<br> | <br> | ||
== Changelog == | == Changelog == |
Revision as of 13:54, 17 April 2014
Abstract | |
---|---|
Author | SEt |
Version | 2014.1.5 |
Download | JpegSource.7z |
Category | Source filters |
License | free for non-commercial use, closed source. |
Contents |
Description
- An advanced JPEG decoder for AviSynth 2.6.
Limitations
- JpegSource does not support the following:
- YUV440 JPEGs (AviSynth does not support this colorspace)
- CMYK/YCCK JPEGs
- JPEGs with arithmetic compression
- RGB encoded images are supported, but AviSynth does not support planar RGB so there's a work around to correctly display RGB JPEGs.
- See the examples below.
Requirements:
- - SSSE3 capable CPU
Syntax and Parameters
- JpegSource (string file, int "rec", int "length", float "fps_num", int "fps_den")
- string file =
- Path to image file. Path can be omitted if the script is in the same folder as the image file.
- string file =
- int rec = 1
- Number of reconstruction passes.
- int rec = 1
- int length = 1000
- Clip length in frames.
- int length = 1000
- float fps_num = 24
- FPS numerator.
- float fps_num = 24
- int fps_den = 1
- FPS denominator.
- int fps_den = 1
Examples
JpegSource with default settings:
JpegSource("image.jpg", rec=1, length=1000, fps_num=24, fps_den=1)
Correctly display an RGB encoded JPEG:
JpegSource("RGBimage.jpg") MergeRGB(last, UToY8(), VToY8(), "RGB24")
Changelog
Version Date Changes
2014.1.5 01/05/2014 initial release
External Links
- Doom9 Forum - JpegSource discussion.