JpegSource

From Avisynth wiki
Revision as of 14:54, 17 April 2014 by Reel.Deal (talk | contribs) (update)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Abstract
Author SEt
Version 2014.1.5
Download JpegSource.7z
Category Source filters
License free for non-commercial use, closed source.


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:

- AviSynth 2.6.0 Alpha5 or later
- Supported color formats: Y8, YV12, YV16, YV24, YV411
- SSSE3 capable CPU


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.


int  rec = 1
Number of reconstruction passes.


int  length = 1000
Clip length in frames.


float  fps_num = 24
FPS numerator.


int  fps_den = 1
FPS denominator.


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