Skip to content

Commit

Permalink
-added docStrings
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Seitz <[email protected]>
  • Loading branch information
fs3itz committed Jan 31, 2024
1 parent 23cae4e commit 9d64f18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DifferenceGenerator/src/main/kotlin/AcceptedCodecs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class AcceptedCodecs {
"FFV1 YUV 422 8-bit",
)

/**
* Checks if the given file is in an accepted codec.
*/
public fun checkFile(path: String): Boolean {
val grabber = FFmpegFrameGrabber(path)
grabber.start()
Expand Down
3 changes: 3 additions & 0 deletions GUI/src/main/kotlin/ui/screens/SelectVideoScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ fun SelectVideoScreen(state: MutableState<AppState>) {
}
}

/**
* Checks if the selected file is in the correct format and codec.
*/
private fun checkVideoFormatAndCodec(
selectedFilePath: String,
state: MutableState<AppState>,
Expand Down

0 comments on commit 9d64f18

Please sign in to comment.