pjs/modules/libimg/public_com/nsIImgDecoder.h

57 строки
1.7 KiB
C
Исходник Обычный вид История

1999-04-20 02:42:58 +04:00
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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/
1999-04-20 02:42:58 +04:00
*
* 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.
1999-04-20 02:42:58 +04:00
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
1999-04-20 02:42:58 +04:00
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
1999-04-20 02:42:58 +04:00
*/
#ifndef _nsIImgDecoder_h
#define _nsIImgDecoder_h
1999-08-11 02:41:26 +04:00
#include "if_struct.h" // for il_container
1999-04-20 02:42:58 +04:00
#include "ni_pixmp.h"
#include "nsISupports.h"
1999-08-11 02:41:26 +04:00
/* f00c22b0-bbd2-11d2-802c-0060088f91a3 */
#define NS_IIMGDECODER_IID \
{ 0xf00c22b0, 0xbbd2, 0x11d2, \
{ 0x80, 0x2c, 0x00, 0x60, 0x08, 0x8f, 0x91, 0xa3 } }
#define NS_IIMGDECODER_BASE_PROGID "component://netscape/image/decoder&type="
1999-04-20 02:42:58 +04:00
class nsIImgDecoder : public nsISupports
{
public:
1999-08-13 12:35:58 +04:00
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IIMGDECODER_IID)
1999-04-20 02:42:58 +04:00
NS_IMETHOD ImgDInit()=0;
NS_IMETHOD ImgDWriteReady(PRUint32 *max_read)=0;
1999-04-20 02:42:58 +04:00
NS_IMETHOD ImgDWrite(const unsigned char *buf, int32 len)=0;
NS_IMETHOD ImgDComplete()=0;
NS_IMETHOD ImgDAbort()=0;
1999-08-11 02:41:26 +04:00
// XXX Need to fix this to make sure return type is nsresult
NS_IMETHOD_(il_container *) SetContainer(il_container *ic) = 0;
NS_IMETHOD_(il_container *) GetContainer() = 0;
1999-04-20 02:42:58 +04:00
};
#endif