Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
CDVDSubtitlesLibass Class Reference

#include <DVDSubtitlesLibass.h>

Inheritance diagram for CDVDSubtitlesLibass:
IDVDResourceCounted< CDVDSubtitlesLibass >

Public Member Functions

 CDVDSubtitlesLibass ()
 
 ~CDVDSubtitlesLibass () override
 
ASS_ImageRenderImage (int frameWidth, int frameHeight, int videoWidth, int videoHeight, int sourceWidth, int sourceHeight, double pts, int useMargin=0, double position=0.0, int *changes=NULL)
 
ASS_Event * GetEvents ()
 
int GetNrOfEvents ()
 
bool DecodeHeader (char *data, int size)
 
bool DecodeDemuxPkt (const char *data, int size, double start, double duration)
 
bool CreateTrack (char *buf, size_t size)
 
- Public Member Functions inherited from IDVDResourceCounted< CDVDSubtitlesLibass >
 IDVDResourceCounted ()
 
 IDVDResourceCounted (const IDVDResourceCounted &)=delete
 
virtual ~IDVDResourceCounted ()=default
 
IDVDResourceCountedoperator= (const IDVDResourceCounted &)=delete
 
virtual CDVDSubtitlesLibassAcquire ()
 
virtual long Release ()
 

Additional Inherited Members

- Public Attributes inherited from IDVDResourceCounted< CDVDSubtitlesLibass >
std::atomic< long > m_refs
 

Detailed Description

Wrapper for Libass

Constructor & Destructor Documentation

◆ CDVDSubtitlesLibass()

CDVDSubtitlesLibass::CDVDSubtitlesLibass ( )

◆ ~CDVDSubtitlesLibass()

CDVDSubtitlesLibass::~CDVDSubtitlesLibass ( )
override

Member Function Documentation

◆ CreateTrack()

bool CDVDSubtitlesLibass::CreateTrack ( char *  buf,
size_t  size 
)

◆ DecodeDemuxPkt()

bool CDVDSubtitlesLibass::DecodeDemuxPkt ( const char *  data,
int  size,
double  start,
double  duration 
)
Bug:
libass isn't const correct

◆ DecodeHeader()

bool CDVDSubtitlesLibass::DecodeHeader ( char *  data,
int  size 
)

◆ GetEvents()

ASS_Event * CDVDSubtitlesLibass::GetEvents ( )

◆ GetNrOfEvents()

int CDVDSubtitlesLibass::GetNrOfEvents ( )

◆ RenderImage()

ASS_Image * CDVDSubtitlesLibass::RenderImage ( int  frameWidth,
int  frameHeight,
int  videoWidth,
int  videoHeight,
int  sourceWidth,
int  sourceHeight,
double  pts,
int  useMargin = 0,
double  position = 0.0,
int *  changes = NULL 
)

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