removing antiquated gif decoder code and similar stuff. r=pavlov sr=tor, and this is not part of the build.

This commit is contained in:
cbiesinger%web.de 2002-11-08 21:53:18 +00:00
parent 6d85e64757
commit 957b0576b1
14 changed files with 0 additions and 2179 deletions

View File

@ -1,36 +0,0 @@
Imglib Decoders as Components:
Basic description:
I have 4 new subdirectories to make below mozilla/modules/libimg.
Some of the files in mozilla/modules/libimg/src and libimg/public
have been moved to one of the new directories or 'retired'.
I have new exports in libimg/public and libimg/public_com.
I have a few new files that should go into the new directories.
------------------------------
The old structure:
libimg/
/src
/public
/png
------------------------------
The new structure:
libimg/
/src
new:
old
/public
/public_com
/gifcom
/jpgcom
/pngcom
------------------------------
******************************************************

View File

@ -1,59 +0,0 @@
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
LIBRARY_NAME = nsgif
EXPORT_LIBRARY = 1
IS_COMPONENT = 1
MODULE_NAME = nsGIFModule
REQUIRES = xpcom \
string \
img \
gfx \
layout \
content \
util \
$(NULL)
CPPSRCS = \
gif.cpp \
nsGIFModule.cpp \
nsGIFDecoder.cpp \
$(NULL)
LOCAL_INCLUDES = -I$(srcdir)
EXTRA_LIBS = $(NSPR_LIBS)
EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS)
ifndef MOZ_JAVA
LOCAL_JMC_SUBDIR = .
endif
include $(topsrcdir)/config/rules.mk

File diff suppressed because it is too large Load Diff

View File

@ -1,46 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Mozilla Communicator client code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/* gif.h */
extern PRBool il_gif_init(il_container *ic);
extern int il_gif_write(il_container *, const PRUint8 *, int32);
extern void il_gif_complete(il_container *ic);
extern PRUint8 il_gif_write_ready(il_container *ic);
extern void il_gif_abort(il_container *ic);
extern void gif_delay_time_callback(void *closure);

View File

