Xine-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Original]

[xine-devel] [PATCH] Port of swscaler to xine-lib


To: xine-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [xine-devel] [PATCH] Port of swscaler to xine-lib
From: Jason Tackaberry <tack@xxxxxxxxx>
Date: Fri, 23 Sep 2005 00:08:49 -0400
Delivered-to: itdp@localhost

Attached is the port of MPlayer's swscaler to xine-lib.  This patch
creates a directory xine-engine/libswscaler.  20 files were copied from
mplayer's tree into this directory.  The only change made was to replace
a few instances of #include "config.h" with #include "../config.h".  (I
think I had to change 3 or 4 files.)  All other files were left
untouched, so it should be trivial to sync with MPlayer's tree at any
time.

The swscaler API was wrapped in a more xine-like API.  See xine_scaler.h
for more details.  I've documented this file as best as I can, given my
limited understanding of swscaler's internals.

It is a compile-time option, enabled by default, and can be disabled
with --disable-swscaler.  A define HAVE_SWSCALER is included in config.h
if it's compiled.

Included in xine-engine/libswscaler is testapi.c, which is a separate
program (that is not compiled by default) that tests the API and ensures
the xine-libified API yields the same results as using Swscaler
directly.

The patch is quite large, so I've bzipped it.  It's almost entirely
swscaler.  I've only added about 600 lines of wrapper, so the the amount
of code needed to maintain is minimal.

Looking forward to your review and comments.

Cheers,
Jason.

Attachment: xine-swscaler.patch.bz2
Description: application/bzip

Attachment: signature.asc
Description: This is a digitally signed message part


[Prev in Thread] Current Thread [Next in Thread]