Commit Graph

3191 Commits

Author SHA1 Message Date
Anton Mitrofanov e32bff1657 Fix alignment of chroma buffer for weightp
In 10-bit mode pixel_asd8 expects 16-byte alignment for pix1 and pix2.
2021-01-26 21:49:17 +03:00
Henrik Gramner 35417dcd65 Makefile: Drop the -T argument to install
It's not required, and BSD doesn't support it.
2021-01-26 02:21:16 +01:00
Anton Mitrofanov 544c61f082 Fix use of nalu_process callback
Broke after unifying of 8-bit and 10-bit libraries.
2021-01-24 15:04:39 +01:00
Anton Mitrofanov 045d3fdab5 Fix weighting for B-frames
This bug never occurs with the current reference management logic.
Bug report by Lingjiang Fang.
2021-01-24 15:01:46 +01:00
Anton Mitrofanov e786649568 Fix CAVLC encoding
This bug mainly occurred when encoding with high bitrate (low QP).
It did not occur when encoding in baseline or main profile.
2021-01-24 14:57:17 +01:00
Anton Mitrofanov 8e5e8340f0 Bump dates to 2021 2021-01-24 16:38:34 +03:00
Konstantin Pavlov c17d152d7b CI: Move macos to catalina builders 2021-01-19 23:54:52 +03:00
Anton Mitrofanov f7963f6a3e CI: Update URLs to the latest vlc-contrib 2021-01-19 23:54:52 +03:00
Martin Storsjö 0d754ec360 gitlab-ci: Add build-only configurations with llvm-mingw targeting armv7/aarch64 2021-01-07 15:44:33 +01:00
Henrik Gramner 6bc7fe4f36 configure: Fix endianness test when LTO is enabled through CFLAGS 2021-01-07 14:25:43 +01:00
Martin Storsjö 15e447f9b7 gitlab-ci: Remove the unused _PATH variable
It became unused in cde9a93319.
2021-01-07 11:54:03 +01:00
Janne Grunau 8bd6d28025 aarch64/asm: optimize cabac asm
0.5% - 2% overall speedup on
`./x264 --threads X --profile high --preset veryfast --crf 15 -o /dev/null park_joy_420_720p50.y4m`
cabac is responsible for roughly 1/6 of the CPU use.
Branch mispredictions are reduced by 15% to 20%.

cortex-s53: 0.5% faster
cortex-a72: 2%  faster
neoverse-n1: 0.9% faster
2020-12-28 11:53:34 +01:00
Janne Grunau 9981ea837f aarch64/asm: support offsets in movrel macro
Imported from dav1d.
2020-12-28 11:53:34 +01:00
Janne Grunau 8578bd9f7f aarch64/asm: optimize cabac_encode_terminal with extrinsic knowledge
Approach taken from x86 asm. Overall speedup meaningless.
cabac_encode_terminal on average twice as fast on cortex-53 while
encoding with following command:
./x264 --threads 1 --profile high --preset veryfast --crf 15 -o /dev/null park_joy_420_720p50.y4m

Less relative speedup on cortex-a72/73.
2020-12-28 11:53:20 +01:00
Martin Storsjö 4121277b40 Add a missing include of stdlib.h
Since 7ab4c928ef, osdep.h contains
calls to malloc/free.

This fixes building with MSVC targeting WinRT.
2020-10-26 09:42:20 +02:00
Damiano Galassi 1086f4504e configure: Add Apple Silicon support 2020-10-25 20:40:48 +03:00
Anton Mitrofanov be3c1492db x86: Remove workaround for nasm on macho64 2020-10-25 18:22:37 +01:00
Anton Mitrofanov 58dcf16f1b x86: Fix exhaustive search ME asm 2020-10-25 18:22:37 +01:00
Anton Mitrofanov 37329c4f10 x86: Fix memory operands for inline asm 2020-10-25 18:10:15 +01:00
Anton Mitrofanov f15ee06495 x86: Fix clobbers for inline asm 2020-10-25 18:10:15 +01:00
Henrik Gramner 7ab4c928ef Add support for long filenames on Windows 10 2020-09-27 23:32:10 +02:00
Henrik Gramner d198931a63 mp4: Remove GPAC Windows Unicode compatibility shim
GPAC has native UTF-8 support nowadays.

