-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f48e672
commit 09c06b8
Showing
99 changed files
with
2,884 additions
and
1,750 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
app/src/main/java/com/ismartcoding/plain/PAppGlideModule.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
app/src/main/java/com/ismartcoding/plain/data/DImageMeta.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.ismartcoding.plain.data | ||
|
||
import kotlinx.datetime.Instant | ||
|
||
data class DImageMeta( | ||
val make: String, | ||
val model: String, | ||
val width: Int, | ||
val height: Int, | ||
val rotation: Int, | ||
val colorSpace : String, | ||
val apertureValue: Double, | ||
val exposureTime: String, | ||
val focalLength : String, | ||
val isoSpeed: Int, | ||
val contentCreated: Instant?, | ||
val flash: Int, | ||
val fNumber: Double, | ||
val exposureProgram: Int, | ||
val meteringMode: Int, | ||
val whiteBalance: Int, | ||
val creator: String, | ||
val resolutionX: Int, | ||
val resolutionY: Int, | ||
val description: String | ||
) { | ||
val isScreenshot: Boolean | ||
get() = exposureTime.isEmpty() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,30 @@ | ||
package com.ismartcoding.plain.data | ||
|
||
import android.os.Parcelable | ||
import com.ismartcoding.plain.data.IData | ||
import com.ismartcoding.plain.data.IMedia | ||
import androidx.compose.ui.unit.IntSize | ||
import kotlinx.datetime.Instant | ||
import kotlinx.parcelize.Parcelize | ||
import java.io.Serializable | ||
|
||
@Parcelize | ||
@kotlinx.serialization.Serializable | ||
data class DVideo( | ||
override var id: String, | ||
val title: String, | ||
override val path: String, | ||
override val duration: Long, | ||
val size: Long, | ||
val width: Int, | ||
val height: Int, | ||
val rotation: Int, | ||
val bucketId: String, | ||
) : IData, IMedia, Parcelable, Serializable { | ||
companion object { | ||
private const val serialVersionUID = -2797285L | ||
val createdAt: Instant, | ||
val updatedAt: Instant, | ||
) : IData, IMedia, Serializable { | ||
|
||
fun getRotatedSize(): IntSize { | ||
if (rotation == 90 || rotation == 270) { | ||
return IntSize(height, width) | ||
} | ||
|
||
return IntSize(width, height) | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
app/src/main/java/com/ismartcoding/plain/data/DVideoMeta.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.ismartcoding.plain.data | ||
|
||
data class DVideoMeta( | ||
val width: Int, | ||
val height: Int, | ||
val rotation: Int, | ||
val duration: Long, | ||
val bitrate: Int, | ||
val frameRate: Float, | ||
val title: String, | ||
val artist: String, | ||
val album: String, | ||
val genre: String, | ||
val date: String, | ||
val writer: String, | ||
val composer: String, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.