pzsync.c revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1998-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 *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
#include "pzlib.h"
/*
* sync outstanding data in a pz stream
*/
int
{
register unsigned char* buf;
register size_t i;
register size_t j;
size_t n;
size_t m;
int r;
{
/*
* flush the pzwrite() window
*/
{
{
}
return r;
}
else
/*
* transpose the hi frequency from row major to col major
* and write it by group to op
*/
{
m = 0;
{
m += n;
}
for (i = 0; i < n; i++)
{
}
{
{
return -1;
}
buf += m;
}
}
else
{
/*
* this is a phony size that is verified on inflate
* 0 here would terminate the inflate loop in the
* first window
*/
}
/*
* now write the lo frequency encoding
*/
{
return -1;
}
{
return -1;
}
}
{
return -1;
}
return 0;
}