Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
dvdnav_internal.h File Reference
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <string.h>
#include <pthread.h>
#include "decoder.h"
#include "dvdnav.h"
#include "vm.h"
#include "vmcmd.h"

Classes

struct  ATTRIBUTE_PACKED
 
struct  dvdnav_vobu_s
 
struct  dvdnav_s
 

Macros

#define MSG_OUT   stderr
 
#define MAX_ERR_LEN   255
 
#define MAX_PATH_LEN   PATH_MAX
 
#define printerrf(...)    do { if (this) snprintf(this->err_str, MAX_ERR_LEN, __VA_ARGS__); } while (0)
 
#define printerr(str)    do { if (this) strncpy(this->err_str, str, MAX_ERR_LEN - 1); } while (0)
 

Typedefs

typedef struct read_cache_s read_cache_t
 
typedef struct dvdnav_vobu_s dvdnav_vobu_t
 

Enumerations

enum  DSI_ILVU {
  DSI_ILVU_PRE = 1 << 15 , DSI_ILVU_BLOCK = 1 << 14 , DSI_ILVU_FIRST = 1 << 13 , DSI_ILVU_LAST = 1 << 12 ,
  DSI_ILVU_MASK = 0xf000
}
 

Functions

int64_t dvdnav_convert_time (dvd_time_t *time)
 
dvdnav_status_t dvdnav_get_state (dvdnav_t *self, dvd_state_t *save_state)
 
dvdnav_status_t dvdnav_set_state (dvdnav_t *self, dvd_state_t *save_state)
 

Macro Definition Documentation

◆ MAX_ERR_LEN

#define MAX_ERR_LEN   255

◆ MAX_PATH_LEN

#define MAX_PATH_LEN   PATH_MAX

◆ MSG_OUT

#define MSG_OUT   stderr

◆ printerr

#define printerr (   str)     do { if (this) strncpy(this->err_str, str, MAX_ERR_LEN - 1); } while (0)

◆ printerrf

#define printerrf (   ...)     do { if (this) snprintf(this->err_str, MAX_ERR_LEN, __VA_ARGS__); } while (0)

USEFUL MACROS

Typedef Documentation

◆ dvdnav_vobu_t

typedef struct dvdnav_vobu_s dvdnav_vobu_t

◆ read_cache_t

typedef struct read_cache_s read_cache_t

Enumeration Type Documentation

◆ DSI_ILVU

enum DSI_ILVU
Enumerator
DSI_ILVU_PRE 
DSI_ILVU_BLOCK 
DSI_ILVU_FIRST 
DSI_ILVU_LAST 
DSI_ILVU_MASK 

Function Documentation

◆ dvdnav_convert_time()

int64_t dvdnav_convert_time ( dvd_time_t *  time)

HELPER FUNCTIONS

◆ dvdnav_get_state()

dvdnav_status_t dvdnav_get_state ( dvdnav_t self,
dvd_state_t save_state 
)

◆ dvdnav_set_state()

dvdnav_status_t dvdnav_set_state ( dvdnav_t self,
dvd_state_t save_state 
)