Jump to content

MediaLib

From Alfawiki
mediaLib
Company typeOpen source software library
IndustryMultimedia software
FounderSun Microsystems
ProductsMultimedia acceleration library
OwnerSun Microsystems

mediaLib—short for "multimedia library"—is a cross-platform, low-level library designed to accelerate multimedia applications through C language interfaces. Originally created by Sun Microsystems and released as open-source under the CDDL license within the OpenSolaris initiative, mediaLib is written in ANSI C and utilizes SIMD instructions to boost processing efficiency.

The library was first engineered to exploit the VIS on SPARC architectures, subsequently expanding compatibility to include MMX, SSE, and SSE2 on Intel and AMD CPUs. mediaLib can operate on any platform equipped with an ANSI C compiler that supports SIMD intrinsics; in environments lacking SIMD capabilities, it functions purely in ANSI C mode without hardware acceleration. It is integrated within the Solaris 10 distribution.

Version 2.5 of mediaLib encompasses roughly 4000 source files and contains approximately 2.4 million lines of code. It provides an extensive suite of over 3000 functions across several domains:

Several open-source applications incorporate mediaLib, including Java, the JDS for Solaris, mplayer, and the ogle.

mediaLib delivers multiple platform-specific implementations that maintain a consistent API, facilitating effortless source code portability:

  • Standard C: pure ANSI C optimized for general performance
  • VIS/VIS2/VIS3: fine-tuned for SPARC processors utilizing VIS multimedia instructions
  • MMX/SSE/SSE2: optimized versions targeting Intel and AMD processors
  • Integer: designed for processors with limited or absent floating-point units, such as the UltraSPARC T1 and embedded systems
  • Multi-threaded: an OpenMP-based wrapper enabling scalable multithreaded multimedia acceleration

External links