#ifndef dvd_commons_h
#define dvd_commons_h

#include <stdint.h>

#define DVD_LB_SIZE 2048

typedef struct
{
  char hour; // hh
  char min;  // mm
  char sec;  // ss
  char frameinfo; // frame
  char fps;
} dvd_time_t;

typedef uint8_t dvd_cmd_t[8];

typedef struct
{
  uint8_t a;
  uint8_t y;
  uint8_t v;
  uint8_t u;
} dvd_color_t;

int dvd_time_toRtc(const dvd_time_t* t);

#endif
