#ifndef _MATERIAL_BUFFER_H_ #define _MATERIAL_BUFFER_H_ #if defined(WIN32) || defined(_MSC_VER) struct timeval { time_t tv_sec; /* seconds */ suseconds_t tv_usec; /* microseconds */ }; #else #include #endif struct MB_Frame { enum MBFType { MBFT__FIRST, MBFT_JPEG, MBFT_YUV420, MBFT_BGRA, MBFT_H264_NALU, MBFT_H264_NALU_WITH_AUX, MBFT_PTR_AVFRAME, MBFT__LAST }; MBFType type; uint8_t* buffer;//#todo void* size_t buffSize; timeval pts; MB_Frame() : type(MBFT__FIRST), buffer(nullptr), buffSize(0), pts() { } }; #endif