FFmpegfs Fuse Multi Media Filesystem 2.16
Classes | Namespaces | Macros | Typedefs | Functions | Variables
vcdutils.h File Reference

S/VCD utility functions. More...

#include "vcd/vcdchapter.h"
#include <string>
#include <array>
Include dependency graph for vcdutils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  VCDMSF
 Video CD MSF time format. More...
 
struct  VCDCHAPTER
 Video CD chapter. More...
 
struct  VCDENTRIES
 Video CD entry. More...
 

Namespaces

namespace  VCDUTILS
 Video CD utility functions.
 

Macros

#define BCD2DEC(hex)   (((hex & 0xF0) >> 4) * 10 + (hex & 0x0F))
 
#define VCD_MAX_CHAPTERS   500
 

Typedefs

typedef struct VCDMSF VCDMSF
 Video CD MSF time format. More...
 
typedef struct VCDMSFLPVCDMSF
 Pointer version of VCDMSF.
 
typedef const VCDMSFLPCVCDMSF
 Pointer to const version of VCDMSF. More...
 
typedef struct VCDCHAPTER VCDCHAPTER
 Video CD chapter.
 
typedef struct VCDCHAPTERLPVCDCHAPTER
 Pointer version of VCDCHAPTER.
 
typedef const VCDCHAPTERLPCVCDCHAPTER
 Pointer to const version of VCDCHAPTER. More...
 
typedef struct VCDENTRIES VCDENTRY
 Video CD entry.
 
typedef struct VCDENTRIESLPVCDENTRIES
 Pointer version of VCDENTRY.
 
typedef const VCDENTRYLPCVCDENTRIES
 Pointer to const version of VCDENTRY. More...
 

Functions

std::string VCDUTILS::convert_txt2string (const char *txt, int size, bool trimmed=true)
 Non-zero terminated text is converted to std::string. More...
 
bool VCDUTILS::locate_file (const std::string &path, const std::string &filename, std::string &fullname, bool &is_vcd)
 Check if path is a S/VCD. More...
 
int VCDUTILS::locate_video (const std::string &path, int track_no, std::string &fullname)
 Locate AVSEQ*DAT/MPEG video file for track_no. More...
 
std::string VCDUTILS::get_type_str (VCDTYPE type)
 Return disk type as a human readable string. More...
 
std::string VCDUTILS::get_profile_tag_str (VCDPROFILETAG tag)
 Profile as a human readable string. More...
 
void VCDUTILS::get_directory (const std::string &fullname, std::string *directory)
 Check if fullname is a directory. Remove the filename if necessary. More...
 

Variables

const std::array< char, 12 > SYNC
 Chapter synchronisation in S/VCD mpeg/dat files (12 byte: 0x00FFFFFFFFFFFFFFFFFFFF00) More...
 

Detailed Description

S/VCD utility functions.

Author
Norbert Schlia (nschl.nosp@m.ia@o.nosp@m.blivi.nosp@m.on-s.nosp@m.oftwa.nosp@m.re.d.nosp@m.e)

Definition in file vcdutils.h.

Macro Definition Documentation

◆ BCD2DEC

#define BCD2DEC (   hex)    (((hex & 0xF0) >> 4) * 10 + (hex & 0x0F))

Convert BCD value to hex

Definition at line 40 of file vcdutils.h.

◆ VCD_MAX_CHAPTERS

#define VCD_MAX_CHAPTERS   500

Max. number of chapters on video CD

Definition at line 44 of file vcdutils.h.

Typedef Documentation

◆ LPCVCDCHAPTER

typedef const VCDCHAPTER* LPCVCDCHAPTER

Pointer to const version of VCDCHAPTER.

Definition at line 71 of file vcdutils.h.

◆ LPCVCDENTRIES

typedef const VCDENTRY* LPCVCDENTRIES

Pointer to const version of VCDENTRY.

Definition at line 109 of file vcdutils.h.

◆ LPCVCDMSF

typedef const VCDMSF* LPCVCDMSF

Pointer to const version of VCDMSF.

Definition at line 61 of file vcdutils.h.

◆ VCDMSF

typedef struct VCDMSF VCDMSF

Video CD MSF time format.

MSF in minutes, seconds, and fractional seconds (frames).

Note
The fields in this structure are BCD encoded

Variable Documentation

◆ SYNC

const std::array<char, 12> SYNC
extern

Chapter synchronisation in S/VCD mpeg/dat files (12 byte: 0x00FFFFFFFFFFFFFFFFFFFF00)

Sync bytes for a Video CD sector.

Definition at line 44 of file vcdentries.cc.

Referenced by VcdChapter::readio(), and VcdEntries::scan_chapters().