Skip to content

Commit

Permalink
1.1.4 add rgba stride
Browse files Browse the repository at this point in the history
  • Loading branch information
LxzBUG committed Mar 24, 2023
1 parent f0d01f9 commit bbcd7d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions screenShareKit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 13
versionName "1.1.3"
versionCode 14
versionName "1.1.4"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class ScreenReaderService : Service() {
}
if (startTs-mLastSendTSMs>intervalTS){
rgbaData?.let {
encodeBuilder.rgbaCallback?.onRGBA(it,rowStride/4,height,encodeBuilder.device_rotation,isRotationChange())
encodeBuilder.rgbaCallback?.onRGBA(it,width,height,rowStride/4,encodeBuilder.device_rotation,isRotationChange())
mLastSendTSMs = System.currentTimeMillis()
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package org.loka.screensharekit.callback

fun interface RGBACallBack{
fun onRGBA(rgba: ByteArray,width:Int,height:Int,rotation:Int,rotationChanged:Boolean)
fun onRGBA(rgba: ByteArray,width:Int,height:Int,stride:Int,rotation:Int,rotationChanged:Boolean)
}

0 comments on commit bbcd7d9

Please sign in to comment.