InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
IImageStream.h
1
//========================================================================================
2
//
3
// $File$
4
//
5
// Owner: jargast
6
//
7
// $Author$
8
//
9
// $DateTime$
10
//
11
// $Revision$
12
//
13
// $Change$
14
//
15
// Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16
//
17
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18
// with the terms of the Adobe license agreement accompanying it. If you have received
19
// this file from a source other than Adobe, then your use, modification, or
20
// distribution of it requires the prior written permission of Adobe.
21
//
22
//========================================================================================
23
24
#ifndef __IImageStream__
25
#define __IImageStream__
26
27
#include "IPMUnknown.h"
28
#include "ImageID.h"
29
30
#define BYTES2ROWBYTES(x) ((((uint32)(x) + 3) >> 2) << 2)
31
#define BITS2ROWBYTES(x) ((((uint32)(x) + 31) >> 5) << 2)
32
33
typedef
struct
34
{
35
uint8* fBuffer;
// preallocated buffer with size = fRowBytes * fHeight;
36
uint32 fTop;
37
uint32 fLeft;
38
uint32 fWidth;
// Image Width, must be <= fRowBytes
39
uint32 fHeight;
40
uint32 fRowBytes;
// number of bytes in a row (desirable to be a multiple of 4)
41
uint32 fPlane;
// index of color plane to return. This only applies if the
42
// destination configuration is planar. If chunky, this field
43
// is ignored.
44
}
ImageStreamRecord
;
45
46
class
IImageStream
:
public
IPMUnknown
47
{
48
public
:
49
enum
{ kDefaultIID = IID_IIMAGESTREAM };
50
58
virtual
bool16
ReadData
(
ImageStreamRecord
&outRecord) = 0;
59
};
60
61
62
#endif
tmpdoxygeninput
IImageStream.h
Generated on Sat Jul 19 2025 02:54:13 for InDesign SDK by
1.8.3.1