/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 2003-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
#include "vcdhdr.h"
/* Encoding and decoding a code table based on differences to another one.
** This allows efficient embedding of a code table in the compressed data.
**
** Written by Kiem-Phong Vo (kpv@research.att.com)
*/
#if __STD_C
#else
#endif
{
int i;
for(i = 0; i < 256; ++i)
for(i = 0; i < 256; ++i)
for(i = 0; i < 256; ++i)
for(i = 0; i < 256; ++i)
for(i = 0; i < 256; ++i)
for(i = 0; i < 256; ++i)
}
#if __STD_C
#else
#endif
{
int i;
for(i = 0; i < 256; ++i)
for(i = 0; i < 256; ++i)
for(i = 0; i < 256; ++i)
for(i = 0; i < 256; ++i)
for(i = 0; i < 256; ++i)
for(i = 0; i < 256; ++i)
}
#if __STD_C
#else
size_t n;
#endif
{
_vcdtblinit();
/* convert the standard table to a string */
return -1;
/* convert the new table to a string, then encode it against _Vcdtbl */
{ if(rv+2 > n)
rv = -1;
else
rv += 2;
}
}
return rv;
}
#if __STD_C
#else
size_t n;
#endif
{
_vcdtblinit();
if(n <= 2)
return -1;
return -1;
else rv = -1;
return rv < 0 ? -1 : 0;
}