Pleora Technologies Inc. eBUS SDK v6.2.8.5877 API



PvMp4Writer.h
1 // *****************************************************************************
2 //
3 // Copyright (c) 2015, Pleora Technologies Inc., All rights reserved.
4 //
5 // *****************************************************************************
6 
7 #ifndef __PVMP4WRITER_H__
8 #define __PVMP4WRITER_H__
9 
10 #include <PvAppUtilsLib.h>
11 #include <PvBuffer.h>
12 
13 
14 namespace PvAppUtilsLib
15 {
16  class IMp4Writer;
17 }
18 
19 
20 class PV_APPUTILS_API PvMp4Writer
21 {
22 public:
23 
24  PvMp4Writer();
25  ~PvMp4Writer();
26 
27  bool IsAvailable() const;
28  bool IsOpened();
29 
30  PvResult Open( const PvString &aFilename, PvImage *aImage );
31  PvResult WriteFrame( PvImage *aImage, uint32_t *aFileSizeDelta );
32  PvResult Close();
33 
34  uint32_t GetAvgBitrate() const;
35  PvResult SetAvgBitrate( uint32_t aValue );
36 
37  void GetLastError( PvString &aString ) const;
38  void ResetLastError();
39 
40 private:
41 
42  PvAppUtilsLib::IMp4Writer *mThis;
43 
44  // Not implemented
45  PvMp4Writer( const PvMp4Writer & );
46  const PvMp4Writer &operator=( const PvMp4Writer & );
47 
48 };
49 
50 #endif
PvResult
Result information.
Definition: PvResult.h:13
PvImage
Image interface to a PvBuffer.
Definition: PvImage.h:48
PvString
String class.
Definition: PvString.h:21
PvMp4Writer
Performs H.264 encoding and writing to an MP4 container from PvBuffers.
Definition: PvMp4Writer.h:20

Copyright (c) 2002-2021 Pleora Technologies Inc.
www.pleora.com