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 Aug 24, 2024
1 parent a877545 commit 4b07848
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ object ProfileHelper {
private const val H264_LEVEL_5_1 = "51"
private const val H264_LEVEL_5_2 = "52"

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 @@ -38,7 +38,7 @@ object ProfileHelper {
)
)
}
!MediaTest.supportsAV1Main10() -> {
!mediaTest.supportsAV1Main10() -> {
Timber.i("*** Does NOT support AV1 10 bit")
arrayOf(
ProfileCondition(
Expand All @@ -64,11 +64,11 @@ object ProfileHelper {
}

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

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

val deviceHevcCodecProfile by lazy {
Expand All @@ -88,7 +88,7 @@ object ProfileHelper {
)
)
}
!MediaTest.supportsHevcMain10() -> {
!mediaTest.supportsHevcMain10() -> {
Timber.i("*** Does NOT support HEVC 10 bit")
arrayOf(
ProfileCondition(
Expand Down Expand Up @@ -132,12 +132,12 @@ object ProfileHelper {
ProfileCondition(
ProfileConditionType.LessThanEqual,
ProfileConditionValue.VideoLevel,
MediaTest.getHevcMainLevel()
mediaTest.getHevcMainLevel()
)
)
})

if (MediaTest.supportsHevcMain10()) {
if (mediaTest.supportsHevcMain10()) {
add(CodecProfile().apply {
type = CodecType.Video
codec = Codec.Video.HEVC
Expand All @@ -154,7 +154,7 @@ object ProfileHelper {
ProfileCondition(
ProfileConditionType.LessThanEqual,
ProfileConditionValue.VideoLevel,
MediaTest.getHevcMain10Level()
mediaTest.getHevcMain10Level()
)
)
})
Expand Down Expand Up @@ -187,7 +187,7 @@ object ProfileHelper {
"main",
"baseline",
"constrained baseline",
if (MediaTest.supportsAVCHigh10()) "high 10" else null
if (mediaTest.supportsAVCHigh10()) "high 10" else null
).joinToString("|")
)
}
Expand Down

0 comments on commit 4b07848

Please sign in to comment.