- Android Studio Flamingo | 2022.2.1
- Build #AI-222.4459.24.2221.9862592, built on March 31, 2023
- Gradle JDK: jbr-17 (JetBrains Runtime version 17.0.6)
- Windows 11 (version 10.0.22000.1817)
extern "C" | |
{ | |
#include <libavformat/avformat.h> | |
#include <libavfilter/avfilter.h> | |
#include <libavutil/opt.h> | |
#include <libavutil/pixfmt.h> | |
#include <libavfilter/buffersrc.h> | |
#include <libavfilter/buffersink.h> | |
} | |
#include <iostream> |
android { | |
compileSdkVersion 28 | |
... | |
/** | |
* 解決: | |
* Kotlin: Calls to static methods in Java interfaces are prohibited in JVM target 1.6. Recompile with '-jvm-target 1.8' | |
* 參考: | |
* https://stackoverflow.com/a/52561908/307442 |
/* | |
* A simple libpng example program | |
* http://zarb.org/~gc/html/libpng.html | |
* | |
* Modified by Yoshimasa Niwa to make it much simpler | |
* and support all defined color_type. | |
* | |
* To build, use the next instruction on OS X. | |
* $ brew install libpng | |
* $ clang -lz -lpng16 libpng_test.c |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <fcntl.h> | |
#include <sys/stat.h> | |
#include <sys/mman.h> | |
#include <unistd.h> | |
int main(int argc, const char *argv[]) | |
{ |