[vlc-commits] vlc_es: add #define for palette size
Francois Cartegnie
git at videolan.org
Fri Apr 18 21:08:37 CEST 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Apr 18 20:16:58 2014 +0200| [cb7b1eef65dc475d97057e680c3c0a959ac448e9] | committer: Francois Cartegnie
vlc_es: add #define for palette size
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cb7b1eef65dc475d97057e680c3c0a959ac448e9
---
include/vlc_es.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/vlc_es.h b/include/vlc_es.h
index b7cc4a9..d6c603e 100644
--- a/include/vlc_es.h
+++ b/include/vlc_es.h
@@ -37,10 +37,12 @@
* \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 */
};
/**
More information about the vlc-commits
mailing list