资源简介
网络多媒体技术课程实验,基于mpeg2的视频编码解码代码。简单易懂。
代码片段和文件信息
/* Copyright (C) 1994 MPEG Software Simulation Group. All Rights Reserved. */
/*
* Disclaimer of Warranty
*
* These software programs are available to the user without any license fee or
* royalty on an “as is“ basis. The MPEG Software Simulation Group disclaims
* any and all warranties whether express implied or statuary including any
* implied warranties or merchantability or of fitness for a particular
* purpose. In no event shall the copyright-holder be liable for any
* incidental punitive or consequential damages of any kind whatsoever
* arising from the use of these programs.
*
* This disclaimer of warranty extends to the user of these programs and user‘s
* customers employees agents transferees successors and assigns.
*
* The MPEG Software Simulation Group does not represent or warrant that the
* programs furnished hereunder are free of infringement of any third-party
* patents.
*
* Commercial implementations of MPEG-1 and MPEG-2 video including shareware
* are subject to royalty fees to patent holders. Many of these patents are
* general enough such that they are unavoidable regardless of implementation
* design.
*
*/
/* these routines are closely modeled after those from
* mpeg_play 2.0 by the Berkeley Plateau Research Group
*/
#include
#include
#include
#include “config.h“
#include “global.h“
/* private prototypes */
static void ditherframe _ANSI_ARGS_((unsigned char *src[]));
static void dithertop _ANSI_ARGS_((unsigned char *src[] unsigned char *dst));
static void ditherbot _ANSI_ARGS_((unsigned char *src[] unsigned char *dst));
static void dithertop420 _ANSI_ARGS_((unsigned char *src[] unsigned char *dst));
static void ditherbot420 _ANSI_ARGS_((unsigned char *src[] unsigned char *dst));
static void ditherframeRGB _ANSI_ARGS_((unsigned char *src[]));
static void dithertopRGB _ANSI_ARGS_((unsigned char *src[] unsigned char *dst));
static void ditherbotRGB _ANSI_ARGS_((unsigned char *src[] unsigned char *dst));
static void init_ditherRGB _ANSI_ARGS_((void));
/* local data */
static unsigned char *dithered_image *dithered_image2;
static unsigned char ytab[256+16];
static unsigned char utab[128+16];
static unsigned char vtab[128+16];
static unsigned char pixel[256];
typedef void (*DITHER_frame_FUNC)(unsigned char **);
typedef void (*DITHER_FIELD_FUNC)(unsigned char **unsigned char *);
static DITHER_frame_FUNC dither_frame;
static DITHER_FIELD_FUNC dither_even dither_odd;
/* color space conversion coefficients
*
* entries are {crvcbucgucgv}
*
* crv=(255/224)*65536*(1-cr)/0.5
* cbu=(255/224)*65536*(1-cb)/0.5
* cgu=(255/224)*65536*(cb/cg)*(1-cb)/0.5
* cgv=(255/224)*65536*(cr/cg)*(1-cr)/0.5
*
* where Y=cr*R+cg*G+cb*B (cr+cg+cb=1)
*/
/*
int convmat[8][4] = {
{117504 138453 13954 34903} /* no sequence_display_extension */
/* {117504 138453 13954 34903} /* ITU-R Rec. 709 (1990) */
/* {104597 132201 25675 53279} /* unspecifi
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 36864 1993-11-30 10:44 mpeg2\bin\emu387
文件 131072 1994-07-01 15:05 mpeg2\bin\mpeg2dec.exe
文件 151552 1994-07-01 15:06 mpeg2\bin\mpeg2enc.exe
文件 2316 1994-07-01 15:12 mpeg2\bin\readme.pc
文件 6708 1994-06-28 13:57 mpeg2\doc\ARCHITECTURE
文件 85 1994-07-04 13:23 mpeg2\doc\BUGS
文件 7718 1994-06-26 20:36 mpeg2\doc\mpeg2dec.doc
文件 24606 1994-06-26 20:17 mpeg2\doc\mpeg2enc.doc
文件 2363 1996-07-20 00:35 mpeg2\Makefile
文件 24368 1994-07-15 06:13 mpeg2\mpeg2ply\display.c
文件 965 1994-07-15 07:32 mpeg2\mpeg2ply\gui.h
文件 3586 1994-07-16 12:58 mpeg2\mpeg2ply\makefile
文件 21446 1994-07-16 12:57 mpeg2\mpeg2ply\mpeg2ply.c
文件 69632 1994-07-16 12:59 mpeg2\mpeg2ply\mpeg2ply.exe
文件 3221 1994-07-15 08:09 mpeg2\mpeg2ply\mpeg2ply.rc
文件 689 1994-07-15 07:31 mpeg2\mpeg2ply\resource.h
文件 59 2018-07-06 15:51 mpeg2\par\1.M1V
文件 192 1994-05-13 17:10 mpeg2\par\inter.mat
文件 192 1994-05-13 17:08 mpeg2\par\intra.mat
文件 3004 1994-07-04 12:24 mpeg2\par\MPEG-1.par
文件 3003 1994-07-04 12:24 mpeg2\par\NTSC.par
文件 3003 1994-07-04 12:25 mpeg2\par\PAL.par
文件 565 2018-07-06 15:51 mpeg2\par\stat.out
文件 8722 1996-07-21 01:50 mpeg2\README
文件 735 2002-09-15 19:47 mpeg2\readme.txt
文件 32768 2017-06-15 12:40 mpeg2\src\mpeg2dec\.SIF
文件 4096 2017-06-15 12:41 mpeg2\src\mpeg2dec\.U
文件 4096 2017-06-15 12:41 mpeg2\src\mpeg2dec\.V
文件 16384 2017-06-15 12:41 mpeg2\src\mpeg2dec\.Y
文件 2747 1996-07-19 23:04 mpeg2\src\mpeg2dec\CHANGES
............此处省略105个文件信息
- 上一篇:UML校园网二手交易系统
- 下一篇:人人都是产品经理视频教程 百度云
评论
共有 条评论