blob: 8ff55b5ded9ad3df746e77c544b3183a72b0028a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* colormap.h
*
* Copyright (c) 2003-2016 HandBrake Team
* This file is part of the HandBrake source code
* Homepage: <http://handbrake.fr/>.
* It may be used under the terms of the GNU General Public License v2.
* For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
#ifndef HB_COLORMAP_H
#define HB_COLORMAP_H
#define HB_RGB_TO_BGR(c) (((c & 0xff0000) >> 16) | \
((c & 0x00ff00) ) | \
((c & 0x0000ff) << 16))
#define HB_BGR_TO_RGB(c) HB_RGB_TO_BGR(c)
uint32_t hb_rgb_lookup_by_name(const char *color);
#endif // HB_COLORMAP_H
|