Fix indentation
This commit is contained in:
parent
4b88e35371
commit
d052bb8f7f
|
@ -1497,10 +1497,11 @@ static OPJ_BOOL opj_jp2_read_pxfm(opj_jp2_t * jp2,
|
||||||
|
|
||||||
num_channel = (OPJ_UINT16) l_value;
|
num_channel = (OPJ_UINT16) l_value;
|
||||||
|
|
||||||
p_pxfm_header_data+=2;
|
p_pxfm_header_data += 2;
|
||||||
|
|
||||||
if (jp2->numcomps != num_channel) {
|
if (jp2->numcomps != num_channel) {
|
||||||
opj_event_msg(p_manager, EVT_ERROR, "Mismatch between num comps and PXFM number of channel \n");
|
opj_event_msg(p_manager, EVT_ERROR,
|
||||||
|
"Mismatch between num comps and PXFM number of channel \n");
|
||||||
return OPJ_FALSE;
|
return OPJ_FALSE;
|
||||||
}
|
}
|
||||||
jp2->pixel_format = (opj_jp2_pixel_format_t*) opj_malloc(jp2->numcomps * sizeof(
|
jp2->pixel_format = (opj_jp2_pixel_format_t*) opj_malloc(jp2->numcomps * sizeof(
|
||||||
|
@ -1509,18 +1510,21 @@ static OPJ_BOOL opj_jp2_read_pxfm(opj_jp2_t * jp2,
|
||||||
for (i = 0; i < jp2->numcomps; ++i) {
|
for (i = 0; i < jp2->numcomps; ++i) {
|
||||||
opj_read_bytes(p_pxfm_header_data, &l_value,
|
opj_read_bytes(p_pxfm_header_data, &l_value,
|
||||||
2);
|
2);
|
||||||
p_pxfm_header_data+=2;
|
p_pxfm_header_data += 2;
|
||||||
Channel_index = (OPJ_UINT16) l_value;
|
Channel_index = (OPJ_UINT16) l_value;
|
||||||
opj_read_bytes(p_pxfm_header_data, &l_value,
|
opj_read_bytes(p_pxfm_header_data, &l_value,
|
||||||
2);
|
2);
|
||||||
p_pxfm_header_data+=2;
|
p_pxfm_header_data += 2;
|
||||||
if(Channel_index < jp2->numcomps){
|
if (Channel_index < jp2->numcomps) {
|
||||||
jp2->pixel_format[Channel_index].pixel_format_type = ((OPJ_UINT16) l_value) & 0xF000;
|
jp2->pixel_format[Channel_index].pixel_format_type = ((OPJ_UINT16) l_value) &
|
||||||
|
0xF000;
|
||||||
|
|
||||||
if(jp2->pixel_format[Channel_index].pixel_format_type == 0 ||
|
if (jp2->pixel_format[Channel_index].pixel_format_type == 0 ||
|
||||||
jp2->pixel_format[Channel_index].pixel_format_type == 4
|
jp2->pixel_format[Channel_index].pixel_format_type == 4
|
||||||
)
|
) {
|
||||||
jp2->pixel_format[Channel_index].pixel_format_values.mentissa = ((OPJ_UINT16) l_value) & 0x0FFF;
|
jp2->pixel_format[Channel_index].pixel_format_values.mentissa = ((
|
||||||
|
OPJ_UINT16) l_value) & 0x0FFF;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -159,7 +159,7 @@ typedef struct opj_jp2_pixel_format_values_t {
|
||||||
OPJ_UINT8 exponent;
|
OPJ_UINT8 exponent;
|
||||||
OPJ_UINT8 mentissa;
|
OPJ_UINT8 mentissa;
|
||||||
OPJ_UINT8 fractional_bits;
|
OPJ_UINT8 fractional_bits;
|
||||||
}opj_jp2_pixel_format_values_t;
|
} opj_jp2_pixel_format_values_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Non Linear Transform
|
Non Linear Transform
|
||||||
|
|
Loading…
Reference in New Issue