-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathFFmpegH264Source.h
More file actions
executable file
·43 lines (33 loc) · 977 Bytes
/
FFmpegH264Source.h
File metadata and controls
executable file
·43 lines (33 loc) · 977 Bytes
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
42
43
//
// FFmpegH264Source.h
// FFmpegRTSPServer
//
// Created by Mina Saad on 9/22/15.
// Copyright (c) 2015 Mina Saad. All rights reserved.
//
#ifndef MESAI_FFMPEGH264_SOURCE_HH
#define MESAI_FFMPEGH264_SOURCE_HH
#include <functional>
#include <FramedSource.hh>
#include <UsageEnvironment.hh>
#include <Groupsock.hh>
#include "FFmpegH264Encoder.h"
namespace MESAI
{
class FFmpegH264Source : public FramedSource {
public:
static FFmpegH264Source* createNew(UsageEnvironment& env, FFmpegH264Encoder * E_Source);
FFmpegH264Source(UsageEnvironment& env, FFmpegH264Encoder * E_Source);
~FFmpegH264Source();
private:
static void deliverFrameStub(void* clientData) {((FFmpegH264Source*) clientData)->deliverFrame();};
virtual void doGetNextFrame();
void deliverFrame();
virtual void doStopGettingFrames();
void onFrame();
private:
FFmpegH264Encoder * Encoding_Source;
EventTriggerId m_eventTriggerId;
};
}
#endif