Also move the compatibility code to input/avs.c since that's the only
remaining code that uses it now.
2020-09-12 19:23:57 +02:00
Henrik Gramner 2726e45d4a mp4: Fix compiling with recent GPAC versions 2020-09-12 19:23:55 +02:00
Anton Mitrofanov db0d417728 Rename function x264_strdup to x264_param_strdup 2020-07-14 15:45:40 +02:00
Anton Mitrofanov 45e2f8997b cli: Add info about gpac/lsmash into version info 2020-07-14 15:35:32 +02:00
Anton Mitrofanov 375cc58822 configure: Add options for bash-completion install 2020-07-14 15:35:11 +02:00
Anton Mitrofanov 4c2aafd864 Add new API function: x264_param_cleanup
Should be called to free struct members allocated internally by libx264,
e.g. by x264_param_parse.
Partially based on videolan/x264!18 by Derek Buitenhuis.
2020-07-02 22:23:50 +02:00
A. David 7c2004b58c mp4: Update GPAC support to v0.8.0 or later 2020-07-02 19:45:50 +02:00
Henrik Gramner a41d4e2944 cli: Install bash autocomplete during 'make install' 2020-07-02 19:20:21 +02:00
Henrik Gramner 2e3caed26d lavf: Update to the new API for iterating demuxers 2020-07-02 19:08:51 +02:00
Anton Mitrofanov cde9a93319 CI: Add lsmash support + Change ffmpeg source 2020-07-02 18:50:47 +02:00
Henrik Gramner d78c1e83a1 Fix compilation with nasm 2.15 2020-07-02 03:01:13 +02:00
Anton Mitrofanov 4c9b076be6 Remove code for non-positive f_ip_factor/f_pb_factor
Currently they are guaranteed to be positive.
2020-06-15 22:01:02 +02:00
JHammler d1fee1e052 configure: Fix building under the MSYS shell 2020-06-15 21:57:16 +02:00
Sergei Trofimovich 235ce61301 configure: allow 'strings' override via STRINGS variable
This allows building x264 on systems where 'strings' or
'${HOST}-strings' does not exist, but llvm-strings exists.
2020-06-10 23:10:38 +02:00
Henrik Gramner 22fcbe1204 x86inc: Fix warnings when using nasm 2.15 2020-06-10 20:21:24 +02:00
Anton Mitrofanov 32a7ee1ccc checkasm: increase float error margin to 1e-5
checkasm10 with seed=511142008 failed on win32 gcc builds.
2020-06-10 18:07:03 +03:00
Anton Mitrofanov 6b28e58504 Fix data race
Closes videolan/x264#16.
Bug report by Zu-Ming Jiang.
2020-06-10 18:07:03 +03:00
Anton Mitrofanov 538f09b5b9 Fix undefined behavior: index out of bounds (one more)
last_non_b_pict_type is initialized to -1.
Bug report by Vitaly Buka.
2020-06-10 18:07:03 +03:00
Anton Mitrofanov 526b6b5488 Remove use of non-breaking spaces 2020-06-10 18:06:45 +03:00
Anton Mitrofanov 829f625cb9 Fix file encoding from Windows-1252 to UTF-8 2020-04-26 00:20:07 +03:00
Anton Mitrofanov 33f9e14746 Fix warning: comparison of integers of different signs [-Wsign-compare] 2020-04-09 15:36:22 +03:00
Anton Mitrofanov 296494a401 Fix error "invalid size of malloc" for 10-bit encodes at i686 2020-04-09 15:36:22 +03:00
Anton Mitrofanov 9a1bd573c6 Fix undefined behavior: shift exponent is negative 2020-04-09 15:36:22 +03:00
Anton Mitrofanov af2755cd18 Fix undefined behavior: access within misaligned address 2020-04-09 15:36:22 +03:00
Anton Mitrofanov 7186cc92be Fix undefined behavior: applying [non-]zero offset to null pointer 2020-04-09 15:36:22 +03:00
Anton Mitrofanov dfac34deef Fix undefined behavior: index out of bounds 2020-04-09 15:36:22 +03:00
Anton Mitrofanov d2833a49f4 Fix undefined behavior: division by zero 2020-04-09 15:36:22 +03:00
Anton Mitrofanov cc9d9e325e CI: Fix vlc-contrib URL for windows targets 2020-04-09 15:33:19 +03:00
Anton Mitrofanov 04e6c65e6b Bump dates to 2020 2020-02-29 22:02:01 +03:00