Skip to content

Commit

Permalink
Add java docs for ContrastProcessor constructor.
Browse files Browse the repository at this point in the history
* Add docs for the public constructor for consistency with all the
other frame processors.

PiperOrigin-RevId: 473726586
  • Loading branch information
leonwind authored and marcbaechinger committed Oct 19, 2022
1 parent 75f920b commit 696ef2a
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@

private final GlProgram glProgram;

/**
* Creates a new instance.
*
* @param context The {@link Context}.
* @param contrastEffect The {@link Contrast} to apply to each frame in order.
* @param useHdr Whether input textures come from an HDR source. If {@code true}, colors will be
* in linear RGB BT.2020. If {@code false}, colors will be in gamma RGB BT.709.
* @throws FrameProcessingException If a problem occurs while reading shader files.
*/
public ContrastProcessor(Context context, Contrast contrastEffect, boolean useHdr)
throws FrameProcessingException {
super(useHdr);
Expand Down

0 comments on commit 696ef2a

Please sign in to comment.