+#define FREE_PICTURE 0 /* picture is free and not allocated */
+#define RESERVED_PICTURE 1 /* picture is allocated and reserved */
+#define RESERVED_DATED_PICTURE 2 /* picture is waiting for DisplayPicture */
+#define RESERVED_DISP_PICTURE 3 /* picture is waiting for a DatePixture */
+#define READY_PICTURE 4 /* picture is ready for display */
+#define DISPLAYED_PICTURE 5/* picture has been displayed but is linked */
+#define DESTROYED_PICTURE 6 /* picture is allocated but no more used */
+
+/* Aspect ratios (ISO/IEC 13818-2 section 6.3.3, table 6-3) */
+#define AR_SQUARE_PICTURE 1 /* square pixels */
+#define AR_3_4_PICTURE 2 /* 3:4 picture (TV) */
+#define AR_16_9_PICTURE 3 /* 16:9 picture (wide screen) */
+#define AR_221_1_PICTURE 4 /* 2.21:1 picture (movie) */
+
+/*****************************************************************************
+ * subpicture_t: video sub picture unit
+ *****************************************************************************
+ * Any sub picture unit destined to be displayed by a video output thread should
+ * be stored in this structure from it's creation to it's effective display.
+ * Subtitle type and flags should only be modified by the output thread. Note
+ * that an empty subtitle MUST have its flags set to 0.
+ *****************************************************************************/
+typedef struct subpicture_s
+{
+ /* Type and flags - should NOT be modified except by the vout thread */
+ int i_type; /* type */
+ int i_status; /* flags */
+ int i_size; /* data size */
+ struct subpicture_s * p_next; /* next SPU to be displayed */
+
+ /* Other properties */
+ mtime_t begin_date; /* beginning of display date */
+ mtime_t end_date; /* end of display date */
+
+ /* Display properties - these properties are only indicative and may be
+ * changed by the video output thread, or simply ignored depending of the
+ * subpicture type. */
+ int i_x; /* offset from alignment position */
+ int i_y; /* offset from alignment position */
+ int i_width; /* picture width */
+ int i_height; /* picture height */
+ int i_horizontal_align; /* horizontal alignment */
+ int i_vertical_align; /* vertical alignment */
+
+ /* Additionnal properties depending of the subpicture type */
+ union
+ {
+ /* Text subpictures properties - text is stored in data area, in ASCIIZ
+ * format */
+ struct
+ {
+ p_vout_font_t p_font; /* font, NULL for default */
+ int i_style; /* text style */
+ u32 i_char_color; /* character color */
+ u32 i_border_color; /* border color */
+ u32 i_bg_color; /* background color */
+ } text;
+ /* DVD subpicture units properties */
+ struct
+ {
+ int i_offset[2]; /* byte offsets to data */
+ } spu;
+ } type;