FFmpegfs Fuse Multi Media Filesystem 2.16
|
Virtual file definition. More...
#include <fileio.h>
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... | |
uint32_t VIRTUALFILE::get_segment_count | ( | ) | const |
Number of HLS segments in set.
Definition at line 45 of file fileio.cc.
References m_duration, FFMPEGFS_PARAMS::m_segment_duration, and params.
Referenced by get_source_properties(), Buffer::init(), make_hls_fileset(), FFmpeg_Transcoder::open_output(), and FFmpeg_Transcoder::start_new_segment().
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().
std::string VIRTUALFILE::m_cuesheet |
Cue sheet file contents for physical file.
Definition at line 243 of file fileio.h.
Referenced by parse_file().
std::string VIRTUALFILE::m_destfile |
Name and path of destination file.
Definition at line 150 of file fileio.h.
Referenced by Cache_Entry::Cache_Entry(), create_dvd_virtualfile(), Cache_Entry::destname(), FFmpeg_Transcoder::destname(), FFmpeg_Transcoder::encode_finish(), ffmpegfs_getattr(), FileIO::filename(), insert(), insert_file(), kick_next(), load_path(), Cache::openio(), and virtual_name().
int64_t VIRTUALFILE::m_duration |
Track/chapter duration, in AV_TIME_BASE fractional seconds.
Definition at line 156 of file fileio.h.
Referenced by create_bluray_virtualfile(), create_cuesheet_virtualfile(), create_dvd_virtualfile(), create_vcd_virtualfile(), get_segment_count(), get_source_properties(), make_hls_fileset(), FFmpeg_Transcoder::open_input_file(), BlurayIO::openio(), DvdIO::openio(), parse_cuesheet(), parse_file(), and transcoder_new().
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().
int VIRTUALFILE::m_flags |
One of the VIRTUALFLAG_* flags.
Definition at line 147 of file fileio.h.
Referenced by FFmpeg_Transcoder::copy_metadata(), ffmpegfs_getattr(), ffmpegfs_open(), ffmpegfs_read(), ffmpegfs_readdir(), ffmpegfs_release(), insert_file(), load_path(), FFmpeg_Transcoder::open_input_file(), FFmpeg_Transcoder::open_output_file(), FFmpeg_Transcoder::process_metadata(), FFmpeg_Transcoder::read_decode_convert_and_store(), and virtual_name().
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().
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().
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().
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().
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().
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().
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().
std::string VIRTUALFILE::m_origfile |
Sanitised name and path of original file.
Definition at line 152 of file fileio.h.
Referenced by Cache_Entry::Cache_Entry(), Cache_Entry::filename(), FFmpeg_Transcoder::filename(), find_original(), get_format(), insert(), insert_file(), DiskIO::openio(), parse_file(), FileIO::set_virtualfile(), and virtual_name().
size_t VIRTUALFILE::m_predicted_size |
Use this as the size instead of computing it over and over.
Definition at line 157 of file fileio.h.
Referenced by create_bluray_virtualfile(), create_cuesheet_virtualfile(), create_dvd_virtualfile(), create_vcd_virtualfile(), FFmpeg_Transcoder::encode_finish(), ffmpegfs_getattr(), ffmpegfs_readdir(), make_hls_fileset(), FFmpeg_Transcoder::open_input_file(), FFmpeg_Transcoder::start_new_segment(), transcoder_new(), and transcoder_set_filesize().
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().
struct stat VIRTUALFILE::m_st |
stat structure with size etc.
Definition at line 153 of file fileio.h.
Referenced by create_bluray_virtualfile(), create_cuesheet_virtualfile(), create_dvd_virtualfile(), create_vcd_virtualfile(), FFmpeg_Transcoder::encode_finish(), ffmpegfs_getattr(), ffmpegfs_readdir(), insert_file(), load_path(), make_hls_fileset(), FFmpeg_Transcoder::open_input_file(), parse_cuesheet(), parse_file(), transcoder_read_frame(), and virtual_name().
VIRTUALTYPE VIRTUALFILE::m_type |
Type of this virtual file.
Definition at line 146 of file fileio.h.
Referenced by FFmpeg_Transcoder::decode_frame(), ffmpegfs_getattr(), ffmpegfs_open(), ffmpegfs_read(), ffmpegfs_readdir(), insert_file(), load_path(), make_hls_fileset(), FFmpeg_Transcoder::open_bestmatch_audio(), FFmpeg_Transcoder::open_bestmatch_video(), and FFmpeg_Transcoder::open_input_file().
uint32_t VIRTUALFILE::m_video_frame_count |
Number of frames in video or 0 if not a video.
Definition at line 158 of file fileio.h.
Referenced by create_bluray_virtualfile(), create_dvd_virtualfile(), create_vcd_virtualfile(), ffmpegfs_getattr(), ffmpegfs_readdir(), get_source_properties(), Buffer::init(), FFmpeg_Transcoder::open_input_file(), FFmpeg_Transcoder::skip_decoded_frames(), and transcoder_new().
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().
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().