Skip to content

Commit d1a98f5

Browse files
Add encoding quality option to video processing functions
1 parent 740f76e commit d1a98f5

27 files changed

+319
-76
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.simform.videooperations
2+
3+
4+
enum class EncodingQuality {
5+
FASTEST, // Lowest quality, fastest processing
6+
BALANCED, // Good compromise
7+
HIGHEST; // Best quality, slowest processing
8+
9+
companion object {
10+
fun getQualityString(quality: EncodingQuality): String {
11+
return when (quality) {
12+
FASTEST -> "ultrafast"
13+
BALANCED -> "medium"
14+
HIGHEST -> "slow"
15+
}
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)