Skip to content

Commit

Permalink
Update VideoAttributes.java
Browse files Browse the repository at this point in the history
setting up tune in video attributes
  • Loading branch information
rayacode authored Jan 31, 2024
1 parent 80ac60f commit c648ea5
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions jave-core/src/main/java/ws/schild/jave/encode/VideoAttributes.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public class VideoAttributes implements Serializable {
* direct stream copy.
*/
private String codec = null;

/** The the forced tag/fourcc value for the video stream. */
private String tag = null;
/**
Expand Down Expand Up @@ -89,7 +90,9 @@ public class VideoAttributes implements Serializable {
* The downside is that it is less compatible with other applications.
*/
private boolean faststart = false;


private TuneEnum tune = null;

private X264_PROFILE x264Profile = null;

/**
Expand Down Expand Up @@ -299,7 +302,18 @@ public String toString() {
+ quality
+ ")";
}

/** @return the Tune value */
public Optional<TuneEnum> getTune() {
return Optional.ofNullable(tune);
}
/**
* @param TuneEnum the TuneEnum to set
* @return this instance
*/
public VideoAttributes setTune(TuneEnum tune){
this.tune = tune;
return this;
}
/** @return the x264Profile */
public Optional<X264_PROFILE> getX264Profile() {
return Optional.ofNullable(x264Profile);
Expand Down

0 comments on commit c648ea5

Please sign in to comment.