Skip to content

Commit 7618356

Browse files
author
Joe Drago
committed
libavif v0.6.0
1 parent 9a6d15a commit 7618356

File tree

6 files changed

+20
-14
lines changed

6 files changed

+20
-14
lines changed

ext/avif/CHANGELOG.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
9+
## [0.6.0] - 2020-03-09
810
### Added
9-
- Update default dav1d version to 0.6.0
10-
- Update default rav1e version to v0.3.1
1111
- `avifRGBImage` structure and associated routines (BREAKING CHANGE)
1212
- avifImage alphaRange support
1313
- Support pasp, clap, irot, imir metadata for encode/decode
@@ -19,6 +19,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919
- Lots of minor cleanup in code/CMake (wantehchang)
2020
- Fix to NCLX color profile plumbing (ledyba-z)
2121
- Cleanup unnecessary avifBool ternary expressions
22+
- Update default dav1d version to 0.6.0
23+
- Update default rav1e version to v0.3.1
2224

2325
## [0.5.7] - 2020-03-03
2426
### Added
@@ -325,7 +327,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
325327
- Constants `AVIF_VERSION`, `AVIF_VERSION_MAJOR`, `AVIF_VERSION_MINOR`, `AVIF_VERSION_PATCH`
326328
- `avifVersion()` function
327329

328-
[Unreleased]: https://github.com/AOMediaCodec/libavif/compare/v0.5.7...HEAD
330+
[Unreleased]: https://github.com/AOMediaCodec/libavif/compare/v0.6.0...HEAD
331+
[0.6.0]: https://github.com/AOMediaCodec/libavif/compare/v0.5.7...v0.6.0
329332
[0.5.7]: https://github.com/AOMediaCodec/libavif/compare/v0.5.6...v0.5.7
330333
[0.5.6]: https://github.com/AOMediaCodec/libavif/compare/v0.5.5...v0.5.6
331334
[0.5.5]: https://github.com/AOMediaCodec/libavif/compare/v0.5.4...v0.5.5

ext/avif/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cmake_minimum_required(VERSION 3.5)
77
# and find_package()
88
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")
99

10-
project(libavif LANGUAGES C CXX VERSION 0.5.7)
10+
project(libavif LANGUAGES C CXX VERSION 0.6.0)
1111

1212
# SOVERSION scheme: CURRENT.AGE.REVISION
1313
# If there was an incompatible interface change:
@@ -16,7 +16,7 @@ project(libavif LANGUAGES C CXX VERSION 0.5.7)
1616
# Increment AGE. Set REVISION to 0
1717
# If the source code was changed, but there were no interface changes:
1818
# Increment REVISION.
19-
set(LIBRARY_VERSION "1.0.0")
19+
set(LIBRARY_VERSION "2.0.0")
2020
set(LIBRARY_SOVERSION "0")
2121

2222
option(BUILD_SHARED_LIBS "Build shared avif library" ON)

ext/avif/apps/avifenc.c

+8-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
} \
1818
arg = argv[++argIndex]
1919

20-
static int syntax(void)
20+
static void syntax(void)
2121
{
2222
printf("Syntax: avifenc [options] input.y4m output.avif\n");
2323
printf("Options:\n");
@@ -52,7 +52,6 @@ static int syntax(void)
5252
printf(" --imir AXIS : Add imir property (mirroring). 0=vertical, 1=horizontal\n");
5353
printf("\n");
5454
avifPrintVersions();
55-
return 0;
5655
}
5756

5857
// This is *very* arbitrary, I just want to set people's expectations a bit
@@ -129,7 +128,8 @@ int main(int argc, char * argv[])
129128
const char * outputFilename = NULL;
130129

131130
if (argc < 2) {
132-
return syntax();
131+
syntax();
132+
return 1;
133133
}
134134

135135
int jobs = 1;
@@ -156,7 +156,8 @@ int main(int argc, char * argv[])
156156
const char * arg = argv[argIndex];
157157

158158
if (!strcmp(arg, "-h") || !strcmp(arg, "--help")) {
159-
return syntax();
159+
syntax();
160+
return 0;
160161
} else if (!strcmp(arg, "-j") || !strcmp(arg, "--jobs")) {
161162
NEXTARG();
162163
jobs = atoi(arg);
@@ -263,6 +264,7 @@ int main(int argc, char * argv[])
263264
outputFilename = arg;
264265
} else {
265266
fprintf(stderr, "Too many positional arguments: %s\n", arg);
267+
syntax();
266268
return 1;
267269
}
268270
}
@@ -271,7 +273,8 @@ int main(int argc, char * argv[])
271273
}
272274

273275
if (!inputFilename || !outputFilename) {
274-
return syntax();
276+
syntax();
277+
return 1;
275278
}
276279

277280
int returnCode = 0;

ext/avif/ext/dav1d.cmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
: # If you're running this on Windows, be sure you've already run this (from your VC2017 install dir):
99
: # "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvars64.bat"
1010

11-
git clone -b 0.5.2 --depth 1 https://code.videolan.org/videolan/dav1d.git
11+
git clone -b 0.6.0 --depth 1 https://code.videolan.org/videolan/dav1d.git
1212

1313
cd dav1d
1414
mkdir build

ext/avif/ext/rav1e.cmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
: # Also, the error that "The target windows-msvc is not supported yet" can safely be ignored provided that rav1e/target/release
1212
: # contains rav1e.h and rav1e.lib.
1313

14-
git clone -b v0.3.0 --depth 1 https://github.com/xiph/rav1e.git
14+
git clone -b v0.3.1 --depth 1 https://github.com/xiph/rav1e.git
1515

1616
cd rav1e
1717
cargo install cbindgen

ext/avif/include/avif/avif.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ extern "C" {
1515
// Constants
1616

1717
#define AVIF_VERSION_MAJOR 0
18-
#define AVIF_VERSION_MINOR 5
19-
#define AVIF_VERSION_PATCH 7
18+
#define AVIF_VERSION_MINOR 6
19+
#define AVIF_VERSION_PATCH 0
2020
#define AVIF_VERSION (AVIF_VERSION_MAJOR * 10000) + (AVIF_VERSION_MINOR * 100) + AVIF_VERSION_PATCH
2121

2222
typedef int avifBool;

0 commit comments

Comments
 (0)