Is it possible to send frames with the FourCC type set to NDIlib_FourCC_type_BGRX? And, if so, what other changes need to be made to the NDIlib_video_frame_t structure?
I got the impression that maybe by simply setting the FourCC type to BGRX rather than BGRA then the same BGRA (32bit) data buffer could be used for a Send operation but that the Alpha byte would be ignored (and assumed to be 255=opaque). However, when I do so my app crashes.
Obviously this is a recent addition to the SDK, in which the only BGRX examples seem to relate to the receiving side of things, and the Include file comments (as below) have not been updated to reflect the possibility of three different FourCC values, hence my question.
// This describes a video frame
struct NDIlib_video_frame_t
{ // The resolution of this frame
DWORD xres, yres;
// What FourCC this is with. This can be two values
NDIlib_FourCC_type_e FourCC;
Some further clarification of the use of NDIlib_FourCC_type_BGRX would be appreciated.
Bookmarks