| 1 |
/* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved. |
| 2 |
This software is licensed as OpenSource, under the Apache License, Version 2.0. |
| 3 |
This license is available at: http://opensource.org/licenses/Apache-2.0. */ |
| 4 |
/***********************************************************************/ |
| 5 |
|
| 6 |
/* |
| 7 |
* Encoding support. |
| 8 |
*/ |
| 9 |
|
| 10 |
#ifndef CFFWRITE_ENCODING_H |
| 11 |
#define CFFWRITE_ENCODING_H |
| 12 |
|
| 13 |
#include "cffwrite_share.h" |
| 14 |
|
| 15 |
void cfwEncodingNew(cfwCtx g); |
| 16 |
void cfwEncodingReuse(cfwCtx g); |
| 17 |
void cfwEncodingFree(cfwCtx g); |
| 18 |
|
| 19 |
const unsigned char *cfwEncodingGetPredef(int id, int *cnt); |
| 20 |
|
| 21 |
void cfwEncodingBeg(cfwCtx g); |
| 22 |
void cfwEncodingAddCode(cfwCtx g, unsigned char code); |
| 23 |
void cfwEncodingAddSupCode(cfwCtx g, unsigned char code, SID sid); |
| 24 |
int cfwEncodingEnd(cfwCtx g); |
| 25 |
|
| 26 |
long cfwEncodingFill(cfwCtx g); |
| 27 |
void cfwEncodingWrite(cfwCtx g); |
| 28 |
Offset cfwEncodingGetOffset(cfwCtx g, int iEncoding, Offset base); |
| 29 |
|
| 30 |
#endif /* CFFWRITE_ENCODING_H */ |