@ -1,143 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/*
* nsGIFDecoder.cpp --- interface to gif decoder
*/
#include "nsGIFDecoder.h"
#include "nsCOMPtr.h"
//////////////////////////////////////////////////////////////////////
// GIF Decoder Implementation
NS_IMPL_ISUPPORTS1(GIFDecoder, nsIImgDecoder);
GIFDecoder::GIFDecoder(il_container* aContainer)
{
NS_INIT_ISUPPORTS();
ilContainer = aContainer;
}
GIFDecoder::~GIFDecoder(void)
{
}
NS_METHOD
GIFDecoder::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
nsresult rv;
if (aOuter) return NS_ERROR_NO_AGGREGATION;
il_container *ic = new il_container();
if (!ic) return NS_ERROR_OUT_OF_MEMORY;
GIFDecoder *decoder = new GIFDecoder(ic);
if (!decoder) {
delete ic;
return NS_ERROR_OUT_OF_MEMORY;
}
NS_ADDREF(decoder);
rv = decoder->QueryInterface(aIID, aResult);
NS_RELEASE(decoder);
/* why are we creating and destroying this object for no reason? */
delete ic; /* is a place holder */
return rv;
}
NS_IMETHODIMP
GIFDecoder::ImgDInit()
{
PRBool ret=PR_FALSE;
if(ilContainer != NULL) {
ret=il_gif_init(ilContainer);
}
if(ret)
return NS_OK;
else
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
GIFDecoder::ImgDWriteReady(PRUint32 *max_read)
{
if(ilContainer != NULL) {
*max_read = il_gif_write_ready(ilContainer);
}
return NS_OK;
}
NS_IMETHODIMP
GIFDecoder::ImgDWrite(const unsigned char *buf, int32 len)
{
int ret = 0;
if( ilContainer != NULL ) {
ret = il_gif_write(ilContainer, buf,len);
if(ret != 0)
return NS_ERROR_FAILURE;
}
return NS_OK;
}
NS_IMETHODIMP
GIFDecoder::ImgDComplete()
{
if( ilContainer != NULL ) {
il_gif_complete(ilContainer);
}
return NS_OK;
}
NS_IMETHODIMP
GIFDecoder::ImgDAbort()
{
if( ilContainer != NULL ) {
il_gif_abort(ilContainer);
}
return NS_OK;
}

View File

@ -1,81 +0,0 @@
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/* -*- Mode: C; tab-width: 4 -*-
* nsGIFDecoder.cpp --- interface to gif decoder
*/
#ifndef _nsGIFDec_h
#define _nsGIFDec_h
#include "nsISupports.h"
#include "nsIImgDecoder.h"
#include "gif.h"
#define NS_GIFDECODER_CID \
{ 0x0d471b70, 0xbaf5, 0x11d2, \
{ 0x80, 0x2c, 0x00, 0x60, 0x08, 0x8f, 0x91, 0xa3 } }
//////////////////////////////////////////////////////////////////////
// GIF Decoder Definition
class GIFDecoder : public nsIImgDecoder
{
public:
GIFDecoder(il_container* aContainer);
virtual ~GIFDecoder();
NS_DECL_ISUPPORTS
static NS_METHOD Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
/* stream */
NS_IMETHOD ImgDInit();
NS_IMETHOD ImgDWriteReady(PRUint32 *max_read);
NS_IMETHOD ImgDWrite(const unsigned char *buf, int32 len);
NS_IMETHOD ImgDComplete();
NS_IMETHOD ImgDAbort();
NS_IMETHOD_(il_container *) SetContainer(il_container *ic){ilContainer = ic; return ic;}
NS_IMETHOD_(il_container *) GetContainer() {return ilContainer;}
private:
il_container* ilContainer;
};
#endif

View File

@ -1,55 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Netscape Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsGIFDecoder.h"
#include "nsIComponentManager.h"
#include "nsIGenericFactory.h"
#include "nsISupports.h"
#include "nsCOMPtr.h"
static NS_DEFINE_CID(kGIFDecoderCID, NS_GIFDECODER_CID);
static const nsModuleComponentInfo components[] =
{
{ "GIF Decoder",
NS_GIFDECODER_CID,
"@mozilla.org/image/decoder;1?type=image/gif",
GIFDecoder::Create }
};
NS_IMPL_NSGETMODULE(nsGIFModule, components)

View File

@ -1,14 +0,0 @@
;
; temp def file for nsgif dll
;
LIBRARY nsgif.dll
DESCRIPTION 'test dll'
EXPORTS
ImgDInit @1002 PRIVATE
ImgDWrite @1003 PRIVATE
ImgDWriteReady @1004 PRIVATE
ImgDComplete @1005 PRIVATE
ImgDAbort @1006 PRIVATE

View File

@ -1,21 +0,0 @@
?il_gif_write@@YAHPAUil_container_struct@@PBEJ@Z ; 43937
?il_BACat@@YAPADPAPADIPBDI@Z ; 42718
?gif_delay_time_callback@@YAXPAX@Z ; 41012
?ImgDWrite@GIFDecoder@@UAGIPBEJ@Z ; 2925
?il_gif_write_ready@@YAEPAUil_container_struct@@@Z ; 2820
?ImgDWriteReady@GIFDecoder@@UAGIPAI@Z ; 2820
?AddRef@GIFDecoder@@UAGKXZ ; 2814
?Release@GIFDecoder@@UAGKXZ ; 2776
?il_gif_abort@@YAXPAUil_container_struct@@@Z ; 1486
?SetContainer@GIFDecoder@@UAGPAUil_container_struct@@PAU2@@Z ; 1474
?QueryInterface@GIFDecoder@@UAGIABUnsID@@PAPAX@Z ; 1407
??0GIFDecoder@@QAE@PAUil_container_struct@@@Z ; 1407
?ImgDComplete@GIFDecoder@@UAGIXZ ; 1407
?ImgDInit@GIFDecoder@@UAGIXZ ; 1407
?il_gif_init@@YAHPAUil_container_struct@@@Z ; 1407
?Create@GIFDecoder@@SGIPAVnsISupports@@ABUnsID@@PAPAX@Z ; 1407
?il_gif_complete@@YAXPAUil_container_struct@@@Z ; 1407
??1GIFDecoder@@UAE@XZ ; 1369
??_GGIFDecoder@@UAEPAXI@Z ; 1369
?ImgDAbort@GIFDecoder@@UAGIXZ ; 136
_NSGetModule ; 1

Binary file not shown.