This is a basic patch that adds the required code and the detection of
libswscale. It also keeps a fallback to the original code. There are four
points of discussion though:
* I used a pair of sws_getContext/sws_freeContext because I'm not clear on
the multi-threading aspect. Otherwise the more efficient
sws_getCachedContext could probably be used.
* I've taken the SWS_BICUBIC interpolation from the example link, but a
simpeler interpolation computation might be sufficient.
* On my system the fallback (deprecated function img_convert) is detected,
and the code (still) compiles, but the code fails (apparently somewhere
else before my changes are touched).
* The image output looks okay, but I've not looked at it in detail.
Nobody/Anonymous ( nobody ) - 2008-08-03 10:32
5
Closed
Accepted
Gerco Ballintijn
None
None
Public
| Filename | Description | Download |
|---|---|---|
| diff | Patch to replace the img_convert function | Download |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use