JpegSource

From Avisynth wiki
Revision as of 13:54, 17 April 2014 by Reel.Deal (Talk | contribs)

Jump to: navigation, search
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:

- AviSynth 2.6.0 Alpha5 or later
- Supported color formats: Y8, YV12, YV16, YV24, YV411
- 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.


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


External Links

Personal tools