File: nosubst.h

package info (click to toggle)
minidjvu 0.8.svn.2010.05.06%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 2,372 kB
  • ctags: 1,082
  • sloc: sh: 9,230; ansic: 5,788; cpp: 2,400; makefile: 259; python: 42
file content (18 lines) | stat: -rw-r--r-- 770 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * nosubst.h - guessing what chunks are not letters and should not be changed
 */

/*
 * This is the algorithm that mark bitmaps that cannot have a substitution.
 * 
 * First, it looks what blits are suspiciously big. They will be no-subst.
 * A blit with a bounding box that intersects a no-subst box will also be no-subst.
 * And so no-subst infection is spread until no more new no-substs are found.
 * 
 * You may ask, why this \expandafter when the splitter could simply mark results
 * of splitting suspiciously big bitmaps as no-subst?
 * Answer: this algorithm works even when we've read a DjVu page and didn't
 * actually render it. Well, it works at least with cjb2-encoded files.
 */

MDJVU_FUNCTION void mdjvu_calculate_not_a_letter_flags(mdjvu_image_t);