Skip to content

Commit

Permalink
Clarify documentation on lossless RGB
Browse files Browse the repository at this point in the history
  • Loading branch information
BioTurboNick authored Jun 6, 2022
1 parent c3b6729 commit dfd5622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/writing.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Some example values for the `encoder_options` keyword argument are:

## Lossless Encoding
### Lossless RGB
If lossless encoding of `RGB{N0f8}` is required, _true_ lossless requires using `codec_name = "libx264rgb"`, to avoid the lossy RGB->YUV420 conversion, and `crf=0`.
If lossless encoding of `RGB{N0f8}` is required, _true_ lossless requires passing `codec_name = "libx264rgb"` to the function to avoid the lossy RGB->YUV420 conversion, as well as adding `crf=0` in `encoder_options`.

### Lossless Grayscale
If lossless encoding of `Gray{N0f8}` or `UInt8` is required, `crf=0` should be set, as well as `color_range=2` to ensure full 8-bit pixel color representation. i.e.
Expand Down

0 comments on commit dfd5622

Please sign in to comment.