Coder Social home page Coder Social logo

chxaioge / framesequence Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 3.0 2.06 MB

android java animate webp and gif support

Java 0.71% Makefile 11.74% C++ 1.38% C 75.76% CMake 0.35% Shell 8.07% M4 0.94% HTML 0.05% Roff 0.79% Go 0.03% Python 0.18%
animated-webp frame-sequence webp

framesequence's People

Contributors

chxaioge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

framesequence's Issues

Suggestion: update sdks, remove buildToolsVersion

In app gradle file, you can change to this:

apply plugin: 'com.android.library'

android {
    compileSdkVersion 28
    defaultConfig {
        //applicationId "com.lbe.graphics.framesequence"
        minSdkVersion 15
        targetSdkVersion 28
        versionCode 1
        versionName "1.0.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    sourceSets {
        main {
            jni.srcDirs = []
            jniLibs.srcDirs = ['src/main/libs/']
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    implementation 'com.android.support:support-annotations:27.1.1'
    testImplementation 'junit:junit:4.12'
}
...

And in the project gradle file, you can use this:

buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.3'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

Request: please add sample

To see how to use it.

Could be nice to know hot exactly to use it, inside an ImageView, and even as a step-by-step Bitmaps (meaning I can go over each frame of the GIF/WEBP animation).

This could cover most cases of using it.

Also, could be nice to be able to use gradle in our app, instead of building here and get the needed files.

gif动画频率加快

当显示gif动画的activity 进入stop状态后,再回到当前activity时,会出现gif动画播放过快现象,持续几秒钟后会按照正常速度播放,不知道大神有没有遇到这种情况

Can't build?

I get this:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':framesequence:ndkBuild'.
> A problem occurred starting process 'command 'C:\Users\user\AppData\Local\Android\Sdk\ndk-bundle/ndk-build''

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 0s

How come?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.