FFmpegfs Fuse Multi Media Filesystem 2.16
|
Video CD chapter. More...
#include <vcdchapter.h>
Public Member Functions | |
VcdChapter (bool is_svcd) | |
Construct VcdChapter object. More... | |
VcdChapter (const VCDCHAPTER &VcdChapter, bool is_svcd) | |
Construct VcdChapter object. More... | |
VcdChapter (int track_no, int min, int sec, int frame, bool is_svcd, int64_t duration) | |
Construct VcdChapter object. More... | |
virtual | ~VcdChapter ()=default |
Destroy VcdChapter object. | |
bool | get_is_svcd () const |
Check if this is a Super Video CD. More... | |
int | get_track_no () const |
Get the track number of this chapter. More... | |
int | get_min () const |
Get MSF (minutes, seconds, and fractional seconds/frames) minute. More... | |
int | get_sec () const |
Get MSF (minutes, seconds, and fractional seconds/frames) second. More... | |
int | get_frame () const |
Get MSF (minutes, seconds, and fractional seconds/frames) frame. More... | |
int64_t | get_duration () const |
Get chapter duration, in AV_TIME_BASE fractional seconds. More... | |
std::string | get_filename () const |
Get file name and path of source file (e.g. MPEG/AVSEQ##.MPG). More... | |
uint64_t | get_start_pos () const |
Get file position of chapter in bytes. More... | |
uint64_t | get_end_pos () const |
Get end position of chapter in bytes. More... | |
int64_t | get_start_time () const |
Get start position of chapter in AV_TIME_BASE units. More... | |
uint64_t | get_size () const |
Get the size of this chapter in bytes. More... | |
int | get_lba () const |
Get LBA (large block address) of chapter. More... | |
VcdChapter & | operator= (VcdChapter const &other) |
Assignment operator =. More... | |
int | operator== (const VcdChapter &other) const |
Comparison operator ==. More... | |
int | operator< (const VcdChapter &other) const |
Comparison operator <. More... | |
int | operator<= (const VcdChapter &other) const |
Comparison operator <=. More... | |
int | operator> (const VcdChapter &other) const |
Comparison operator > More... | |
int | operator>= (const VcdChapter &other) const |
Comparison operator >=. More... | |
int | operator!= (const VcdChapter &other) const |
Comparison operator !=. More... | |
Protected Member Functions | |
int | readio (FILE *fpi, int track_no) |
Read file from disk. More... | |
Protected Attributes | |
bool | m_is_svcd |
true for SVCD, false for VCD More... | |
int | m_track_no |
Track no. More... | |
int | m_min |
MSF minute. More... | |
int | m_sec |
MSF second. More... | |
int | m_frame |
MSF frame. More... | |
int64_t | m_duration |
Chapter duration, in AV_TIME_BASE fractional seconds. More... | |
uint64_t | m_start_pos |
Start offset in bytes. More... | |
uint64_t | m_end_pos |
End offset in bytes (not including this byte) More... | |
Friends | |
class | VcdEntries |
Video CD chapter.
Definition at line 61 of file vcdchapter.h.
|
explicit |
Construct VcdChapter object.
[in] | is_svcd | - true for SVCD CD, false for VCD |
Definition at line 37 of file vcdchapter.cc.
|
explicit |
Construct VcdChapter object.
[in] | VcdChapter | - source object to copy from |
[in] | is_svcd | - true for SVCD CD, false for VCD |
Definition at line 50 of file vcdchapter.cc.
|
explicit |
Construct VcdChapter object.
[in] | track_no | - track number 1.. |
[in] | min | - Start minute |
[in] | sec | - Start second |
[in] | frame | - Start frame |
[in] | is_svcd | - true for SVCD CD, false for VCD |
[in] | duration | - Chapter duration, in AV_TIME_BASE fractional seconds |
Definition at line 63 of file vcdchapter.cc.
int64_t VcdChapter::get_duration | ( | ) | const |
Get chapter duration, in AV_TIME_BASE fractional seconds.
Definition at line 134 of file vcdchapter.cc.
References m_duration.
Referenced by create_vcd_virtualfile().
uint64_t VcdChapter::get_end_pos | ( | ) | const |
Get end position of chapter in bytes.
Definition at line 159 of file vcdchapter.cc.
References m_end_pos.
Referenced by create_vcd_virtualfile().
std::string VcdChapter::get_filename | ( | ) | const |
Get file name and path of source file (e.g. MPEG/AVSEQ##.MPG).
Definition at line 139 of file vcdchapter.cc.
References m_is_svcd, m_track_no, and strsprintf().
int VcdChapter::get_frame | ( | ) | const |
Get MSF (minutes, seconds, and fractional seconds/frames) frame.
Each timecode frame is one seventy-fifth of a second.
Definition at line 129 of file vcdchapter.cc.
References m_frame.
bool VcdChapter::get_is_svcd | ( | ) | const |
Check if this is a Super Video CD.
Definition at line 109 of file vcdchapter.cc.
References m_is_svcd.
int VcdChapter::get_lba | ( | ) | const |
Get LBA (large block address) of chapter.
Definition at line 188 of file vcdchapter.cc.
int VcdChapter::get_min | ( | ) | const |
Get MSF (minutes, seconds, and fractional seconds/frames) minute.
Definition at line 119 of file vcdchapter.cc.
References m_min.
int VcdChapter::get_sec | ( | ) | const |
Get MSF (minutes, seconds, and fractional seconds/frames) second.
Definition at line 124 of file vcdchapter.cc.
References m_sec.
uint64_t VcdChapter::get_size | ( | ) | const |
Get the size of this chapter in bytes.
Definition at line 164 of file vcdchapter.cc.
References m_end_pos, and m_start_pos.
Referenced by create_vcd_virtualfile().
uint64_t VcdChapter::get_start_pos | ( | ) | const |
Get file position of chapter in bytes.
Definition at line 154 of file vcdchapter.cc.
References m_start_pos.
Referenced by create_vcd_virtualfile().
int64_t VcdChapter::get_start_time | ( | ) | const |
Get start position of chapter in AV_TIME_BASE units.
Definition at line 169 of file vcdchapter.cc.
References m_frame, m_min, and m_sec.
Referenced by VcdEntries::load_file(), and VcdEntries::scan_chapters().
int VcdChapter::get_track_no | ( | ) | const |
Get the track number of this chapter.
Definition at line 114 of file vcdchapter.cc.
References m_track_no.
Referenced by create_vcd_virtualfile().
int VcdChapter::operator!= | ( | const VcdChapter & | other | ) | const |
Comparison operator !=.
[in] | other |
Definition at line 338 of file vcdchapter.cc.
References m_frame, m_min, m_sec, and m_track_no.
int VcdChapter::operator< | ( | const VcdChapter & | other | ) | const |
Comparison operator <.
[in] | other |
Definition at line 218 of file vcdchapter.cc.
References m_frame, m_min, m_sec, and m_track_no.
int VcdChapter::operator<= | ( | const VcdChapter & | other | ) | const |
Comparison operator <=.
[in] | other |
Definition at line 268 of file vcdchapter.cc.
VcdChapter & VcdChapter::operator= | ( | VcdChapter const & | other | ) |
Assignment operator =.
[in] | other |
Definition at line 193 of file vcdchapter.cc.
References m_duration, m_end_pos, m_frame, m_is_svcd, m_min, m_sec, m_start_pos, and m_track_no.
int VcdChapter::operator== | ( | const VcdChapter & | other | ) | const |
Comparison operator ==.
[in] | other |
Definition at line 210 of file vcdchapter.cc.
References m_frame, m_min, m_sec, and m_track_no.
int VcdChapter::operator> | ( | const VcdChapter & | other | ) | const |
Comparison operator >
[in] | other |
Definition at line 278 of file vcdchapter.cc.
References m_frame, m_min, m_sec, and m_track_no.
int VcdChapter::operator>= | ( | const VcdChapter & | other | ) | const |
Comparison operator >=.
[in] | other |
Definition at line 328 of file vcdchapter.cc.
|
protected |
Read file from disk.
[in] | fpi | - Open file object to read from |
[in] | track_no | - Track number 1... |
Definition at line 76 of file vcdchapter.cc.
References BCD2DEC, m_frame, VCDMSF::m_frame, m_min, VCDMSF::m_min, m_sec, VCDMSF::m_sec, m_track_no, and SYNC.
Referenced by VcdEntries::scan_chapters().
|
friend |
Definition at line 63 of file vcdchapter.h.
|
protected |
Chapter duration, in AV_TIME_BASE fractional seconds.
Definition at line 216 of file vcdchapter.h.
Referenced by get_duration(), VcdEntries::load_file(), operator=(), and VcdEntries::scan_chapters().
|
protected |
End offset in bytes (not including this byte)
Definition at line 218 of file vcdchapter.h.
Referenced by get_end_pos(), get_size(), and operator=().
|
protected |
MSF frame.
Definition at line 215 of file vcdchapter.h.
Referenced by get_frame(), get_lba(), get_start_time(), operator!=(), operator<(), operator=(), operator==(), operator>(), and readio().
|
protected |
true for SVCD, false for VCD
Definition at line 211 of file vcdchapter.h.
Referenced by get_filename(), get_is_svcd(), and operator=().
|
protected |
MSF minute.
Definition at line 213 of file vcdchapter.h.
Referenced by get_lba(), get_min(), get_start_time(), operator!=(), operator<(), operator=(), operator==(), operator>(), and readio().
|
protected |
MSF second.
Definition at line 214 of file vcdchapter.h.
Referenced by get_lba(), get_sec(), get_start_time(), operator!=(), operator<(), operator=(), operator==(), operator>(), and readio().
|
protected |
Start offset in bytes.
Definition at line 217 of file vcdchapter.h.
Referenced by get_size(), get_start_pos(), and operator=().
|
protected |
Track no.
Definition at line 212 of file vcdchapter.h.
Referenced by get_filename(), get_track_no(), operator!=(), operator<(), operator=(), operator==(), operator>(), and readio().