[vlc-devel] [PATCH 6/12] text_style: (docs) fix hex channel order

Lyndon Brown jnqnfe at gmail.com
Fri Sep 25 00:30:28 CEST 2020


From: Lyndon Brown <jnqnfe at gmail.com>
Date: Wed, 2 May 2018 03:11:29 +0100
Subject: text_style: (docs) fix hex channel order

Function actually works on #RRGGBB[AA] not #[AA]RRGGBB.

AARRGGBB is the order of color channel bytes (MSB...LSB) in the returned
integer.

diff --git a/include/vlc_text_style.h b/include/vlc_text_style.h
index 1e822b3140..a9d44bfb58 100644
--- a/include/vlc_text_style.h
+++ b/include/vlc_text_style.h
@@ -246,7 +246,7 @@ VLC_API text_segment_t *text_segment_FromRuby( text_segment_ruby_t *p_ruby );
  *
  * @param psz_value An HTML color, which can be either:
  *  - A standard HTML color (red, cyan, ...) as defined in p_html_colors
- *  - An hexadecimal color, of the form [#][AA]RRGGBB
+ *  - An hexadecimal color, of the form [#]RRGGBB[AA]
  *  - A decimal-based color, of the form rgb(RRR,GGG,BBB) or rgba(RRR,GGG,BBB,AAA)
  * @param ok If non-null, true will be stored in this pointer to signal
  *           a successful conversion



More information about the vlc-devel mailing list