Skip to content

Commit

Permalink
refactor: use lower camel case for variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
rickysixx committed Sep 13, 2024
1 parent 0de92d6 commit 5270108
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ import org.jellyfin.apiclient.model.dlna.SubtitleProfile
import timber.log.Timber

object ProfileHelper {
private val MediaTest by lazy { MediaCodecCapabilitiesTest() }
private val mediaTest by lazy { MediaCodecCapabilitiesTest() }

val deviceAV1CodecProfile by lazy {
CodecProfile().apply {
type = CodecType.Video
codec = Codec.Video.AV1

conditions = when {
!MediaTest.supportsAV1() -> {
!mediaTest.supportsAV1() -> {
// The following condition is a method to exclude all AV1
Timber.i("*** Does NOT support AV1")
arrayOf(
Expand All @@ -33,7 +33,7 @@ object ProfileHelper {
)
)
}
!MediaTest.supportsAV1Main10() -> {
!mediaTest.supportsAV1Main10() -> {
Timber.i("*** Does NOT support AV1 10 bit")
arrayOf(
ProfileCondition(
Expand All @@ -59,11 +59,11 @@ object ProfileHelper {
}

val supportsAVC by lazy {
MediaTest.supportsAVC()
mediaTest.supportsAVC()
}

val supportsAVCHigh10 by lazy {
MediaTest.supportsAVCHigh10()
mediaTest.supportsAVCHigh10()
}

val deviceAVCCodecProfile by lazy {
Expand Down Expand Up @@ -128,7 +128,7 @@ object ProfileHelper {
ProfileCondition(
ProfileConditionType.LessThanEqual,
ProfileConditionValue.VideoLevel,
MediaTest.getAVCMainLevel()
mediaTest.getAVCMainLevel()
)
)
})
Expand All @@ -150,7 +150,7 @@ object ProfileHelper {
ProfileCondition(
ProfileConditionType.LessThanEqual,
ProfileConditionValue.VideoLevel,
MediaTest.getAVCHigh10Level()
mediaTest.getAVCHigh10Level()
)
)
})
Expand All @@ -160,15 +160,15 @@ object ProfileHelper {
}

val supportsHevc by lazy {
MediaTest.supportsHevc()
mediaTest.supportsHevc()
}

val supportsHevcMain10 by lazy {
MediaTest.supportsHevcMain10()
mediaTest.supportsHevcMain10()
}

val supportsDts by lazy {
MediaTest.supportsDts()
mediaTest.supportsDts()
}

val deviceHevcCodecProfile by lazy {
Expand Down Expand Up @@ -225,7 +225,7 @@ object ProfileHelper {
ProfileCondition(
ProfileConditionType.LessThanEqual,
ProfileConditionValue.VideoLevel,
MediaTest.getHevcMainLevel()
mediaTest.getHevcMainLevel()
)
)
})
Expand All @@ -247,7 +247,7 @@ object ProfileHelper {
ProfileCondition(
ProfileConditionType.LessThanEqual,
ProfileConditionValue.VideoLevel,
MediaTest.getHevcMain10Level()
mediaTest.getHevcMain10Level()
)
)
})
Expand All @@ -257,7 +257,7 @@ object ProfileHelper {
}

val maxResolutionCodecProfile by lazy {
val maxResolution = MediaTest.getMaxResolution(MediaFormat.MIMETYPE_VIDEO_AVC)
val maxResolution = mediaTest.getMaxResolution(MediaFormat.MIMETYPE_VIDEO_AVC)

CodecProfile().apply {
type = CodecType.Video
Expand Down

0 comments on commit 5270108

Please sign in to comment.