summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/3rdparty/libmng/libmng_write.c
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-04-21 23:22:20 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-04-21 23:22:20 +0900
commitdba036816b279bc1539a9f3894fbc414665d2bce (patch)
tree29e4bf00bafe515e7afdd02168d65a47a3f9fbc0 /tqtinterface/qt4/src/3rdparty/libmng/libmng_write.c
parent6f1b4f0c7505a049d992a33f6e409b7c75732d4b (diff)
downloadexperimental-dba036816b279bc1539a9f3894fbc414665d2bce.tar.gz
experimental-dba036816b279bc1539a9f3894fbc414665d2bce.zip
Removed unnecessary and/or TDE-unrelated code.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tqtinterface/qt4/src/3rdparty/libmng/libmng_write.c')
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/libmng_write.c139
1 files changed, 0 insertions, 139 deletions
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/libmng_write.c b/tqtinterface/qt4/src/3rdparty/libmng/libmng_write.c
deleted file mode 100644
index 07a530f..0000000
--- a/tqtinterface/qt4/src/3rdparty/libmng/libmng_write.c
+++ /dev/null
@@ -1,139 +0,0 @@
-/* ************************************************************************** */
-/* * For conditions of distribution and use, * */
-/* * see copyright notice in libmng.h * */
-/* ************************************************************************** */
-/* * * */
-/* * project : libmng * */
-/* * file : libmng_write.c copyright (c) 2000 G.Juyn * */
-/* * version : 1.0.0 * */
-/* * * */
-/* * purpose : Write management (implementation) * */
-/* * * */
-/* * author : G.Juyn * */
-/* * web : http://www.3-t.com * */
-/* * email : mailto:info@3-t.com * */
-/* * * */
-/* * comment : implementation of the write management routines * */
-/* * * */
-/* * changes : 0.5.1 - 05/08/2000 - G.Juyn * */
-/* * - changed strict-ANSI stuff * */
-/* * 0.5.1 - 05/12/2000 - G.Juyn * */
-/* * - changed trace to macro for callback error-reporting * */
-/* * 0.5.1 - 05/16/2000 - G.Juyn * */
-/* * - moved the actual write_graphic functionality from * */
-/* * mng_hlapi to it's appropriate function here * */
-/* * * */
-/* * 0.9.1 - 07/19/2000 - G.Juyn * */
-/* * - fixed writing of signature * */
-/* * * */
-/* * 0.9.2 - 08/05/2000 - G.Juyn * */
-/* * - changed file-prefixes * */
-/* * * */
-/* ************************************************************************** */
-
-#include "libmng.h"
-#include "libmng_data.h"
-#include "libmng_error.h"
-#include "libmng_trace.h"
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
-#include "libmng_memory.h"
-#include "libmng_chunks.h"
-#include "libmng_chunk_io.h"
-#include "libmng_write.h"
-
-#if defined(__BORLANDC__) && defined(MNG_STRICT_ANSI)
-#pragma option -A /* force ANSI-C */
-#endif
-
-/* ************************************************************************** */
-
-#ifdef MNG_INCLUDE_WRITE_PROCS
-
-/* ************************************************************************** */
-
-mng_retcode write_graphic (mng_datap pData)
-{
- mng_chunkp pChunk;
- mng_retcode iRetcode;
- mng_uint32 iWritten;
-
-#ifdef MNG_SUPPORT_TRACE
- MNG_TRACE (pData, MNG_FN_WRITE_GRAPHIC, MNG_LC_START)
-#endif
-
- pChunk = pData->pFirstchunk; /* we'll start with the first, thank you */
-
- if (pChunk) /* is there anything to write ? */
- { /* open the file */
- if (!pData->fOpenstream ((mng_handle)pData))
- MNG_ERROR (pData, MNG_APPIOERROR)
- else
- {
- pData->bWriting = MNG_TRUE; /* indicate writing */
- pData->iWritebufsize = 32768; /* get a temporary write buffer */
- /* reserve 12 bytes for length, chunkname & crc */
- MNG_ALLOC (pData, pData->pWritebuf, pData->iWritebufsize+12)
- /* write the signature */
- if (((mng_chunk_headerp)pChunk)->iChunkname == MNG_UINT_IHDR)
- mng_put_uint32 (pData->pWritebuf, PNG_SIG);
- else
- if (((mng_chunk_headerp)pChunk)->iChunkname == MNG_UINT_JHDR)
- mng_put_uint32 (pData->pWritebuf, JNG_SIG);
- else
- mng_put_uint32 (pData->pWritebuf, MNG_SIG);
-
- mng_put_uint32 (pData->pWritebuf+4, POST_SIG);
-
- if (!pData->fWritedata ((mng_handle)pData, pData->pWritebuf, 8, &iWritten))
- {
- MNG_FREE (pData, pData->pWritebuf, pData->iWritebufsize+12)
- MNG_ERROR (pData, MNG_APPIOERROR)
- }
-
- if (iWritten != 8) /* disk full ? */
- {
- MNG_FREE (pData, pData->pWritebuf, pData->iWritebufsize+12)
- MNG_ERROR (pData, MNG_OUTPUTERROR)
- }
-
- while (pChunk) /* so long as there's something to write */
- { /* let's call it's output routine */
- iRetcode = ((mng_chunk_headerp)pChunk)->fWrite (pData, pChunk);
-
- if (iRetcode) /* on error bail out */
- {
- MNG_FREE (pData, pData->pWritebuf, pData->iWritebufsize+12)
- return iRetcode;
- }
- /* neeeext */
- pChunk = ((mng_chunk_headerp)pChunk)->pNext;
- }
- /* free the temporary buffer */
- MNG_FREE (pData, pData->pWritebuf, pData->iWritebufsize+12)
-
- pData->bWriting = MNG_FALSE; /* done writing */
- /* close the stream now */
- if (!pData->fClosestream ((mng_handle)pData))
- MNG_ERROR (pData, MNG_APPIOERROR)
-
- }
- }
-
-#ifdef MNG_SUPPORT_TRACE
- MNG_TRACE (pData, MNG_FN_WRITE_GRAPHIC, MNG_LC_END)
-#endif
-
- return MNG_NOERROR;
-}
-
-/* ************************************************************************** */
-
-#endif /* MNG_INCLUDE_WRITE_PROCS */
-
-/* ************************************************************************** */
-/* * end of file * */
-/* ************************************************************************** */
-
-