-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathIMp4Writer.h
42 lines (27 loc) · 946 Bytes
/
IMp4Writer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// *****************************************************************************
//
// Copyright (c) 2015, Pleora Technologies Inc., All rights reserved.
//
// *****************************************************************************
#ifndef __MP4_WRITER_H__
#define __MP4_WRITER_H__
#include <PvTypes.h>
#include <PvString.h>
#include <string>
class PvImage;
class IMp4Writer
{
public:
IMp4Writer() {}
virtual ~IMp4Writer() {}
virtual bool IsAvailable() const = 0;
virtual bool Open( const std::string &aFilename, PvImage *aImage ) = 0;
virtual bool IsOpened() = 0;
virtual void Close() = 0;
virtual bool WriteFrame( PvImage *aImage, uint32_t *aFileSizeDelta ) = 0;
virtual uint32_t GetAvgBitrate() const = 0;
virtual void SetAvgBitrate( uint32_t aValue ) = 0;
virtual void GetLastError( PvString &aString ) = 0;
virtual void ResetLastError() = 0;
};
#endif // __MP4_WRITER_H__