FFmpegfs Fuse Multi Media Filesystem 2.16
Classes | Public Member Functions | Public Attributes | List of all members
VIRTUALFILE Struct Reference

Virtual file definition. More...

#include <fileio.h>

Collaboration diagram for VIRTUALFILE:
Collaboration graph
[legend]

Classes

struct  BLURAY_CHAPTER
 Extra value structure for Blu-ray disks. More...
 
struct  CUESHEET_TRACK
 Extra value structure for cue sheets. More...
 
struct  DVD_CHAPTER
 Extra value structure for DVDs. More...
 
struct  VCD_CHAPTER
 Extra value structure for Video CDs. More...
 

Public Member Functions

uint32_t get_segment_count () const
 Number of HLS segments in set. More...
 

Public Attributes

VIRTUALTYPE m_type
 Type of this virtual file. More...
 
int m_flags
 One of the VIRTUALFLAG_* flags. More...
 
size_t m_format_idx
 Index into params.format[] array. More...
 
std::string m_destfile
 Name and path of destination file. More...
 
std::string m_virtfile
 Name and path of virtual file. More...
 
std::string m_origfile
 Sanitised name and path of original file. More...
 
struct stat m_st
 stat structure with size etc. More...
 
bool m_full_title
 If true, ignore m_chapter_no and provide full track. More...
 
int64_t m_duration
 Track/chapter duration, in AV_TIME_BASE fractional seconds. More...
 
size_t m_predicted_size
 Use this as the size instead of computing it over and over. More...
 
uint32_t m_video_frame_count
 Number of frames in video or 0 if not a video. More...
 
bool m_has_audio
 True if file has an audio track. More...
 
bool m_has_video
 True if file has a video track. More...
 
bool m_has_subtitle
 True if file has a subtitle track. More...
 
std::vector< char > m_file_contents
 Buffer for virtual files. More...
 
struct VIRTUALFILE::VCD_CHAPTER m_vcd
 S/VCD track/chapter info.
 
struct VIRTUALFILE::DVD_CHAPTER m_dvd
 DVD title/chapter info.
 
struct VIRTUALFILE::BLURAY_CHAPTER m_bluray
 Blu-ray title/chapter info.
 
struct VIRTUALFILE::CUESHEET_TRACK m_cuesheet_track
 Cue sheet data for track.
 
std::string m_cuesheet
 Cue sheet file contents for physical file. More...
 
int m_channels
 Audio channels - Filled in for the DVD/Blu-ray directory. More...
 
int m_sample_rate
 Audio sample rate - Filled in for the DVD/Blu-ray directory. More...
 
int m_width
 Video width - Filled in for the DVD/Blu-ray directory. More...
 
int m_height
 Video height - Filled in for the DVD/Blu-ray directory. More...
 
AVRational m_framerate
 Video frame rate - Filled in for the DVD/Blu-ray directory. More...
 

Detailed Description

Virtual file definition.

Definition at line 122 of file fileio.h.

Constructor & Destructor Documentation

◆ VIRTUALFILE()

VIRTUALFILE::VIRTUALFILE ( )
inline

Definition at line 124 of file fileio.h.

Member Function Documentation

◆ get_segment_count()

uint32_t VIRTUALFILE::get_segment_count ( ) const

Member Data Documentation

◆ m_channels

int VIRTUALFILE::m_channels

Audio channels - Filled in for the DVD/Blu-ray directory.

Definition at line 246 of file fileio.h.

Referenced by create_bluray_virtualfile(), create_cuesheet_virtualfile(), create_dvd_virtualfile(), and parse_file().

◆ m_cuesheet

std::string VIRTUALFILE::m_cuesheet

Cue sheet file contents for physical file.

Definition at line 243 of file fileio.h.

Referenced by parse_file().

◆ m_destfile

std::string VIRTUALFILE::m_destfile

◆ m_duration

int64_t VIRTUALFILE::m_duration

◆ m_file_contents

std::vector<char> VIRTUALFILE::m_file_contents

Buffer for virtual files.

Definition at line 164 of file fileio.h.

Referenced by ffmpegfs_read(), ffmpegfs_readdir(), and make_hls_fileset().

◆ m_flags

int VIRTUALFILE::m_flags

◆ m_format_idx

size_t VIRTUALFILE::m_format_idx

Index into params.format[] array.

Definition at line 149 of file fileio.h.

Referenced by create_bluray_virtualfile(), create_cuesheet_virtualfile(), create_dvd_virtualfile(), create_vcd_virtualfile(), get_format(), and insert_file().

◆ m_framerate

AVRational VIRTUALFILE::m_framerate

Video frame rate - Filled in for the DVD/Blu-ray directory.

Definition at line 251 of file fileio.h.

Referenced by create_bluray_virtualfile(), create_dvd_virtualfile(), and FFmpeg_Transcoder::open_input_file().

◆ m_full_title

bool VIRTUALFILE::m_full_title

If true, ignore m_chapter_no and provide full track.

Definition at line 155 of file fileio.h.

Referenced by create_bluray_virtualfile(), create_dvd_virtualfile(), create_vcd_virtualfile(), BlurayIO::openio(), DvdIO::openio(), and VcdIO::openio().

◆ m_has_audio

bool VIRTUALFILE::m_has_audio

True if file has an audio track.

Definition at line 160 of file fileio.h.

Referenced by ffmpegfs_readdir(), get_format(), and parse_file().

◆ m_has_subtitle

bool VIRTUALFILE::m_has_subtitle

True if file has a subtitle track.

Definition at line 162 of file fileio.h.

Referenced by get_format(), and parse_file().

◆ m_has_video

bool VIRTUALFILE::m_has_video

True if file has a video track.

Definition at line 161 of file fileio.h.

Referenced by get_format(), and parse_file().

◆ m_height

int VIRTUALFILE::m_height

Video height - Filled in for the DVD/Blu-ray directory.

Definition at line 250 of file fileio.h.

Referenced by create_bluray_virtualfile(), create_dvd_virtualfile(), and FFmpeg_Transcoder::open_input_file().

◆ m_origfile

std::string VIRTUALFILE::m_origfile

◆ m_predicted_size

size_t VIRTUALFILE::m_predicted_size

◆ m_sample_rate

int VIRTUALFILE::m_sample_rate

Audio sample rate - Filled in for the DVD/Blu-ray directory.

Definition at line 247 of file fileio.h.

Referenced by create_bluray_virtualfile(), create_dvd_virtualfile(), and parse_file().

◆ m_st

struct stat VIRTUALFILE::m_st

◆ m_type

VIRTUALTYPE VIRTUALFILE::m_type

◆ m_video_frame_count

uint32_t VIRTUALFILE::m_video_frame_count

◆ m_virtfile

std::string VIRTUALFILE::m_virtfile

Name and path of virtual file.

Definition at line 151 of file fileio.h.

Referenced by insert_file(), FFmpeg_Transcoder::purge(), Cache_Entry::virtname(), FFmpeg_Transcoder::virtname(), and virtual_name().

◆ m_width

int VIRTUALFILE::m_width

Video width - Filled in for the DVD/Blu-ray directory.

Definition at line 249 of file fileio.h.

Referenced by create_bluray_virtualfile(), create_dvd_virtualfile(), and FFmpeg_Transcoder::open_input_file().


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