]> git.sesse.net Git - vlc/blobdiff - include/vlc_es.h
l10n: Traditional Chinese update
[vlc] / include / vlc_es.h
index 7bdd1fc2c0dbc4abcea494c3df4e57ad438d2033..5790d2343b22322d1f5e4965697dbc3d5a0e378c 100644 (file)
@@ -25,6 +25,7 @@
 #define VLC_ES_H 1
 
 #include <vlc_fourcc.h>
+#include <vlc_text_style.h>
 
 /**
  * \file
  * \see video_format_t
  * \see subs_format_t
  */
+#define VIDEO_PALETTE_COLORS_MAX 256
+
 struct video_palette_t
 {
     int i_entries;      /**< to keep the compatibility with libavcodec's palette */
-    uint8_t palette[256][4];                   /**< 4-byte RGBA/YUVA palette */
+    uint8_t palette[VIDEO_PALETTE_COLORS_MAX][4];  /**< 4-byte RGBA/YUVA palette */
 };
 
 /**
@@ -178,7 +181,7 @@ typedef enum video_orientation_t
 
 typedef enum video_transform_t
 {
-    TRANSFORM_IDENTI       = ORIENT_NORMAL,
+    TRANSFORM_IDENTITY       = ORIENT_NORMAL,
     TRANSFORM_HFLIP          = ORIENT_HFLIPPED,
     TRANSFORM_VFLIP          = ORIENT_VFLIPPED,
     TRANSFORM_R180           = ORIENT_ROTATED_180,
@@ -282,7 +285,7 @@ VLC_API void video_format_ScaleCropAr( video_format_t *, const video_format_t *
  * This function "normalizes" the formats orientation, by switching the a/r according to the orientation,
  * producing a format whose orientation is ORIENT_NORMAL. It makes a shallow copy (pallette is not alloc'ed).
  */
-VLC_API void video_format_ApplyRotation(const video_format_t * restrict in, video_format_t * restrict out);
+VLC_API void video_format_ApplyRotation(video_format_t *restrict out, const video_format_t *restrict in);
 
 /**
  * This function applies the transform operation to fmt.
@@ -356,6 +359,8 @@ struct subs_format_t
         int i_magazine;
         int i_page;
     } teletext;
+
+    text_style_t *p_style; /* Default styles to use */
 };
 
 /**
@@ -417,11 +422,12 @@ struct es_format_t
 enum es_format_category_e
 {
     UNKNOWN_ES = 0x00,
-    VIDEO_ES   = 0x01,
-    AUDIO_ES   = 0x02,
-    SPU_ES     = 0x03,
-    NAV_ES     = 0x04,
+    VIDEO_ES,
+    AUDIO_ES,
+    SPU_ES,
+    NAV_ES,
 };
+#define ES_CATEGORY_COUNT (NAV_ES + 1)
 
 /**
  * This function will fill all RGB shift from RGB masks.