Short: MPEG-1 and MPEG-2 video decoder library Author: Brian King; libmpeg2 by Aaron Holtzman, Michel Lespinasse et al. Uploader: codepoet hotmail com (Brian King) Type: util/libs Version: 2.6 Requires: 68020+ Architecture: m68k-amigaos >= 3.0.0 Distribution: Aminet mpegv.library decodes MPEG-1 and MPEG-2 video by the CPU, for any program, as mpega.library decodes MPEG audio. A 68020 or better; no FPU needed. - Program Streams are demultiplexed as they are read: MPEG-1's (.mpg, a VCD's .dat) and MPEG-2's (a DVD's .vob). The video is decoded, the other packets (MPEG audio; private stream 1's AC-3, DTS, LPCM and subpictures; navigation packets) handed to the program with their times. Bare video streams (.m1v, .m2v) too. - MPEG-2 main profile 4:2:0, as on a DVD: interlaced and progressive, frame and field pictures, 3:2 pulldown, 4:3 and 16:9. - Pictures in display order as the decoder's own Y, Cb and Cr planes, not copied, with integer 90 kHz times. - B pictures can be passed over when the CPU is behind. - Helpers: packed YUV 4:2:2 for a graphics card's overlay (Picasso96's PIP, which scales it), RGB in thirteen formats (every 15-, 16-, 24- and 32-bit one) at its size or scaled as it is written, straight into a screen's bitmap, 8-bit greys for an AGA screen (WriteChunkyPixels). The decoder is libmpeg2 0.5.1, made faster for a 68k (its IDCT and its coefficients' decoding partly in 68k assembler): its IDCT within IEEE 1180, everything else libmpeg2's to the bit. A VCD picture (352 x 240) takes about 10.6 million 68020 cycles, a DVD's (720 x 576) about 73 million: under Amiberry's JIT, a DVD plays at its full rate. Version 2 is source-compatible with version 1: programs built for 1 run unchanged. Contents: mpegv/Libs/mpegv.library copy to LIBS: mpegv/Include/ libraries, clib, inline and proto headers mpegv/mpegv.doc the autodoc mpegv/mpegv_lib.sfd mpegv/Example/mpvplay plays a file's pictures (RTG: in a window, RGB; AGA: a screen of greys) mpegv/README.md, CHANGES Licence: GPL-3.0-or-later (mpegv/LICENSE): libmpeg2 is GPL-2.0-or-later. The includes, the sfd and the autodoc are MIT: any program may open the library. Source (this archive has none): https://github.com/luvwagn/mpegv.library The source of this version is the repository's history at "mpegv 2.6", with the example's and the tests'. History: 2.6 Half size decoding (MPVA_Half, MPVC_HALF): a quarter of the pixels, each block's IDCT a 4x4 one, motion compensated at half size: a 68020's cycles 29-39% fewer; about the whole picture averaged 2x2. 2.5 MPEG-1 decoding 11% fewer instructions (weezer, VCD), MPEG-2 about 2%: the IDCT's blocks of no column transform, and of rows of one value, by hand; cheaper row tests. Pictures the same, to the bit. 2.4 MpvToRGBScaled's 16-bit formats in 68k assembler: 27% fewer cycles. 2.3 MpvToRGBScaled: RGB at another size as it is written, in a screen's own format; every 15- and 16-bit format (555 PC, BGR 565 and 555). 2.2 Times after MPVC_FLUSH are the new stream's own: an open GOP's first B pictures (a DVD's, after a jump) timed back from the I picture after them, not carried on from before the flush. 2.1 7-9% faster: the IDCT's columns Arai, Agui and Nakajima's in 68k assembler (within IEEE 1180, no longer libmpeg2's to the bit), the coefficients decoded in 68k assembler. 2.0 libmpeg2 decodes: MPEG-2 (DVDs) as well as MPEG-1; MPEG-2 Program Streams (VOBs); MpvExamine, each picture's fields and duration, MPVC_FLUSH. Now GPL-3.0-or-later. 1.0 First release (pl_mpeg, MPEG-1). Made for Ambiance, an Amiga Media Center application.