16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 06:59:18 +02:00

Add videostream dev code

This commit is contained in:
michalpeterek
2019-04-08 23:21:29 +02:00
parent 47e8dbf19a
commit 97950ce5b2
5 changed files with 82 additions and 0 deletions

23
extras/VideoStream.h Normal file
View File

@@ -0,0 +1,23 @@
#pragma once
class VideoStream
{
public:
/**
\brief Get Frame data
\param Buffer - Pointer to char pointer
\warning This function alocate some memory after use bufer data you must call FreeFrameBuffer
\return If Frame ready and complete return num of bytes in frame buffer else return 0
**/
virtual int GetFrameFromStream(char **Buffer) = 0;
/**
\brief Free alocated memory
\param Buffer - Pointer to buffer
**/
virtual void FreeFrameBuffer(char *Buffer) = 0;
};