-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMp4WriterWin32.h
42 lines (27 loc) · 1.19 KB
/
Mp4WriterWin32.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_WIN32_H__
#define __MP4_WRITER_WIN32_H__
#include <IMp4Writer.h>
#include <PvMp4Writer.h>
class Mp4WriterWin32 : public IMp4Writer
{
public:
Mp4WriterWin32() {}
virtual ~Mp4WriterWin32() {}
bool IsAvailable() const { return mThis.IsAvailable(); }
bool Open( const std::string &aFilename, PvImage *aImage ) { return mThis.Open( aFilename.c_str(), aImage ).IsOK(); }
bool IsOpened() { return mThis.IsOpened(); }
void Close() { mThis.Close(); }
bool WriteFrame( PvImage *aImage, uint32_t *aFileSizeDelta = NULL ) { return mThis.WriteFrame( aImage, aFileSizeDelta ).IsOK(); }
uint32_t GetAvgBitrate() const { return mThis.GetAvgBitrate(); }
void SetAvgBitrate( uint32_t aValue ) { mThis.SetAvgBitrate( aValue ); }
void GetLastError( PvString &aError ) { mThis.GetLastError( aError ); }
void ResetLastError() { mThis.ResetLastError(); }
private:
PvMp4Writer mThis;
};
#endif // __MP4_WRITER_WIN32_H__