Ok,
different question:
the documentation for "glReadPixels" says
void glReadPixels( GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
GLvoid * data);
with
/|format|/
Specifies the format of the pixel data. The following symbolic
values are
accepted:|GL_STENCIL_INDEX|,|GL_DEPTH_COMPONENT|,|GL_DEPTH_STENCIL|,|GL_RED|,|GL_GREEN|,|GL_BLUE|,|GL_RGB|,|GL_BGR|,|GL_RGBA|,
and|GL_BGRA|.
/|type|/
Specifies the data type of the pixel data. Must be one
of|GL_UNSIGNED_BYTE|,|GL_BYTE|,|GL_UNSIGNED_SHORT|,|GL_SHORT|,|GL_UNSIGNED_INT|,|GL_INT|,|GL_HALF_FLOAT|,|GL_FLOAT|,|GL_UNSIGNED_BYTE_3_3_2|,|GL_UNSIGNED_BYTE_2_3_3_REV|,|GL_UNSIGNED_SHORT_5_6_5|,|GL_UNSIGNED_SHORT_5_6_5_REV|,|GL_UNSIGNED_SHORT_4_4_4_4|,|GL_UNSIGNED_SHORT_4_4_4_4_REV|,|GL_UNSIGNED_SHORT_5_5_5_1|,|GL_UNSIGNED_SHORT_1_5_5_5_REV|,|GL_UNSIGNED_INT_8_8_8_8|,|GL_UNSIGNED_INT_8_8_8_8_REV|,|GL_UNSIGNED_INT_10_10_10_2|,|GL_UNSIGNED_INT_2_10_10_10_REV|,|GL_UNSIGNED_INT_24_8|,|GL_UNSIGNED_INT_10F_11F_11F_REV|,|GL_UNSIGNED_INT_5_9_9_9_REV|,
or|GL_FLOAT_32_UNSIGNED_INT_24_8_REV|.
Now:
- my texture data is supposed to be GL_RGB, isn't it? At least, that's
what I am hoping for...
When using the imageBuffer call, I am specifying the pixelformat at
[imageToUse lockBufferRepresentationWithPixelFormat:QCPlugInPixelFormatARGB8
colorSpace:colorSpace
forBounds:[imageToUse imageBounds]
But there is no option in glReadPixels for an ARGB8 format, there is
just GL_RGBA which matches closest...?
So what is the pixelformat of an acquired input image with
id<QCPlugInInputImageSource> ?
- the types proposed for the pixeldata type do also not match my
expectations. Let's assume my input image pixel data is GL_RGB - how
would I get the pixel data out of it correctly, as there is no
|GL_UNSIGNED_INT_8_8_8 |with just *3* bytes (for RGB).
Closest match is |GL_UNSIGNED_INT_8_8_8_8| but if my input image is
indeed just Gl_RGB, what is the alpha channel then? Is it all just 0?
This stuff just confuses me, these parameters don't make sense as they
do not match.
--
Christophe Leske
multimedial.de
----------------------------------------
www.multimedial.de - [email protected]
Hohler Strasse 17 - 51645 Gummersbach
+49(0)2261-99824540 // +49(0)177-2497031
----------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [email protected]