diff options
author | DRC <dcommander@users.sourceforge.net> | 2011-12-19 02:21:03 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2011-12-19 02:21:03 +0000 |
commit | 67ce3b2352fe1f7511edbfed74ec6960e41e97dc (patch) | |
tree | 2dd45bc176dbd84036eb777db076ed2a086d57c6 /jcparam.c | |
parent | ab64b62c6bc3e2d67834221017a574f90ca86c50 (diff) |
Added new alpha channel colorspace constants/pixel formats, so applications can specify that they need the unused byte in a 4-component RGB output buffer set to 0xFF when decompressing.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@732 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'jcparam.c')
-rw-r--r-- | jcparam.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -3,7 +3,7 @@ * * Copyright (C) 1991-1998, Thomas G. Lane. * Modified 2003-2008 by Guido Vollbeding. - * Copyright (C) 2009-2010, D. R. Commander. + * Copyright (C) 2009-2011, D. R. Commander. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * @@ -398,6 +398,10 @@ jpeg_default_colorspace (j_compress_ptr cinfo) case JCS_EXT_BGRX: case JCS_EXT_XBGR: case JCS_EXT_XRGB: + case JCS_EXT_RGBA: + case JCS_EXT_BGRA: + case JCS_EXT_ABGR: + case JCS_EXT_ARGB: jpeg_set_colorspace(cinfo, JCS_YCbCr); break; case JCS_YCbCr: |