mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-06-05 22:09:39 +02:00
Skeleton for JPEG2000 support
This commit is contained in:
4
Makefile
4
Makefile
@ -7,8 +7,8 @@ DOC = cpdfunicodedata cpdferror cpdfdebug cpdfjson cpdfstrftime cpdfcoord \
|
|||||||
cpdfembed cpdffont cpdftype cpdfaddtext cpdfpad cpdfocg \
|
cpdfembed cpdffont cpdftype cpdfaddtext cpdfpad cpdfocg \
|
||||||
cpdfsqueeze cpdfdraft cpdfspot cpdfpagelabels cpdfcreate cpdfannot \
|
cpdfsqueeze cpdfdraft cpdfspot cpdfpagelabels cpdfcreate cpdfannot \
|
||||||
cpdfxobject cpdfimpose cpdfchop cpdftweak cpdftexttopdf cpdftoc \
|
cpdfxobject cpdfimpose cpdfchop cpdftweak cpdftexttopdf cpdftoc \
|
||||||
cpdfjpeg cpdfpng cpdfimage cpdfdraw cpdfcomposition cpdfshape \
|
cpdfjpeg cpdfjpeg2000 cpdfpng cpdfimage cpdfdraw cpdfcomposition \
|
||||||
cpdfcolours cpdfdrawcontrol cpdfcommand
|
cpdfshape cpdfcolours cpdfdrawcontrol cpdfcommand
|
||||||
|
|
||||||
MODS = $(NONDOC) $(DOC)
|
MODS = $(NONDOC) $(DOC)
|
||||||
|
|
||||||
|
5
cpdfjpeg2000.ml
Normal file
5
cpdfjpeg2000.ml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
open Pdfutil
|
||||||
|
open Pdfio
|
||||||
|
|
||||||
|
(* Return the width and height of a JPEG2000 image, per Michael Petrov's C version. *)
|
||||||
|
let jpeg2000_dimensions bs = (0, 0)
|
4
cpdfjpeg2000.mli
Normal file
4
cpdfjpeg2000.mli
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
(** JPEG2000 Utilities *)
|
||||||
|
|
||||||
|
(** Return the width and height of a JPEG2000 stream *)
|
||||||
|
val jpeg2000_dimensions : Pdfio.bytes -> int * int
|
Reference in New Issue
Block a user