From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!news.alt.net!cola.stump.algebra.com!robomod!not-for-mail From: Conrad Parker Newsgroups: comp.os.linux.announce Subject: libshveu-1.1.0 Release Date: Fri, 9 Oct 2009 00:13:34 -0500 Organization: Altopia Corp. - Usenet Access - www.altopia.com Sender: conrad.parker@gmail.com Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-Path: X-COLA-Policy: http://stump.algebra.com/~cola X-COLA-Info-1: Send submissions to cola@stump.algebra.com X-COLA-Info-2: Send complaints to cola-admin@stump.algebra.com X-Comment: moderators do not necessarily agree or disagree with this article. X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on ak74.algebra.com X-Spam-Level: * X-Spam-Status: No, score=1.4 required=2.0 tests=DNS_FROM_RFC_POST,SPF_PASS autolearn=no version=3.1.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=XWVrCG01JaZRxuvvv+AqOdKj51xbjsuq6MVo5T7rocQ=; b=mkf4PrFysIVGripTY+sPEkc0V/N86PNlWUt4KOsz7pBsryOw2x6K2dIj9XCzrViUzg edXjfU5HMvp/2AH2PKyNluvJ+t8A5Fh5QSCDMddXYh/qmSk8FWHxqM2IIbwKuRUnszRQ //MmtSSkvhxFytfeN1CulV5ryGxwtu0FnkFDs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; b=SMyRtFFT2o0P3VAKvpZt4gVWNEaNk4vwzhIT7TlpjrX1NSbKMWbtXZp3zm/fJvt1Yf iWPW+JV6PCukFJtJ1szPz/NpoSKSgsJXvqk3Puces2n9DzOEVyrj7JDkZ/2kEBxbeNwQ mRxNQsJ1pK0skpAUUDLGYYvoG9kFqIIS9yGGE= X-Google-Sender-Auth: 73661e1bcb8ae25a X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce iQBVAwUASs7GfiFvAtx2nXvNAQE9uQH/WUrs4k+MEAV01S2Ae2piPKFNIfCgimsy GXqKjqGyiHC34PY7kNVrpdlmMYH/UsFC5RdpT/hbfKA7KEx7cispHg== =i/Fo Xref: g2news2.google.com comp.os.linux.announce:264 libshveu 1.1.0 Release ====================== libshveu: A library for controlling SH-Mobile VEU The source archive, and more information about the library are available from: http://linux-sh.org/cgi-bin/moin.cgi/libshveu This is the first public release of libshveu. It contains: * src/libshveu: the libshveu shared library * src/tools: commandline tools libshveu API ------------ libshveu allows both synchronous and asynchronous access to the VEU. The synchronous API provides a one-shot function shveu_operation(). The asychronous API replaces this with a similar but non-blocking function, shveu_start(), and a corresponding shveu_wait(). There are also convenience functions for colorspace conversions that are commonly used with video encoding and decoding, shveu_rgb565_to_nv12() and shveu_nv12_to_rgb565(). The signature of shveu_operation() is as follows: /** Perform (scale|rotate) & crop between YCbCr 4:2:0 & RG565 surfaces * \param veu_index Index of which VEU to use * \param src_py Physical address of Y or RGB plane of source image * \param src_pc Physical address of CbCr plane of source image (ignored for RGB) * \param src_width Width in pixels of source image * \param src_height Height in pixels of source image * \param src_pitch Line pitch of source image * \param src_format Format of source image * \param dst_py Physical address of Y or RGB plane of destination image * \param dst_pc Physical address of CbCr plane of destination image (ignored for RGB) * \param dst_width Width in pixels of destination image * \param dst_height Height in pixels of destination image * \param dst_pitch Line pitch of destination image * \param dst_fmt Format of destination image * \param rotate Rotation to apply * \retval 0 Success * \retval -1 Error: Attempt to perform simultaneous scaling and rotation */ int shveu_operation( unsigned int veu_index, unsigned long src_py, unsigned long src_pc, unsigned long src_width, unsigned long src_height, unsigned long src_pitch, shveu_format_t src_fmt, unsigned long dst_py, unsigned long dst_pc, unsigned long dst_width, unsigned long dst_height, unsigned long dst_pitch, shveu_format_t dst_fmt, shveu_rotation_t rotate); shveu-convert ------------- shveu-convert is a commandline program for converting raw image or video files. It uses the SH-Mobile VEU to perform simultaneous colorspace conversion and either rotation or scaling on each input frame. Usage: shveu-convert [options] [input-filename [output-filename]] Convert raw image data using the SH-Mobile VEU. If no output filename is specified, data is output to stdout. Specify '-' to force output to be written to stdout. If no input filename is specified, data is read from stdin. Specify '-' to force input to be read from stdin. Input options -c, --input-colorspace (RGB565, NV12, YCbCr420, YCbCr422) Specify input colorspace -s, --input-size Set the input image size (qcif, cif, qvga, vga) Output options -o filename, --output filename Specify output filename (default: stdout) -C, --output-colorspace (RGB565, NV12, YCbCr420, YCbCr422) Specify output colorspace Transform options Note that the VEU does not support combined rotation and scaling. -S, --output-size Set the output image size (qcif, cif, qvga, vga) [default is same as input size, ie. no rescaling] -r, --rotate Rotate the image 90 degrees clockwise Miscellaneous options -h, --help Display this help and exit -v, --version Output version information and exit File extensions are interpreted as follows unless otherwise specified: .yuv YCbCr420 .rgb RGB565 SH-Mobile --------- The [SH-Mobile][0] processor series includes a hardware video engine unit that supports colorspace conversion, rotation and scaling. Some models also include support for camera capture, JPEG processing, and DSP instructions. [0]: http://www.renesas.com/fmwk.jsp?cnt=sh_mobile_family_landing.jsp&fp=/products/mpumcu/sh_mobile/ Kernel configuration -------------------- libshveu uses the Linux kernel UIO support for the SH-Mobile VEU, which was added in 2.6.27. The following kernel boot option reserves physically contiguous memory for VEU use: memchunk.veu=4m License ------- This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA See the file COPYING for details. ########################################################################## # Send submissions for comp.os.linux.announce to: cola@stump.algebra.com # # PLEASE remember a short description of the software and the LOCATION. # # This group is archived at http://stump.algebra.com/~cola/ # ##########################################################################