| 1 | package webpoptions |
| 2 | |
| 3 | const ( |
| 4 | EncodingPresetDefault EncodingPreset = iota |
| 5 | EncodingPresetPicture |
| 6 | EncodingPresetPhoto |
| 7 | EncodingPresetDrawing |
| 8 | EncodingPresetIcon |
| 9 | EncodingPresetText |
| 10 | ) |
| 11 | |
| 12 | type ( |
| 13 | EncodingPreset int |
| 14 | EncodingOptions struct { |
| 15 | // Quality is a number between 0 and 100. Set to 0 for lossless. |
| 16 | Quality int |
| 17 | |
| 18 | // The encoding preset to use. |
| 19 | EncodingPreset |
| 20 | |
| 21 | // Use sharp (and slow) RGB->YUV conversion. |
| 22 | UseSharpYuv bool |
| 23 | } |
| 24 | ) |