APTR rgb = ReadVideoPixels(APTR handle, struct hwTagList *tags);
width * height * bytes_per_pixel
. No line
padding may be involved.
Additionally, your implementation has to handle the following taglist:
HWRVPTAG_BLEND:
pData
member of this tag item will be set to a pointer to an int
. Your
implementation has to set this pointer to either True
or False
, depending
on whether the returned video pixels contain alpha channel transparency information
or not.
HWRVPTAG_PIXELFORMAT:
pData
member of this tag item will be set to a pointer to an int
. Your
implementation has to set this pointer to the pixel format the returned data
is in. See Pixel formats for details.
When Hollywood is done with the data returned by this function, it will call FreeVideoPixels() on it.
ReadVideoPixels()
is an optional API and must only be implemented if HWSDAFLAGS_VIDEOBITMAPADAPTER
has been passed to hw_SetDisplayAdapter(). See hw_SetDisplayAdapter for details.
NULL
in case of an error