no xxx method exception.-keep class com.tencent.xmagic.** { *;}-keep class org.light.** { *;}-keep class org.libpag.** { *;}-keep class org.extra.** { *;}-keep class com.gyailib.**{ *;}-keep class com.tencent.cloud.iai.lib.** { *;}-keep class com.tencent.beacon.** { *;}-keep class com.tencent.qimei.** { *;}-keep class androidx.exifinterface.** { *;}
build.gradle file of the hosting project:Android{configurations {all*.exclude group: 'com.google.code.gson'}}
AndroidManifest.xml file under the app module, then insert the following tag within the application tag:<uses-native-libraryandroid:name="libOpenCL.so"android:required="false" />//true indicates that libOpenCL is essential for the current app. Without this library, the system will not allow the app to install。It is not recommended to set it to true, as it may prevent users from installing the app.//false indicates that libOpenCL is not essential for the current app. The app can be installed normally with or without this library. If the device has this library, GAN-type special effects in the Tencent Special Effects SDK (e.g., fairy tale face, comics face) will function normally. If the device does not have this library, GAN-type effects won't work, but it will not affect the use of other features within the SDK.//For information about uses-native-library, please refer to the Android official website: https://developer.android.com/guide/topics/manifest/uses-native-library-element
TextureConverter.java in the demo to rotate the texture, convert it to portrait mode, and then pass it to the beauty SDK./*** This method is used for rotating and mirroring 'RGBA' textures. The process is as follows: rotate 'rotation' degrees clockwise (values can be 0, 90, 180, 270), then flip horizontally (flipHorizontal) and vertically (flipVertical).* Use case: Some streaming SDKs return horizontal textures or the orientation of the people in the picture is incorrect, and the Tencent EffectSDK requires that the individuals in the texture are facing the right direction. Therefore, this method can be used to convert the texture.** @param srcID RGBA Texture* @param width Texture Width* @param height Texture Height* @param rotation Degrees of required rotation.* @return Rotated texture. Note: if rotated by 90 or 270 degrees, the width needs to be interchanged.*/public int convert(int srcID, int width, int height, @RotationDegreesValue int rotation, boolean flipVertical, boolean flipHorizontal)
TextureConverter.java in the demo to convert the texture into an RGBA texture, and then pass it to the beauty SDK./*** This method is used to convert oes texture to rgba texture** @param srcID oes texture* @param width texture width* @param height texture height* @return RGBA Texture ID*/public int oes2Rgba(int srcID, int width, int height)
implementation ('com.tencent.mediacloud:TencentEffect_S1-04:version number'){exclude group: "com.tencent.tav", module: "libpag"}
implementation 'com.tencent.tav:libpag:4.3.33-noffavc'
Feedback