FFmpegfs Fuse Multi Media Filesystem 2.16
Public Member Functions | Public Attributes | List of all members
Buffer::_tagCACHEINFO Struct Reference

Structure to hold current cache state. More...

#include <buffer.h>

Public Member Functions

void reset ()
 Reset buffer pointers. More...
 

Public Attributes

std::string m_cachefile
 Cache file name. More...
 
volatile int m_fd
 File handle for buffer. More...
 
uint8_t * m_buffer
 Pointer to buffer memory. More...
 
size_t m_buffer_pos
 Read/write position. More...
 
size_t m_buffer_watermark
 Number of bytes in buffer. More...
 
size_t m_buffer_size
 Current buffer size. More...
 
bool m_seg_finished
 True if segment completely decoded. More...
 
std::string m_cachefile_idx
 Index file name. More...
 
volatile int m_fd_idx
 File handle for index. More...
 
uint8_t * m_buffer_idx
 Pointer to index memory. More...
 
size_t m_buffer_size_idx
 Size of index buffer. More...
 
uint32_t m_flags
 CACHE_FLAG_* options. More...
 
size_t m_buffer_write_size
 Sum of bytes written to the buffer. More...
 
unsigned int m_buffer_writes
 Total number of writes to the buffer. More...
 

Detailed Description

Structure to hold current cache state.

Definition at line 69 of file buffer.h.

Constructor & Destructor Documentation

◆ _tagCACHEINFO()

Buffer::_tagCACHEINFO::_tagCACHEINFO ( )
inline

Definition at line 72 of file buffer.h.

Member Function Documentation

◆ reset()

void Buffer::_tagCACHEINFO::reset ( )
inline

Reset buffer pointers.

Definition at line 91 of file buffer.h.

References m_buffer, m_buffer_pos, m_buffer_size, m_buffer_watermark, m_buffer_write_size, m_buffer_writes, and m_fd.

Member Data Documentation

◆ m_buffer

uint8_t* Buffer::_tagCACHEINFO::m_buffer

◆ m_buffer_idx

uint8_t* Buffer::_tagCACHEINFO::m_buffer_idx

Pointer to index memory.

Definition at line 113 of file buffer.h.

Referenced by Buffer::flush(), Buffer::have_frame(), Buffer::read_frame(), and Buffer::write_frame().

◆ m_buffer_pos

size_t Buffer::_tagCACHEINFO::m_buffer_pos

Read/write position.

Definition at line 106 of file buffer.h.

Referenced by Buffer::close_file(), Buffer::increment_pos(), Buffer::open_file(), reset(), Buffer::seek(), and Buffer::write_prepare().

◆ m_buffer_size

size_t Buffer::_tagCACHEINFO::m_buffer_size

Current buffer size.

Definition at line 108 of file buffer.h.

Referenced by Buffer::close_file(), Buffer::flush(), Buffer::open_file(), Buffer::reserve(), and reset().

◆ m_buffer_size_idx

size_t Buffer::_tagCACHEINFO::m_buffer_size_idx

Size of index buffer.

Definition at line 114 of file buffer.h.

Referenced by Buffer::flush().

◆ m_buffer_watermark

size_t Buffer::_tagCACHEINFO::m_buffer_watermark

Number of bytes in buffer.

Definition at line 107 of file buffer.h.

Referenced by Buffer::close_file(), Buffer::open_file(), reset(), and Buffer::write_prepare().

◆ m_buffer_write_size

size_t Buffer::_tagCACHEINFO::m_buffer_write_size

Sum of bytes written to the buffer.

Definition at line 118 of file buffer.h.

Referenced by Buffer::open_file(), Buffer::reallocate(), reset(), and Buffer::writeio().

◆ m_buffer_writes

unsigned int Buffer::_tagCACHEINFO::m_buffer_writes

Total number of writes to the buffer.

Definition at line 119 of file buffer.h.

Referenced by Buffer::open_file(), Buffer::reallocate(), reset(), and Buffer::writeio().

◆ m_cachefile

std::string Buffer::_tagCACHEINFO::m_cachefile

◆ m_cachefile_idx

std::string Buffer::_tagCACHEINFO::m_cachefile_idx

Index file name.

Definition at line 111 of file buffer.h.

Referenced by Buffer::flush(), and Buffer::remove_cachefile().

◆ m_fd

volatile int Buffer::_tagCACHEINFO::m_fd

File handle for buffer.

Definition at line 104 of file buffer.h.

Referenced by Buffer::close_file(), Buffer::open_file(), Buffer::reserve(), and reset().

◆ m_fd_idx

volatile int Buffer::_tagCACHEINFO::m_fd_idx

File handle for index.

Definition at line 112 of file buffer.h.

◆ m_flags

uint32_t Buffer::_tagCACHEINFO::m_flags

CACHE_FLAG_* options.

Definition at line 116 of file buffer.h.

Referenced by Buffer::close_file(), and Buffer::open_file().

◆ m_seg_finished

bool Buffer::_tagCACHEINFO::m_seg_finished

True if segment completely decoded.

Definition at line 109 of file buffer.h.

Referenced by Buffer::finished_segment().


The documentation for this struct was generated from the following file: