-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added timeline to video compression page
- Loading branch information
Showing
16 changed files
with
220 additions
and
52 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
app/src/main/java/com/sample/compressor/TimelineAdapter.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,40 @@ | ||
package com.sample.compressor | ||
|
||
import android.content.Context | ||
import android.graphics.Bitmap | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import android.widget.ImageView | ||
import androidx.recyclerview.widget.RecyclerView | ||
|
||
class TimelineAdapter(context: Context) : RecyclerView.Adapter<RecyclerView.ViewHolder>() { | ||
|
||
private var bitmapList = ArrayList<Bitmap>() | ||
|
||
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder { | ||
return TimelineViewHolder(LayoutInflater.from(parent.context).inflate(R.layout.item_timeline, parent, false)) | ||
} | ||
|
||
override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) { | ||
if (holder is TimelineViewHolder) holder.bindView(position) | ||
} | ||
|
||
override fun getItemCount(): Int { | ||
return bitmapList.size | ||
} | ||
|
||
inner class TimelineViewHolder(view: View): RecyclerView.ViewHolder(view) { | ||
val timelineFrame = view.findViewById<ImageView>(R.id.iv_video_frame) | ||
|
||
fun bindView(pos: Int) { | ||
timelineFrame.setImageBitmap(bitmapList[pos]) | ||
} | ||
} | ||
|
||
fun updateList(data: ArrayList<Bitmap>) { | ||
bitmapList.clear() | ||
bitmapList.addAll(data) | ||
notifyDataSetChanged() | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginEnd="5dp" | ||
android:orientation="vertical"> | ||
|
||
<ImageView | ||
android:id="@+id/iv_video_frame" | ||
android:layout_width="100dp" | ||
android:layout_height="100dp" | ||
android:scaleType="centerCrop"/> | ||
</LinearLayout> |
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
1 change: 1 addition & 0 deletions
1
videocompressor/build/.transforms/3eb799d92dea604e06edc8e5a840907f.bin
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 @@ | ||
o/classes |
Binary file added
BIN
+66.3 KB
videocompressor/build/.transforms/3eb799d92dea604e06edc8e5a840907f/classes/classes.dex
Binary file not shown.
1 change: 1 addition & 0 deletions
1
videocompressor/build/.transforms/847e2e4dbad9168da844ff98a8effb59.bin
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 @@ | ||
o/classes |
Binary file added
BIN
+66.3 KB
videocompressor/build/.transforms/847e2e4dbad9168da844ff98a8effb59/classes/classes.dex
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
videocompressor/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml
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,2 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/lbb/AndroidStudioProjects/compression/videocompressor/src/main/jniLibs"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/lbb/AndroidStudioProjects/compression/videocompressor/src/debug/jniLibs"/></dataSet></merger> | ||
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/yash/StudioProjects/compression/videocompressor/src/main/jniLibs"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/yash/StudioProjects/compression/videocompressor/src/debug/jniLibs"/></dataSet></merger> |
2 changes: 1 addition & 1 deletion
2
videocompressor/build/intermediates/incremental/mergeDebugShaders/merger.xml
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,2 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/lbb/AndroidStudioProjects/compression/videocompressor/src/main/shaders"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/lbb/AndroidStudioProjects/compression/videocompressor/src/debug/shaders"/></dataSet></merger> | ||
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/yash/StudioProjects/compression/videocompressor/src/main/shaders"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/yash/StudioProjects/compression/videocompressor/src/debug/shaders"/></dataSet></merger> |
2 changes: 1 addition & 1 deletion
2
videocompressor/build/intermediates/incremental/packageDebugAssets/merger.xml
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,2 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/lbb/AndroidStudioProjects/compression/videocompressor/src/main/assets"/><source path="/Users/lbb/AndroidStudioProjects/compression/videocompressor/build/intermediates/shader_assets/debug/out"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/lbb/AndroidStudioProjects/compression/videocompressor/src/debug/assets"/></dataSet></merger> | ||
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/yash/StudioProjects/compression/videocompressor/src/main/assets"/><source path="/Users/yash/StudioProjects/compression/videocompressor/build/intermediates/shader_assets/debug/out"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/yash/StudioProjects/compression/videocompressor/src/debug/assets"/></dataSet></merger> |
2 changes: 1 addition & 1 deletion
2
...pressor/build/intermediates/incremental/packageDebugResources/compile-file-map.properties
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 +1 @@ | ||
#Mon Apr 20 15:39:42 IST 2020 | ||
#Mon Apr 27 11:15:21 IST 2020 |
2 changes: 1 addition & 1 deletion
2
videocompressor/build/intermediates/incremental/packageDebugResources/merger.xml
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,2 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<merger version="3"><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/lbb/AndroidStudioProjects/compression/videocompressor/src/main/res"/><source path="/Users/lbb/AndroidStudioProjects/compression/videocompressor/build/generated/res/rs/debug"/><source path="/Users/lbb/AndroidStudioProjects/compression/videocompressor/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main" generated-set="main$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/lbb/AndroidStudioProjects/compression/videocompressor/src/main/res"><file path="/Users/lbb/AndroidStudioProjects/compression/videocompressor/src/main/res/values/strings.xml" qualifiers=""><string name="app_name">VideoCompressor</string></file></source><source path="/Users/lbb/AndroidStudioProjects/compression/videocompressor/build/generated/res/rs/debug"/><source path="/Users/lbb/AndroidStudioProjects/compression/videocompressor/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/lbb/AndroidStudioProjects/compression/videocompressor/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/lbb/AndroidStudioProjects/compression/videocompressor/src/debug/res"/></dataSet><mergedItems/></merger> | ||
<merger version="3"><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/yash/StudioProjects/compression/videocompressor/src/main/res"/><source path="/Users/yash/StudioProjects/compression/videocompressor/build/generated/res/rs/debug"/><source path="/Users/yash/StudioProjects/compression/videocompressor/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main" generated-set="main$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/yash/StudioProjects/compression/videocompressor/src/main/res"><file path="/Users/yash/StudioProjects/compression/videocompressor/src/main/res/values/strings.xml" qualifiers=""><string name="app_name">VideoCompressor</string></file></source><source path="/Users/yash/StudioProjects/compression/videocompressor/build/generated/res/rs/debug"/><source path="/Users/yash/StudioProjects/compression/videocompressor/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/yash/StudioProjects/compression/videocompressor/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/yash/StudioProjects/compression/videocompressor/src/debug/res"/></dataSet><mergedItems/></merger> |
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.