#include <ptformat.h>
|
| bool | jumpback (uint32_t *currpos, unsigned char *buf, const uint32_t maxoffset, const unsigned char *needle, const uint32_t needlelen) |
| |
| bool | jumpto (uint32_t *currpos, unsigned char *buf, const uint32_t maxoffset, const unsigned char *needle, const uint32_t needlelen) |
| |
| bool | foundin (std::string const &haystack, std::string const &needle) |
| |
| int64_t | foundat (unsigned char *haystack, uint64_t n, const char *needle) |
| |
| std::string | parsestring (uint32_t pos) |
| |
| const std::string | get_content_description (uint16_t ctype) |
| |
| int | parse (void) |
| |
| void | parseblocks (void) |
| |
| bool | parseheader (void) |
| |
| bool | parserest (void) |
| |
| bool | parseaudio (void) |
| |
| bool | parsemidi (void) |
| |
| void | dump (void) |
| |
| bool | parse_block_at (uint32_t pos, struct block_t *b, struct block_t *parent, int level) |
| |
| void | dump_block (struct block_t &b, int level) |
| |
| bool | parse_version () |
| |
| void | parse_region_info (uint32_t j, block_t &blk, region_t &r) |
| |
| void | parse_three_point (uint32_t j, uint64_t &start, uint64_t &offset, uint64_t &length) |
| |
| uint8_t | gen_xor_delta (uint8_t xor_value, uint8_t mul, bool negative) |
| |
| void | setrates (void) |
| |
| void | cleanup (void) |
| |
| void | free_block (struct block_t &b) |
| |
| void | free_all_blocks (void) |
| |
Definition at line 32 of file ptformat.h.
◆ PTFFormat()
◆ ~PTFFormat()
| PTFFormat::~PTFFormat |
( |
| ) |
|
◆ audiofiles()
| const std::vector<wav_t>& PTFFormat::audiofiles |
( |
| ) |
const |
|
inline |
◆ cleanup()
| void PTFFormat::cleanup |
( |
void |
| ) |
|
|
private |
◆ dump()
| void PTFFormat::dump |
( |
void |
| ) |
|
|
private |
◆ dump_block()
| void PTFFormat::dump_block |
( |
struct block_t & |
b, |
|
|
int |
level |
|
) |
| |
|
private |
◆ find_midiregion()
| bool PTFFormat::find_midiregion |
( |
uint16_t |
index, |
|
|
region_t & |
rr |
|
) |
| const |
|
inline |
◆ find_miditrack()
| bool PTFFormat::find_miditrack |
( |
uint16_t |
index, |
|
|
track_t & |
tt |
|
) |
| const |
|
inline |
◆ find_region()
| bool PTFFormat::find_region |
( |
uint16_t |
index, |
|
|
region_t & |
rr |
|
) |
| const |
|
inline |
◆ find_track()
| bool PTFFormat::find_track |
( |
uint16_t |
index, |
|
|
track_t & |
tt |
|
) |
| const |
|
inline |
◆ find_wav()
| bool PTFFormat::find_wav |
( |
uint16_t |
index, |
|
|
wav_t & |
ww |
|
) |
| const |
|
inline |
◆ foundat()
| int64_t PTFFormat::foundat |
( |
unsigned char * |
haystack, |
|
|
uint64_t |
n, |
|
|
const char * |
needle |
|
) |
| |
|
private |
◆ foundin()
| bool PTFFormat::foundin |
( |
std::string const & |
haystack, |
|
|
std::string const & |
needle |
|
) |
| |
|
private |
◆ free_all_blocks()
| void PTFFormat::free_all_blocks |
( |
void |
| ) |
|
|
private |
◆ free_block()
| void PTFFormat::free_block |
( |
struct block_t & |
b | ) |
|
|
private |
◆ gen_xor_delta()
| uint8_t PTFFormat::gen_xor_delta |
( |
uint8_t |
xor_value, |
|
|
uint8_t |
mul, |
|
|
bool |
negative |
|
) |
| |
|
private |
◆ get_content_description()
| const std::string PTFFormat::get_content_description |
( |
uint16_t |
ctype | ) |
|
|
private |
◆ jumpback()
| bool PTFFormat::jumpback |
( |
uint32_t * |
currpos, |
|
|
unsigned char * |
buf, |
|
|
const uint32_t |
maxoffset, |
|
|
const unsigned char * |
needle, |
|
|
const uint32_t |
needlelen |
|
) |
| |
|
private |
◆ jumpto()
| bool PTFFormat::jumpto |
( |
uint32_t * |
currpos, |
|
|
unsigned char * |
buf, |
|
|
const uint32_t |
maxoffset, |
|
|
const unsigned char * |
needle, |
|
|
const uint32_t |
needlelen |
|
) |
| |
|
private |
◆ load()
| int PTFFormat::load |
( |
std::string const & |
path, |
|
|
int64_t |
targetsr |
|
) |
| |
◆ midiregions()
| const std::vector<region_t>& PTFFormat::midiregions |
( |
| ) |
const |
|
inline |
◆ miditracks()
| const std::vector<track_t>& PTFFormat::miditracks |
( |
| ) |
const |
|
inline |
◆ parse()
| int PTFFormat::parse |
( |
void |
| ) |
|
|
private |
◆ parse_block_at()
| bool PTFFormat::parse_block_at |
( |
uint32_t |
pos, |
|
|
struct block_t * |
b, |
|
|
struct block_t * |
parent, |
|
|
int |
level |
|
) |
| |
|
private |
◆ parse_region_info()
| void PTFFormat::parse_region_info |
( |
uint32_t |
j, |
|
|
block_t & |
blk, |
|
|
region_t & |
r |
|
) |
| |
|
private |
◆ parse_three_point()
| void PTFFormat::parse_three_point |
( |
uint32_t |
j, |
|
|
uint64_t & |
start, |
|
|
uint64_t & |
offset, |
|
|
uint64_t & |
length |
|
) |
| |
|
private |
◆ parse_version()
| bool PTFFormat::parse_version |
( |
| ) |
|
|
private |
◆ parseaudio()
| bool PTFFormat::parseaudio |
( |
void |
| ) |
|
|
private |
◆ parseblocks()
| void PTFFormat::parseblocks |
( |
void |
| ) |
|
|
private |
◆ parseheader()
| bool PTFFormat::parseheader |
( |
void |
| ) |
|
|
private |
◆ parsemidi()
| bool PTFFormat::parsemidi |
( |
void |
| ) |
|
|
private |
◆ parserest()
| bool PTFFormat::parserest |
( |
void |
| ) |
|
|
private |
◆ parsestring()
| std::string PTFFormat::parsestring |
( |
uint32_t |
pos | ) |
|
|
private |
◆ path()
| const std::string& PTFFormat::path |
( |
| ) |
|
|
inline |
◆ regionexistsin()
| static bool PTFFormat::regionexistsin |
( |
std::vector< region_t > const & |
reg, |
|
|
uint16_t |
index |
|
) |
| |
|
inlinestatic |
◆ regions()
| const std::vector<region_t>& PTFFormat::regions |
( |
| ) |
const |
|
inline |
◆ sessionrate()
| int64_t PTFFormat::sessionrate |
( |
| ) |
const |
|
inline |
◆ setrates()
| void PTFFormat::setrates |
( |
void |
| ) |
|
|
private |
◆ tracks()
| const std::vector<track_t>& PTFFormat::tracks |
( |
| ) |
const |
|
inline |
◆ unxor()
| int PTFFormat::unxor |
( |
std::string const & |
path | ) |
|
◆ unxored_data()
| const unsigned char* PTFFormat::unxored_data |
( |
| ) |
const |
|
inline |
◆ unxored_size()
| uint64_t PTFFormat::unxored_size |
( |
| ) |
const |
|
inline |
◆ version()
| uint8_t PTFFormat::version |
( |
| ) |
const |
|
inline |
◆ wavexistsin()
| static bool PTFFormat::wavexistsin |
( |
std::vector< wav_t > const & |
wv, |
|
|
uint16_t |
index |
|
) |
| |
|
inlinestatic |
◆ _audiofiles
| std::vector<wav_t> PTFFormat::_audiofiles |
|
private |
◆ _len
◆ _midiregions
| std::vector<region_t> PTFFormat::_midiregions |
|
private |
◆ _miditracks
| std::vector<track_t> PTFFormat::_miditracks |
|
private |
◆ _path
| std::string PTFFormat::_path |
|
private |
◆ _product
| uint8_t* PTFFormat::_product |
|
private |
◆ _ptfunxored
| unsigned char* PTFFormat::_ptfunxored |
|
private |
◆ _ratefactor
| float PTFFormat::_ratefactor |
|
private |
◆ _regions
| std::vector<region_t> PTFFormat::_regions |
|
private |
◆ _sessionrate
| int64_t PTFFormat::_sessionrate |
|
private |
◆ _targetrate
| int64_t PTFFormat::_targetrate |
|
private |
◆ _tracks
| std::vector<track_t> PTFFormat::_tracks |
|
private |
◆ _version
| uint8_t PTFFormat::_version |
|
private |
◆ blocks
| std::vector<block_t> PTFFormat::blocks |
|
private |
◆ is_bigendian
| bool PTFFormat::is_bigendian |
|
private |
The documentation for this class was generated from the following file: