⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 systems.c

📁 DirectFB-1.0.1可用于linux的嵌入式GUI
💻 C
字号:
/* systems.c, systems-specific routines                                 *//* 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. * */#include <stdio.h>#include <stdlib.h>#include "global.h"/* initialize buffer, call once before first getbits or showbits */voidMPEG2_Flush_Buffer32(MPEG2_Decoder *dec){  int Incnt;  dec->Bfr = 0;  Incnt = dec->Incnt;  Incnt -= 32;  while (Incnt <= 24)    {      if (dec->Rdptr >= dec->Rdbfr+2048)        MPEG2_Fill_Buffer(dec);      dec->Bfr |= *dec->Rdptr++ << (24 - Incnt);      Incnt += 8;    }  dec->Incnt = Incnt;}unsigned intMPEG2_Get_Bits32(MPEG2_Decoder *dec){  unsigned int l;  l = MPEG2_Show_Bits(dec, 32);  MPEG2_Flush_Buffer32(dec);  return l;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -