Share

Synfig Animation Studio

Tracker: Patches

5 Replacement for deprecated function img_convert - ID: 2036627
Last Update: Comment added ( pabs3 )

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


Comment ( 1 )




Date: 2008-08-16 02:04
Sender: pabs3


Patch applied, thanks.


Log in to comment.

Attached File ( 1 )

Filename Description Download
diff Patch to replace the img_convert function Download

Changes ( 5 )

Field Old Value Date By
status_id Open 2008-08-16 02:04 pabs3
resolution_id None 2008-08-16 02:04 pabs3
assigned_to nobody 2008-08-16 02:04 pabs3
close_date - 2008-08-16 02:04 pabs3
File Added 286879: diff 2008-08-03 10:32 nobody