Skip to content

Commit baad12e

Browse files
committed
Revert "Revert "update dav1d v0.7.1""
This reverts commit 06f297b.
1 parent 06f297b commit baad12e

25 files changed

Lines changed: 91 additions & 32 deletions

File tree

app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/build
2+
/release

glideavif/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def deployTo = new File(rootDir, "repository")
99
android {
1010
compileSdkVersion 29
1111
buildToolsVersion "29.0.3"
12-
ndkVersion "21.1.6352462"
12+
ndkVersion "21.3.6528147"
1313

1414
defaultConfig {
1515
minSdkVersion 16
@@ -66,7 +66,7 @@ uploadArchives {
6666
repositories {
6767
mavenDeployer {
6868
repository url: "file://${deployTo}"
69-
pom.version = '0.6.0'
69+
pom.version = '0.6.1'
7070
pom.groupId = 'jp.co.link_u.library.glideavif'
7171
pom.artifactId = 'glideavif'
7272
}

glideavif/libdav1d_builder/docker-compose.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ services:
44
arm64-v8a:
55
build:
66
context: docker
7-
args:
8-
DAV1D_VERSION: 0.7.0
7+
args: &args
8+
NDK: r21d
9+
DAV1D_VERSION: 0.7.1
910
CLANG: "%CPU_FAMILY-linux-android%API_LEVEL-clang"
1011
UTIL: "%CPU_FAMILY-linux-android"
1112
CPU_FAMILY: aarch64
@@ -20,43 +21,37 @@ services:
2021
build:
2122
context: docker
2223
args:
23-
DAV1D_VERSION: 0.7.0
24+
<<: *args
2425
CLANG: "%CPU_FAMILY-linux-androideabi%API_LEVEL-clang"
2526
UTIL: arm-linux-androideabi
2627
CPU_FAMILY: armv7a
2728
CPU: armv7
2829
API_LEVEL: 16
2930
ARCH: armeabi-v7a
30-
LIBTYPE: static
3131
volumes:
3232
- ./build:/mnt/libdav1d
3333

3434
x86_64:
3535
build:
3636
context: docker
3737
args:
38-
DAV1D_VERSION: 0.7.0
39-
CLANG: "%CPU_FAMILY-linux-android%API_LEVEL-clang"
40-
UTIL: "%CPU_FAMILY-linux-android"
38+
<<: *args
4139
CPU_FAMILY: x86_64
4240
CPU: i686
43-
API_LEVEL: 21
4441
ARCH: x86_64
45-
LIBTYPE: static
4642
volumes:
4743
- ./build:/mnt/libdav1d
4844

4945
x86:
5046
build:
5147
context: docker
5248
args:
53-
DAV1D_VERSION: 0.7.0
49+
<<: *args
5450
CLANG: "%CPU-linux-android%API_LEVEL-clang"
5551
UTIL: "%CPU-linux-android"
5652
CPU_FAMILY: x86
5753
CPU: i686
5854
API_LEVEL: 16
5955
ARCH: x86
60-
LIBTYPE: static
6156
volumes:
6257
- ./build:/mnt/libdav1d

glideavif/libdav1d_builder/docker/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ RUN apt-get update \
66

77
WORKDIR /usr/local/src
88

9-
RUN curl -SL https://dl.google.com/android/repository/android-ndk-r21-linux-x86_64.zip > android-ndk-r21-linux-x86_64.zip && \
10-
unzip -q android-ndk-r21-linux-x86_64.zip && \
11-
mv android-ndk-r21 android-ndk && \
12-
rm android-ndk-r21-linux-x86_64.zip
9+
ARG NDK
10+
RUN curl -SL https://dl.google.com/android/repository/android-ndk-${NDK}-linux-x86_64.zip > android-ndk-${NDK}-linux-x86_64.zip && \
11+
unzip -q android-ndk-${NDK}-linux-x86_64.zip && \
12+
mv android-ndk-${NDK} android-ndk && \
13+
rm android-ndk-${NDK}-linux-x86_64.zip
1314

1415
RUN ln -s /usr/bin/python3 /usr/bin/python && \
1516
pip3 install --user --no-warn-script-location meson

glideavif/libyuv_builder/docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ services:
44
arm64-v8a:
55
build:
66
context: docker
7-
args:
7+
args: &args
8+
NDK: r21d
89
YUV_VERSION: 45f1f2b201672b699b35da20267a5f2c41318264
910
API_LEVEL: 21
1011
ARCH: arm64-v8a
@@ -15,7 +16,7 @@ services:
1516
build:
1617
context: docker
1718
args:
18-
YUV_VERSION: 45f1f2b201672b699b35da20267a5f2c41318264
19+
<<: *args
1920
API_LEVEL: 16
2021
ARCH: armeabi-v7a
2122
volumes:
@@ -25,8 +26,7 @@ services:
2526
build:
2627
context: docker
2728
args:
28-
YUV_VERSION: 45f1f2b201672b699b35da20267a5f2c41318264
29-
API_LEVEL: 21
29+
<<: *args
3030
ARCH: x86_64
3131
volumes:
3232
- ./build:/mnt/libyuv
@@ -35,7 +35,7 @@ services:
3535
build:
3636
context: docker
3737
args:
38-
YUV_VERSION: 45f1f2b201672b699b35da20267a5f2c41318264
38+
<<: *args
3939
API_LEVEL: 16
4040
ARCH: x86
4141
volumes:

glideavif/libyuv_builder/docker/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ RUN apt-get update && \
66

77
WORKDIR /usr/local/src
88

9-
RUN curl -SL https://dl.google.com/android/repository/android-ndk-r21-linux-x86_64.zip > android-ndk-r21-linux-x86_64.zip && \
10-
unzip -q android-ndk-r21-linux-x86_64.zip && \
11-
mv android-ndk-r21 android-ndk && \
12-
rm android-ndk-r21-linux-x86_64.zip
9+
ARG NDK
10+
RUN curl -SL https://dl.google.com/android/repository/android-ndk-${NDK}-linux-x86_64.zip > android-ndk-${NDK}-linux-x86_64.zip && \
11+
unzip -q android-ndk-${NDK}-linux-x86_64.zip && \
12+
mv android-ndk-${NDK} android-ndk && \
13+
rm android-ndk-${NDK}-linux-x86_64.zip
1314

1415
## libyuv
1516
ARG YUV_VERSION

glideavif/src/main/cpp/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.4.1)
22

33
project(avif_decoder CXX)
44

5+
# ignore warning of shared textrel
6+
string(REPLACE "-Wl,--fatal-warnings " "" NOWARNING ${CMAKE_SHARED_LINKER_FLAGS})
7+
set(CMAKE_SHARED_LINKER_FLAGS ${NOWARNING})
8+
59
set(DAV1D_DIR ${CMAKE_CURRENT_SOURCE_DIR})
610
set(DAV1D_INCLUDES ${DAV1D_DIR}/include)
711
set(DAV1D_LIBS ${DAV1D_DIR}/lib/${ANDROID_ABI})
@@ -21,7 +25,7 @@ include_directories(jni_util/include)
2125

2226
# libavif
2327
set(DAV1D_LIBRARY dav1d)
24-
set(AVIF_CODEC_DAV1D ON CACHE BOOL "Use the dav1d codec for decoding (overrides AOM decoding if also enabled)" FORCE)
28+
set(AVIF_CODEC_DAV1D ON CACHE BOOL "Use the dav1d codec for decoding (overrides AOM decoding if also enabled) " FORCE)
2529
add_subdirectory(libavif EXCLUDE_FROM_ALL)
2630

2731
add_library(avif_decoder SHARED common.cpp avif_decoder.cpp my_bitmap.cpp avif_wrapper.cpp)

glideavif/src/main/cpp/include/dav1d/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929

3030
#define DAV1D_API_VERSION_MAJOR 4
3131
#define DAV1D_API_VERSION_MINOR 0
32-
#define DAV1D_API_VERSION_PATCH 1
32+
#define DAV1D_API_VERSION_PATCH 2
3333

3434
#endif /* DAV1D_VERSION_H */
6.06 KB
Binary file not shown.
-1.64 MB
Binary file not shown.

0 commit comments

Comments
 (0)