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:
23
extras/VideoStream.h
Normal file
23
extras/VideoStream.h
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user