Skip to content

Commit

Permalink
num_layers
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Apr 20, 2024
1 parent 2ab5c91 commit 9e453ac
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ jobs:
- name: Checkout Pillow
uses: actions/checkout@v4

- name: Checkout cached dependencies
uses: actions/checkout@v4
with:
repository: python-pillow/pillow-depends
path: winbuild\depends

# sets env: pythonLocation
- name: Set up Python
uses: actions/setup-python@v5
Expand Down
Binary file not shown.
Binary file added winbuild/build/depends/zlib-1.2.13.tar.gz
Binary file not shown.
2 changes: 0 additions & 2 deletions winbuild/build/src/openjpeg-2.5.2/src/lib/openjp2/openjpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,6 @@ OPJ_BOOL OPJ_CALLCONV opj_decode_tile_data(opj_codec_t *p_codec,
opj_stream_t *p_stream
)
{
printf("torchwood\n");
if (p_codec && p_data && p_stream) {
opj_codec_private_t * l_codec = (opj_codec_private_t *) p_codec;
opj_stream_private_t * l_stream = (opj_stream_private_t *) p_stream;
Expand All @@ -602,7 +601,6 @@ OPJ_BOOL OPJ_CALLCONV opj_decode_tile_data(opj_codec_t *p_codec,
return OPJ_FALSE;
}

printf("a\n");
return l_codec->m_codec_data.m_decompression.opj_decode_tile_data(
l_codec->m_codec,
p_tile_index,
Expand Down
4 changes: 4 additions & 0 deletions winbuild/build/src/openjpeg-2.5.2/src/lib/openjp2/t2.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ OPJ_BOOL opj_t2_decode_packets(opj_tcd_t* tcd,
}
memset(first_pass_failed, OPJ_TRUE, l_image->numcomps * sizeof(OPJ_BOOL));

printf("start while %d %d\n", l_tcp->num_layers_to_decode, (int)time(NULL));
while (opj_pi_next(l_current_pi)) {
OPJ_BOOL skip_packet = OPJ_FALSE;
JAS_FPRINTF(stderr,
Expand Down Expand Up @@ -511,6 +512,7 @@ OPJ_BOOL opj_t2_decode_packets(opj_tcd_t* tcd,
&l_nb_bytes_read, p_max_len, l_pack_info, p_manager)) {
opj_pi_destroy(l_pi, l_nb_pocs);
opj_free(first_pass_failed);
printf("return\n");
return OPJ_FALSE;
}

Expand All @@ -523,6 +525,7 @@ OPJ_BOOL opj_t2_decode_packets(opj_tcd_t* tcd,
&l_nb_bytes_read, p_max_len, l_pack_info, p_manager)) {
opj_pi_destroy(l_pi, l_nb_pocs);
opj_free(first_pass_failed);
printf("return2\n");
return OPJ_FALSE;
}
}
Expand Down Expand Up @@ -571,6 +574,7 @@ OPJ_BOOL opj_t2_decode_packets(opj_tcd_t* tcd,

opj_free(first_pass_failed);
}
printf("end while %d\n", (int)time(NULL));
/* INDEX >> */
#ifdef TODO_MSD
if
Expand Down

0 comments on commit 9e453ac

Please sign in to comment.