|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcuda.jnpp.utilnpp.AbstractImage jcuda.jnpp.utilnpp.AbstractImagePacked<T>
T
- The content type of the imageabstract class AbstractImagePacked<T extends jcuda.jnpp.types.NppType>
Abstract base implementation of an ImagePacked
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface jcuda.jnpp.utilnpp.ImagePacked |
---|
ImagePacked.Pixel |
Nested classes/interfaces inherited from interface jcuda.jnpp.utilnpp.Image |
---|
Image.Size |
Field Summary | |
---|---|
protected jcuda.jnpp.TypedPointer<T> |
aPixels_
The pointer to the pixel data of this image |
protected int |
nPitch_
The pitch of this image |
Constructor Summary | |
---|---|
protected |
AbstractImagePacked()
Creates a new, uninitialized AbstractImagePacked |
protected |
AbstractImagePacked(Image.Size rSize)
Creates a new AbstractImagePacked with the given size |
protected |
AbstractImagePacked(ImagePacked<T> rImage)
Creates a new AbstractImagePacked that is a copy of the given image. |
protected |
AbstractImagePacked(int width,
int height)
Creates a new AbstractImagePacked with the given size |
Method Summary | |
---|---|
protected abstract Allocator<T> |
allocator()
Returns the allocator that performs all memory operations for this image. |
jcuda.jnpp.TypedPointer<T> |
data()
Returns the pointer to the image data |
void |
destroy()
Destroy this AbstractImagePacked. |
int |
pitch()
Returns the pitch of this image |
ImagePacked.Pixel[] |
pixels(int nx,
int ny)
TODO: ImagePacked#pixels(int, int) NOT IMPLEMENTED YET |
void |
set(ImagePacked<T> rImage)
Set this image to have the contents of the given image |
Methods inherited from class jcuda.jnpp.utilnpp.AbstractImage |
---|
equals, hashCode, height, set, size, swap, width |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jcuda.jnpp.utilnpp.Image |
---|
height, set, size, swap, width |
Field Detail |
---|
protected jcuda.jnpp.TypedPointer<T extends jcuda.jnpp.types.NppType> aPixels_
protected int nPitch_
Constructor Detail |
---|
protected AbstractImagePacked()
protected AbstractImagePacked(int width, int height)
width
- The widthheight
- The heightprotected AbstractImagePacked(Image.Size rSize)
rSize
- The sizeprotected AbstractImagePacked(ImagePacked<T> rImage)
rImage
- The other imageMethod Detail |
---|
public void destroy()
protected abstract Allocator<T> allocator()
public void set(ImagePacked<T> rImage)
ImagePacked
set
in interface ImagePacked<T extends jcuda.jnpp.types.NppType>
rImage
- The other imagepublic int pitch()
ImagePacked
pitch
in interface ImagePacked<T extends jcuda.jnpp.types.NppType>
public ImagePacked.Pixel[] pixels(int nx, int ny)
ImagePacked
pixels
in interface ImagePacked<T extends jcuda.jnpp.types.NppType>
public jcuda.jnpp.TypedPointer<T> data()
ImagePacked
data
in interface ImagePacked<T extends jcuda.jnpp.types.NppType>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |