MythTV master
mythavformatbuffer.h
Go to the documentation of this file.
1#ifndef AVFRINGBUFFER_H
2#define AVFRINGBUFFER_H
3
4// MythTV
6
7// FFmpeg
8extern "C" {
9#include "libavformat/avio.h"
10}
11
13{
14 public:
15 MythAVFormatBuffer(MythMediaBuffer *Buffer, bool write_flag, bool force_seek);
17
18 void SetInInit (bool State);
19 bool IsInInit (void) const;
20
21 AVIOContext* getAVIOContext() { return m_avioContext; }
22
23 private:
24 static int read_packet(void *opaque, uint8_t *buf, int buf_size);
25 static int write_packet(void *opaque, const uint8_t *buf, int buf_size);
26 static int64_t seek(void *opaque, int64_t offset, int whence);
27
28 AVIOContext* alloc_context(bool write_flag, bool force_seek);
29
31 bool m_initState { true };
32 AVIOContext *m_avioContext { nullptr };
33};
34#endif
AVIOContext * getAVIOContext()
static int write_packet(void *opaque, const uint8_t *buf, int buf_size)
static int64_t seek(void *opaque, int64_t offset, int whence)
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
AVIOContext * m_avioContext
MythAVFormatBuffer(MythMediaBuffer *Buffer, bool write_flag, bool force_seek)
void SetInInit(bool State)
MythMediaBuffer * m_buffer
AVIOContext * alloc_context(bool write_flag, bool force_seek)
bool IsInInit(void) const
State
Definition: zmserver.h:69