Skip to content

Instantly share code, notes, and snippets.

@kjk
Last active October 31, 2019 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjk/b4e44da4a2f903a8d49e6803549cb51d to your computer and use it in GitHub Desktop.
Save kjk/b4e44da4a2f903a8d49e6803549cb51d to your computer and use it in GitHub Desktop.
notes from sumatra mupdf upgrade
fz_add_text => fz_add_text_span
removed symbols from libmupdf.def:
fz_analyze_text
fz_keep_transfer_function
fz_drop_transfer_function
fz_apply_transfer_function
fz_buffer_cat
fz_buffer_printf
fz_buffer_vprintf
fz_clone_context_internal
fz_clone_stream : used in PdfEngine.cpp
fz_clone_text
fz_close : probably fz_drop_stream
How to probably do incbin:
SECTION .data
global main
global main_size
main: incbin "file"
main_size: dd $-main ; dd is 32-bit, dq is 64-bit
Incbin resources:
https://www.devever.net/~hl/incbin
https://github.com/yasm/yasm/wiki/NasmSyntax
https://cs.lmu.edu/~ray/notes/nasmtutorial/
https://asmtutor.com/#lesson1
fz_stream *fz_open_dctd(fz_context *ctx,
fz_stream *chain,
int color_transform,
int l2factor,
fz_stream *jpegtables);
fz_drop_stream(ctx, stm)
functions to test:
new_rendered_fz_pixmap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment