8000 Allow build libjpeg on Apple platforms and Emscripten by zeriyoshi · Pull Request #115 · google/jpegli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Allow build libjpeg on Apple platforms and Emscripten #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zeriyoshi
Copy link

Description

Currently libjpeg (libjpeg.dylib) cannot be built on Apple platforms. This becomes an issue when trying to incorporate it into applications on Apple platforms, so we will address this properly to make it buildable.

Also, with this change, it will be possible to build properly with Emscripten, so we will not exclude it.

Check:

$ mkdir "build"
$ (cd "build" && cmake .. -DJPEGXL_ENABLE_JPEGLI_LIBJPEG=ON && make -j"$(sysctl -n hw.logicalcpu)")
$ nm -gU ./build/lib/jpegli/libjpeg.62.dylib 
000000000000127c T _jpeg_CreateCompress
0000000000001224 T _jpeg_CreateDecompress
0000000000001214 T _jpeg_abort
00000000000012d8 T _jpeg_abort_compress
0000000000001274 T _jpeg_abort_decompress
00000000000012a0 T _jpeg_add_quant_table
0000000000001220 T _jpeg_alloc_huff_table
000000000000121c T _jpeg_alloc_quant_table
0000000000001264 T _jpeg_calc_output_dimensions
0000000000001260 T _jpeg_consume_input
00000000000012ac T _jpeg_copy_critical_parameters
0000000000001240 T _jpeg_crop_scanline
000000000000128c T _jpeg_default_colorspace
0000000000001218 T _jpeg_destroy
00000000000012dc T _jpeg_destroy_compress
0000000000001278 T _jpeg_destroy_decompress
00000000000012d4 T _jpeg_finish_compress
0000000000001244 T _jpeg_finish_decompress
0000000000001258 T _jpeg_finish_output
0000000000001250 T _jpeg_has_multiple_scans
000000000000125c T _jpeg_input_complete
0000000000001284 T _jpeg_mem_dest
000000000000122c T _jpeg_mem_src
00000000000012e4 T _jpeg_new_colormap
000000000000129c T _jpeg_quality_scaling
000000000000124c T _jpeg_read_coefficients
0000000000001230 T _jpeg_read_header
0000000000001270 T _jpeg_read_icc_profile
0000000000001248 T _jpeg_read_raw_data
0000000000001238 T _jpeg_read_scanlines
00000000000012e0 T _jpeg_resync_to_restart
0000000000001268 T _jpeg_save_markers
0000000000001290 T _jpeg_set_colorspace
0000000000001288 T _jpeg_set_defaults
0000000000001298 T _jpeg_set_linear_quality
000000000000126c T _jpeg_set_marker_processor
0000000000001294 T _jpeg_set_quality
00000000000012a4 T _jpeg_simple_progression
000000000000123c T _jpeg_skip_scanlines
00000000000012c0 T _jpeg_start_compress
0000000000001234 T _jpeg_start_decompress
0000000000001254 T _jpeg_start_output
0000000000001210 T _jpeg_std_error
0000000000001280 T _jpeg_stdio_dest
0000000000001228 T _jpeg_stdio_src
00000000000012a8 T _jpeg_suppress_tables
00000000000012d0 T _jpeg_write_coefficients
00000000000012bc T _jpeg_write_icc_profile
00000000000012b4 T _jpeg_write_m_byte
00000000000012b0 T _jpeg_write_m_header
00000000000012b8 T _jpeg_write_marker
00000000000012cc T _jpeg_write_raw_data
00000000000012c8 T _jpeg_write_scanlines
00000000000012c4 T _jpeg_write_tables
0000000000014708 T _jpegli_CreateCompress
000000000000c498 T _jpegli_CreateDecompress
000000000000af38 T _jpegli_abort
0000000000016380 T _jpegli_abort_compress
000000000000c690 T _jpegli_abort_decompress
0000000000015098 T _jpegli_add_quant_table
000000000000b0a0 T _jpegli_alloc_huff_table
000000000000b078 T _jpegli_alloc_quant_table
000000000000b0c8 T _jpegli_bytes_per_sample
000000000000cb2c T _jpegli_calc_output_dimensions
000000000000c71c T _jpegli_consume_input
0000000000015210 T _jpegli_copy_critical_parameters
000000000000d244 T _jpegli_crop_scanline
00000000000149b8 T _jpegli_default_colorspace
000000000000af7c T _jpegli_destroy
0000000000016384 T _jpegli_destroy_compress
000000000000c68c T _jpegli_destroy_decompress
000000000001515c T _jpegli_enable_adaptive_quantization
00000000000160b8 T _jpegli_finish_compress
000000000000d5f8 T _jpegli_finish_decompress
000000000000d060 T _jpegli_finish_output
000000000000cc84 T _jpegli_has_multiple_scans
000000000000ccb0 T _jpegli_input_complete
00000000000107cc T _jpegli_mem_dest
000000000002ae48 T _jpegli_mem_src
000000000000d6f8 T _jpegli_new_colormap
0000000000015034 T _jpegli_quality_scaling
000000000001267c T _jpegli_quality_to_distance
000000000000d420 T _jpegli_read_coefficients
000000000000c8f0 T _jpegli_read_header
000000000000c96c T _jpegli_read_icc_profile
000000000000d2e0 T _jpegli_read_raw_data
000000000000d0dc T _jpegli_read_scanlines
000000000000d68c T _jpegli_resync_to_restart
000000000000c694 T _jpegli_save_markers
0000000000014850 T _jpegli_set_cicp_transfer_function
0000000000014c1c T _jpegli_set_colorspace
000000000001487c T _jpegli_set_defaults
0000000000014e5c T _jpegli_set_distance
00000000000151bc T _jpegli_set_input_format
0000000000014f10 T _jpegli_set_linear_quality
000000000000c6c8 T _jpegli_set_marker_processor
000000000000d758 T _jpegli_set_output_format
0000000000014be8 T _jpegli_set_progressive_level
0000000000014edc T _jpegli_set_psnr
0000000000014aec T _jpegli_set_quality
0000000000014824 T _jpegli_set_xyb_mode
0000000000015190 T _jpegli_simple_progression
000000000000d238 T _jpegli_skip_scanlines
0000000000015498 T _jpegli_start_compress
000000000000ccbc T _jpegli_start_decompress
000000000000cf8c T _jpegli_start_output
000000000001d0b0 T _jpegli_std_error
0000000000010638 T _jpegli_stdio_dest
000000000002aee4 T _jpegli_stdio_src
0000000000014144 T _jpegli_suppress_tables
000000000001506c T _jpegli_use_standard_quant_tables
00000000000154e8 T _jpegli_write_coefficients
0000000000015800 T _jpegli_write_icc_profile
0000000000015798 T _jpegli_write_m_byte
00000000000156cc T _jpegli_write_m_header
00000000000157c0 T _jpegli_write_marker
0000000000015d00 T _jpegli_write_raw_data
0000000000015a18 T _jpegli_write_scanlines
0000000000015544 T _jpegli_write_tables

Pull Request Checklist

  • CLA Signed: Have you signed the Contributor License Agreement (individual or corporate, as appropriate)? Only contributions from signed contributors can be accepted.
  • Authors: Have you considered adding your name to the AUTHORS file?
  • Code Style: Have you ensured your code adheres to the project's coding style guidelines? You can use ./ci.sh lint for automatic code formatting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0