This file contains hidden or 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
| # How to make a presentable game clip | |
| - add a clip to the project, choose an GPU-supported profile for transcoding if it asks (Steamdeck clips need it apparently) | |
| - drag the clip to the timeline area | |
| - go to "cut" mode by pressing "X"; go to "select" mode with "S" | |
| - press Shift + R to split selected (in the timeline) clip in two. I think it also works without going to the "cut" mode explicitly | |
| - select a clip and press Ctrl + Shift + G to "ungroup" audio and video, then you can delete audio separately, for example | |
| - use "J", "K" and "L" to speed up playback in the project monitor | |
| - use "Shift" when you hover timeline to "preview" a frame | |
| - right-click a clip and select "Change Speed" to speed it up |
This file contains hidden or 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
| #!/bin/sh | |
| # I put all my dev stuff in here | |
| export DEV_PREFIX=${PWD}/buildings | |
| # Don't forget to adjust this to your NDK path | |
| export ANDROID_PREFIX=${HOME}/Android/Sdk | |
| export ANDROID_NDK=${ANDROID_PREFIX}/ndk/23.1.7779620 | |
| # export CROSS_COMPILE=aarch64-linux-android31 |
This file contains hidden or 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
| private fun saveFileToMediaStorage(bmp: Bitmap) { | |
| val resolver = applicationContext.contentResolver | |
| val contentValues = ContentValues().apply { | |
| put(MediaStore.MediaColumns.DISPLAY_NAME, "photo.bmp") | |
| put(MediaStore.MediaColumns.MIME_TYPE, "image/bmp") | |
| put(MediaStore.MediaColumns.RELATIVE_PATH, "Pictures/") | |
| } | |
| val uri = resolver.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, contentValues) |