Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how can merge the video data to a matrix?

Hi, I am working with a video sender. That can communicate with it by the SDK(Software Development Kit). Every time a frame is ready then run an internal event below (the name is video-available) ,that we can do our processing in this event.

EVENT IS :
             video-available:
                                    {
                                       ENCODE-VIDEO_EVENT*   videoEventa;
                                     videoEvent = (ENCODE-VIDEO_EVENT*)     pData;

                                    server->process_jpeg_image(videoEventa->buff, videoEventa->size);

                                     break;
                                      }

we know frame will be send with ENCODE-VIDEO_EVENT* pointer.and the data structure is:

typedef struct { char* buff; int size; }

how can merge the video data to matrix? Many Thanks.