资源简介
来自于mpeg2.org的编解码器,完全按照标准写的c程序,适合研究标准的同学学习

代码片段和文件信息
/* display.c X11 interface */
/* Copyright (C) 1996 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.
*
*/
#ifdef DISPLAY
/* the Xlib interface is closely modeled after
* mpeg_play 2.0 by the Berkeley Plateau Research Group
*/
#include
#include
#include
#include
#include “config.h“
#include “global.h“
/* private prototypes */
static void Display_Image _ANSI_ARGS_((XImage *Ximage_Ptr unsigned char *Dithered_Image));
static void Dither_frame _ANSI_ARGS_((unsigned char *src[]));
static void Dither_Top_Field _ANSI_ARGS_((unsigned char *src[] unsigned char *dst));
static void Dither_Bottom_Field _ANSI_ARGS_((unsigned char *src[] unsigned char *dst));
static void Dither_Top_Field420 _ANSI_ARGS_((unsigned char *src[]
unsigned char *dst));
static void Dither_Bottom_Field420 _ANSI_ARGS_((unsigned char *src[]
unsigned char *dst));
/* local data */
static unsigned char *Dithered_Image *Dithered_Image2;
static unsigned char Y_Table[256+16];
static unsigned char Cb_Table[128+16];
static unsigned char Cr_Table[128+16];
/* X11 related variables */
static Display *Display_Ptr;
static Window Window_Instance;
static GC GC_Instance;
static XImage *Ximage_Ptr *Ximage_Ptr2;
static unsigned char Pixel[256];
#ifdef SH_MEM
#include
#include
#include
static int HandleXError _ANSI_ARGS_((Display *dpy XErrorEvent *event));
static void InstallXErrorHandler _ANSI_ARGS_((void));
static void DeInstallXErrorHandler _ANSI_ARGS_((void));
static int Shmem_Flag;
static XShmSegmentInfo Shminfo1 Shminfo2;
static int gXErrorFlag;
static int CompletionType = -1;
static int HandleXError(Dpy Event)
Display *Dpy;
XErrorEvent *Event;
{
gXErrorFlag = 1;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2363 1996-07-19 16:35 Makefile
文件 8722 1996-07-20 17:50 README
目录 0 1996-07-20 17:54 bin\
文件 36864 1993-11-30 02:44 bin\emu387
文件 131072 1994-07-01 07:05 bin\mpeg2dec.exe
文件 151552 1994-07-01 07:06 bin\mpeg2enc.exe
文件 2316 1994-07-01 07:12 bin\readme.pc
目录 0 1996-07-19 16:24 doc\
文件 24606 1994-06-26 12:17 doc\mpeg2enc.doc
文件 7718 1994-06-26 12:36 doc\m2d_old.doc
文件 85 1994-07-04 05:23 doc\BUGS
文件 6708 1994-06-28 05:57 doc\ARCHITECTURE
目录 0 1994-07-04 04:25 par\
文件 192 1994-05-13 09:08 par\intra.mat
文件 192 1994-05-13 09:10 par\inter.mat
文件 3003 1994-07-04 04:25 par\PAL.par
文件 3004 1994-07-04 04:24 par\MPEG-1.par
文件 3003 1994-07-04 04:24 par\NTSC.par
目录 0 1996-07-19 14:36 src\
目录 0 1996-07-19 16:44 src\mpeg2enc\
文件 1462 1996-07-19 15:47 src\mpeg2enc\config.h
文件 3206 1996-07-19 15:52 src\mpeg2enc\mpeg2enc.h
文件 2240 1996-07-19 15:50 src\mpeg2enc\putbits.c
文件 3862 1996-07-19 15:50 src\mpeg2enc\putmpg.c
文件 7121 1996-07-19 15:48 src\mpeg2enc\puthdr.c
文件 11368 1996-07-19 15:52 src\mpeg2enc\vlc.h
文件 2637 1996-07-19 15:47 src\mpeg2enc\fdctref.c
文件 2424 1996-07-19 15:48 src\mpeg2enc\writepic.c
文件 5647 1996-07-19 15:48 src\mpeg2enc\putvlc.c
文件 11232 1996-07-19 15:49 src\mpeg2enc\stats.c
文件 7094 1996-07-19 15:49 src\mpeg2enc\transfrm.c
............此处省略67个文件信息
相关资源
- 八三编码器设计 VHDL代码 简单,包附
- H.264编码器流程图
- 基于三菱PLC-松下A6伺服485通讯-读编码
- LabVIEW 数据采集 模拟量+编码器(Daq
- VS1053B编解码器的VDR分布式声音采集卡
- ETC中FM0解码器的设计
- 6通道增量式编码器在智控型纺织机的
- 易语言图像编码、解码器源码易语言
- 从ffmpeg中抽取的h264解码器,可用于
- opencv_ffmpeg249.dll
- 基于FFmpeg4.0.2的AAC编码器
- 最简单的基于FFmpeg的编码器 1.2
- 最简单的基于FFMPEG的音频编码器 1.1
- 最简单的基于FFMPEG的视频编码器修正
- 13818 mpeg2
- 变分自编码器.ppt
- 海德汉伺服驱动用位置编码器说明书
- 基于AS5040的多圈绝对式编码器开发研
- 4*4键盘编码器,VHDL语言
- stm32f103驱动光电编码器测量正反转转
- stm32读取正交编码器例程
- 视频万能解码器让系统自带的Windows
- 多摩川绝对值编码器参数手册ts5700n
- 旋转编码器脉冲计数及转向检测.zip
- 解码器OpenCodecSetup32位
- 暴风影音csf解码器(1).rar
- Adobe Audition3.0扩展编码器 Audition3.0Fi
- 磁编码器AS5600 AS5040 设计原理图
- MPEG2-2(13818中文版)
- OpenCodecSetup64位解码器
评论
共有 条评论