Update of /cvsroot/freevo/freevo/lib/mevas
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31476/mevas

Added Files:
        .cvsignore AUTHORS README mevas.spec setup.py test.py 
Log Message:
mevas lib for future gui usage

--- NEW FILE: .cvsignore ---
*.pyc *.pyo

--- NEW FILE: test.py ---
from src import *
t0=time.time()
c = CanvasContainer()
img = c.draw_image("/tmp/background.png", alpha = 256)
print img.width * img.height * 4
print len(img.image.get_bytes())
#img.draw_image("/data/movies/Leon/cover.jpg", dst_pos=(150, 150), src_pos = (50, 50), 
src_size = (300, 300), alpha=128)
#img.draw_image("/data/movies/Leon/cover.jpg", dst_pos=(50, 50), alpha=128)
#c.draw_ellipse( (80, 80), (150, 150), color = (255, 0, 255), fill = True, alpha = 80)
#print time.time()-t0
#c.to_image().save("/home/tack/zot.png")

--- NEW FILE: mevas.spec ---
Summary: Mevas (MeBox Canvas) is a canvas library for Python.
Name: mevas
Version: 0.0.2
Release: 1
License: LGPL
Group: System Environment/Libraries

Source: http://sault.org/mebox/downloads/mevas/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/root-%{name}-%{version}
Prefix: %{_prefix}

BuildRequires: pyimlib2 >= 0.0.6
BuildRequires: python >= 2.2

%description
Mevas (MeBox Canvas) is canvas library for Python that supports
multiple image libraries and display backends.

%prep
%setup

%build
python setup.py build

%install
%{__rm} -rf %{buildroot}
python setup.py install --root=%{buildroot} --record=INSTALLED_FILES

cat >>INSTALLED_FILES << EOF
%doc README
EOF

%clean
%{__rm} -rf %{buildroot}

%files -f INSTALLED_FILES
%defattr(-, root, root, 0755)


%changelog
* Sat Aug 14 2004 Jason Tackaberry <[EMAIL PROTECTED]> - 0.0.2-1
- Initial package

--- NEW FILE: AUTHORS ---
Main Developer:
        Jason Tackaberry <[EMAIL PROTECTED]>


--- NEW FILE: README ---
MeBox Canvas System
===================

NOTE: some of the stuff in this README is obsolete.


About
-----

This code was written as part of a larger project of mine called MeBox.  You
can read about it, and also more about the canvas system, at:

        http://sault.org/mebox/

The canvas essentially provides a simple way to manipulate images.  The main
feature of this canvas system is its ability to render on top of MPlayer's
video buffer with full alpha compositing using bmovl2.

bmovl2 is an MPlayer video filter which accepts commands via a FIFO from a
separate process.  It borrows the basic approach from the original bmovl
filter, but it has been rewritten to allow for the features provided by this
canvas.

An overview of the canvas architecture can be found in README.canvas.  The
file src/canvas.py also has some amount of documentation as part of the
comments.  You can find a few examples in the examples/ directory; they
should be fairly self explanatory, although unless the MPlayer binary you've
compiled with the patches is in /usr/local/bin/mplayer, you'll have to edit
the example scripts and update MPLAYER_CMD to point to the correct binary.

bmovl2 is reasonably efficient but it still requires a fairly fast machine,
especially given that the video is scaled/expanded to the canvas size.
Performance is pretty good on my Athlon 1400, and you have some control
with CPU usage based on the number of images on the canvas and their sizes,
but nevertheless you'll probably want at least a 1GHz CPU to do anything
useful.


Requirements
------------

To run the examples, you will need to patch MPlayer.  The patch can be
found in the patches/ directory; it is diffed against CVS from the date
indicated in its filename.

The canvas and image modules expect pyimlib2.  Pyimlib2 can be downloaded
at:
        http://sault.org/mebox/downloads.php

Pyimlib2 is also, as you may have guessed, very alpha software.

One gotcha about the examples: keyboard input must be done at the console
window where you run the examples, NOT the MPlayer window.  So if, for
example, in the osddemo you hit 'o' and think, "Hrmm, this just looks like
MPlayer's regular OSD" it's because you're pressing the key with the video
window focused, not the console window. :) 


License
-------

This code is released under the GNU GPL version 2.  Read it here:

        http://www.gnu.org/licenses/gpl.html


  - Jason Tackaberry <[EMAIL PROTECTED]>

--- NEW FILE: setup.py ---
from distutils.core import setup, Extension

setup(name="mevas", version="0.0.2",
        packages = ["mevas", "mevas.imagelib"]
)
                                                                                
# vim: ts=4



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to