Consistify formatting to simplify checkstyle
The checkstyle script was hastily developed prior to libjpeg-turbo 2.0 beta1, so it has a lot of exceptions and is thus prone to false negatives. This commit eliminates some of those exceptions.
This commit is contained in:
@@ -571,11 +571,10 @@ ycck_cmyk_convert(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
|
|||||||
* RGB565 conversion
|
* RGB565 conversion
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define PACK_SHORT_565_LE(r, g, b) ((((r) << 8) & 0xF800) | \
|
#define PACK_SHORT_565_LE(r, g, b) \
|
||||||
(((g) << 3) & 0x7E0) | ((b) >> 3))
|
((((r) << 8) & 0xF800) | (((g) << 3) & 0x7E0) | ((b) >> 3))
|
||||||
#define PACK_SHORT_565_BE(r, g, b) (((r) & 0xF8) | ((g) >> 5) | \
|
#define PACK_SHORT_565_BE(r, g, b) \
|
||||||
(((g) << 11) & 0xE000) | \
|
(((r) & 0xF8) | ((g) >> 5) | (((g) << 11) & 0xE000) | (((b) << 5) & 0x1F00))
|
||||||
(((b) << 5) & 0x1F00))
|
|
||||||
|
|
||||||
#define PACK_TWO_PIXELS_LE(l, r) ((r << 16) | l)
|
#define PACK_TWO_PIXELS_LE(l, r) ((r << 16) | l)
|
||||||
#define PACK_TWO_PIXELS_BE(l, r) ((l << 16) | r)
|
#define PACK_TWO_PIXELS_BE(l, r) ((l << 16) | r)
|
||||||
|
|||||||
@@ -392,11 +392,10 @@ h2v2_merged_upsample(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
|
|||||||
* RGB565 conversion
|
* RGB565 conversion
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define PACK_SHORT_565_LE(r, g, b) ((((r) << 8) & 0xF800) | \
|
#define PACK_SHORT_565_LE(r, g, b) \
|
||||||
(((g) << 3) & 0x7E0) | ((b) >> 3))
|
((((r) << 8) & 0xF800) | (((g) << 3) & 0x7E0) | ((b) >> 3))
|
||||||
#define PACK_SHORT_565_BE(r, g, b) (((r) & 0xF8) | ((g) >> 5) | \
|
#define PACK_SHORT_565_BE(r, g, b) \
|
||||||
(((g) << 11) & 0xE000) | \
|
(((r) & 0xF8) | ((g) >> 5) | (((g) << 11) & 0xE000) | (((b) << 5) & 0x1F00))
|
||||||
(((b) << 5) & 0x1F00))
|
|
||||||
|
|
||||||
#define PACK_TWO_PIXELS_LE(l, r) ((r << 16) | l)
|
#define PACK_TWO_PIXELS_LE(l, r) ((r << 16) | l)
|
||||||
#define PACK_TWO_PIXELS_BE(l, r) ((l << 16) | r)
|
#define PACK_TWO_PIXELS_BE(l, r) ((l << 16) | r)
|
||||||
|
|||||||
7
rdppm.c
7
rdppm.c
@@ -659,11 +659,12 @@ start_input_ppm(j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
|
|||||||
if (maxval > 255) {
|
if (maxval > 255) {
|
||||||
source->pub.get_pixel_rows = get_word_rgb_row;
|
source->pub.get_pixel_rows = get_word_rgb_row;
|
||||||
} else if (maxval == MAXJSAMPLE && sizeof(JSAMPLE) == sizeof(U_CHAR) &&
|
} else if (maxval == MAXJSAMPLE && sizeof(JSAMPLE) == sizeof(U_CHAR) &&
|
||||||
(cinfo->in_color_space == JCS_EXT_RGB
|
|
||||||
#if RGB_RED == 0 && RGB_GREEN == 1 && RGB_BLUE == 2 && RGB_PIXELSIZE == 3
|
#if RGB_RED == 0 && RGB_GREEN == 1 && RGB_BLUE == 2 && RGB_PIXELSIZE == 3
|
||||||
|| cinfo->in_color_space == JCS_RGB
|
(cinfo->in_color_space == JCS_EXT_RGB ||
|
||||||
|
cinfo->in_color_space == JCS_RGB)) {
|
||||||
|
#else
|
||||||
|
cinfo->in_color_space == JCS_EXT_RGB) {
|
||||||
#endif
|
#endif
|
||||||
)) {
|
|
||||||
source->pub.get_pixel_rows = get_raw_row;
|
source->pub.get_pixel_rows = get_raw_row;
|
||||||
use_raw_buffer = TRUE;
|
use_raw_buffer = TRUE;
|
||||||
need_rescale = FALSE;
|
need_rescale = FALSE;
|
||||||
|
|||||||
@@ -344,7 +344,8 @@ start_input_tga(j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
|
|||||||
unsigned int width, height, maplen;
|
unsigned int width, height, maplen;
|
||||||
boolean is_bottom_up;
|
boolean is_bottom_up;
|
||||||
|
|
||||||
#define GET_2B(offset) ((unsigned int)UCH(targaheader[offset]) + \
|
#define GET_2B(offset) \
|
||||||
|
((unsigned int)UCH(targaheader[offset]) + \
|
||||||
(((unsigned int)UCH(targaheader[offset + 1])) << 8))
|
(((unsigned int)UCH(targaheader[offset + 1])) << 8))
|
||||||
|
|
||||||
if (!ReadOK(source->pub.input_file, targaheader, 18))
|
if (!ReadOK(source->pub.input_file, targaheader, 18))
|
||||||
|
|||||||
@@ -101,7 +101,6 @@ broader range of users and developers.
|
|||||||
#-->make DESTDIR=$RPM_BUILD_ROOT
|
#-->make DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}
|
/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}
|
||||||
@@ -218,4 +217,5 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%dir %{_javadir}
|
%dir %{_javadir}
|
||||||
%{_javadir}/turbojpeg.jar
|
%{_javadir}/turbojpeg.jar
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
@@ -1405,7 +1405,7 @@ asm_function jsimd_idct_4x4_neon
|
|||||||
st1 {v27.b}[7], [TMP4], 1
|
st1 {v27.b}[7], [TMP4], 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* vpop {v8.4h - v15.4h} ;not available */
|
/* vpop {v8.4h - v15.4h} (not available) */
|
||||||
ld1 {v8.8b, v9.8b, v10.8b, v11.8b}, [sp], 32
|
ld1 {v8.8b, v9.8b, v10.8b, v11.8b}, [sp], 32
|
||||||
ld1 {v12.8b, v13.8b, v14.8b, v15.8b}, [sp], 32
|
ld1 {v12.8b, v13.8b, v14.8b, v15.8b}, [sp], 32
|
||||||
blr x30
|
blr x30
|
||||||
@@ -1473,7 +1473,7 @@ asm_function jsimd_idct_2x2_neon
|
|||||||
instruction ensures that those bits are set to zero. */
|
instruction ensures that those bits are set to zero. */
|
||||||
uxtw x3, w3
|
uxtw x3, w3
|
||||||
|
|
||||||
/* vpush {v8.4h - v15.4h} ; not available */
|
/* vpush {v8.4h - v15.4h} (not available) */
|
||||||
sub sp, sp, 64
|
sub sp, sp, 64
|
||||||
mov x9, sp
|
mov x9, sp
|
||||||
|
|
||||||
|
|||||||
@@ -47,11 +47,13 @@
|
|||||||
((uint64_t)(uint8_t)f << 16) | \
|
((uint64_t)(uint8_t)f << 16) | \
|
||||||
((uint64_t)(uint8_t)g << 8) | \
|
((uint64_t)(uint8_t)g << 8) | \
|
||||||
((uint64_t)(uint8_t)h))
|
((uint64_t)(uint8_t)h))
|
||||||
#define _uint64_set_pi16(a, b, c, d) (((uint64_t)(uint16_t)a << 48) | \
|
#define _uint64_set_pi16(a, b, c, d) \
|
||||||
|
(((uint64_t)(uint16_t)a << 48) | \
|
||||||
((uint64_t)(uint16_t)b << 32) | \
|
((uint64_t)(uint16_t)b << 32) | \
|
||||||
((uint64_t)(uint16_t)c << 16) | \
|
((uint64_t)(uint16_t)c << 16) | \
|
||||||
((uint64_t)(uint16_t)d))
|
((uint64_t)(uint16_t)d))
|
||||||
#define _uint64_set_pi32(a, b) (((uint64_t)(uint32_t)a << 32) | \
|
#define _uint64_set_pi32(a, b) \
|
||||||
|
(((uint64_t)(uint32_t)a << 32) | \
|
||||||
((uint64_t)(uint32_t)b))
|
((uint64_t)(uint32_t)b))
|
||||||
|
|
||||||
#define get_const_value(index) (*(__m64 *)&const_value[index])
|
#define get_const_value(index) (*(__m64 *)&const_value[index])
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,10 @@
|
|||||||
// This file generates the include file for the assembly
|
/*
|
||||||
// implementations by abusing the C preprocessor.
|
* This file generates the include file for the assembly
|
||||||
//
|
* implementations by abusing the C preprocessor.
|
||||||
// Note: Some things are manually defined as they need to
|
*
|
||||||
// be mapped to NASM types.
|
* Note: Some things are manually defined as they need to
|
||||||
|
* be mapped to NASM types.
|
||||||
|
*/
|
||||||
|
|
||||||
;
|
;
|
||||||
; Automatically generated include file from jsimdcfg.inc.h
|
; Automatically generated include file from jsimdcfg.inc.h
|
||||||
|
|||||||
9
wrppm.c
9
wrppm.c
@@ -5,7 +5,7 @@
|
|||||||
* Copyright (C) 1991-1996, Thomas G. Lane.
|
* Copyright (C) 1991-1996, Thomas G. Lane.
|
||||||
* Modified 2009 by Guido Vollbeding.
|
* Modified 2009 by Guido Vollbeding.
|
||||||
* libjpeg-turbo Modifications:
|
* libjpeg-turbo Modifications:
|
||||||
* Copyright (C) 2017, 2019, D. R. Commander.
|
* Copyright (C) 2017, 2019-2020, D. R. Commander.
|
||||||
* For conditions of distribution and use, see the accompanying README.ijg
|
* For conditions of distribution and use, see the accompanying README.ijg
|
||||||
* file.
|
* file.
|
||||||
*
|
*
|
||||||
@@ -326,11 +326,12 @@ jinit_write_ppm(j_decompress_ptr cinfo)
|
|||||||
|
|
||||||
if (cinfo->quantize_colors || BITS_IN_JSAMPLE != 8 ||
|
if (cinfo->quantize_colors || BITS_IN_JSAMPLE != 8 ||
|
||||||
sizeof(JSAMPLE) != sizeof(char) ||
|
sizeof(JSAMPLE) != sizeof(char) ||
|
||||||
(cinfo->out_color_space != JCS_EXT_RGB
|
|
||||||
#if RGB_RED == 0 && RGB_GREEN == 1 && RGB_BLUE == 2 && RGB_PIXELSIZE == 3
|
#if RGB_RED == 0 && RGB_GREEN == 1 && RGB_BLUE == 2 && RGB_PIXELSIZE == 3
|
||||||
&& cinfo->out_color_space != JCS_RGB
|
(cinfo->out_color_space != JCS_EXT_RGB &&
|
||||||
|
cinfo->out_color_space != JCS_RGB)) {
|
||||||
|
#else
|
||||||
|
cinfo->out_color_space != JCS_EXT_RGB) {
|
||||||
#endif
|
#endif
|
||||||
)) {
|
|
||||||
/* When quantizing, we need an output buffer for colormap indexes
|
/* When quantizing, we need an output buffer for colormap indexes
|
||||||
* that's separate from the physical I/O buffer. We also need a
|
* that's separate from the physical I/O buffer. We also need a
|
||||||
* separate buffer if pixel format translation must take place.
|
* separate buffer if pixel format translation must take place.
|
||||||
|
|||||||
Reference in New Issue
Block a user