|
FFmpegfs Fuse Multi Media Filesystem 2.19
|
Structure to hold current cache state. More...
#include <buffer.h>
Public Member Functions | |
| void | reset () |
| Reset buffer pointers. | |
Public Attributes | |
| std::string | m_cachefile |
| Cache file name. | |
| int | m_fd |
| File handle for buffer. | |
| uint8_t * | m_buffer |
| Pointer to buffer memory. | |
| size_t | m_buffer_pos |
| Read/write position. | |
| size_t | m_buffer_watermark |
| Number of bytes in buffer. | |
| size_t | m_buffer_size |
| Current buffer size. | |
| bool | m_seg_finished |
| True if segment completely decoded. | |
| std::string | m_cachefile_idx |
| Index file name. | |
| int | m_fd_idx |
| File handle for index. | |
| uint8_t * | m_buffer_idx |
| Pointer to index memory. | |
| size_t | m_buffer_size_idx |
| Size of index buffer. | |
| uint32_t | m_flags |
| CACHE_FLAG_* options. | |
| size_t | m_buffer_write_size |
| Sum of bytes written to the buffer. | |
| unsigned int | m_buffer_writes |
| Total number of writes to the buffer. | |
|
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.
| uint8_t* Buffer::_tagCACHEINFO::m_buffer |
Pointer to buffer memory.
Definition at line 105 of file buffer.h.
Referenced by Buffer::close_file(), Buffer::flush(), Buffer::invalidate_segment(), Buffer::open_file(), Buffer::reserve(), reset(), Buffer::seek(), Buffer::write_prepare(), and Buffer::writeio().
| 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::invalidate_segment(), Buffer::read_frame(), and Buffer::write_frame().
| 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::invalidate_segment(), Buffer::open_file(), reset(), Buffer::seek(), and Buffer::write_prepare().
| 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::invalidate_segment(), Buffer::open_file(), Buffer::reserve(), and reset().
| size_t Buffer::_tagCACHEINFO::m_buffer_size_idx |
Size of index buffer.
Definition at line 114 of file buffer.h.
Referenced by Buffer::flush(), and Buffer::invalidate_segment().
| 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::invalidate_segment(), Buffer::open_file(), reset(), and Buffer::write_prepare().
| 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::invalidate_segment(), Buffer::open_file(), Buffer::reallocate(), reset(), and Buffer::writeio().
| 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::invalidate_segment(), Buffer::open_file(), Buffer::reallocate(), reset(), and Buffer::writeio().
| std::string Buffer::_tagCACHEINFO::m_cachefile |
Cache file name.
Definition at line 103 of file buffer.h.
Referenced by Buffer::close_file(), Buffer::flush(), Buffer::invalidate_segment(), Buffer::open_file(), Buffer::remove_cachefile(), and Buffer::reserve().
| 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().
| int Buffer::_tagCACHEINFO::m_fd |
File handle for buffer.
Definition at line 104 of file buffer.h.
Referenced by Buffer::close_file(), Buffer::invalidate_segment(), Buffer::open_file(), Buffer::reserve(), and reset().
| uint32_t Buffer::_tagCACHEINFO::m_flags |
CACHE_FLAG_* options.
Definition at line 116 of file buffer.h.
Referenced by Buffer::close_file(), Buffer::invalidate_segment(), and Buffer::open_file().
| bool Buffer::_tagCACHEINFO::m_seg_finished |
True if segment completely decoded.
Definition at line 109 of file buffer.h.
Referenced by Buffer::finished_segment(), and Buffer::invalidate_segment().