- Jun 12, 2023
-
-
James Almer authored
Signed-off-by:
James Almer <jamrial@gmail.com>
-
James Almer authored
Signed-off-by:
James Almer <jamrial@gmail.com>
-
- Jun 09, 2023
-
-
James Almer authored
Missed in 31de9d50.
-
- Jun 07, 2023
-
-
Always-enabled basic sanity checks in API functions is reasonable, but within internal functions assert() is more appropriate when it comes to checking for "should never happen" conditions.
-
-
-
Martin Storsjö authored
After 8f320d59, MSVC started producing this warning: [63/123] Compiling C object src/libdav1d.a.p/obu.c.obj ../src/obu.c(708): warning C4244: '=': conversion from 'uint16_t' to 'uint8_t', possible loss of data
-
-
- Jun 06, 2023
-
-
-
James Almer authored
There's no reason to be so strict by ensuring the tool only works with a library built from the exact same git snapshot, when the only thing that matters is API availability and ABI compatibility. Signed-off-by:
James Almer <jamrial@gmail.com>
-
James Almer authored
Signed-off-by:
James Almer <jamrial@gmail.com>
-
- Jun 02, 2023
-
-
James Almer authored
Signed-off-by:
James Almer <jamrial@gmail.com>
-
James Almer authored
Signed-off-by:
James Almer <jamrial@gmail.com>
-
- Jun 01, 2023
-
-
James Almer authored
Signed-off-by:
James Almer <jamrial@gmail.com>
-
James Almer authored
All of them are 32 bits values that shall be > 0 Signed-off-by:
James Almer <jamrial@gmail.com>
-
It's already checked at the end of parse_seq_hdr() now.
-
-
-
Pack eob and txtp into a single 16-bit value instead of storing them separately. This reduces memory usage by 4 kB per sb128.
-
-
Merge sgr_idx into the restoration type value. This reduces memory usage by 12 bytes per sb128.
-
Move the txtp_map array into the scratch buffer union. This reduces the Dav1dTaskContext size by 1 kB.
-
-
Jean-Baptiste Kempf authored
-
James Almer authored
Signed-off-by:
James Almer <jamrial@gmail.com>
-
- May 31, 2023
-
-
James Almer authored
Simplifies checks for the caller. Signed-off-by:
James Almer <jamrial@gmail.com>
-
James Almer authored
Don't just check that we don't overrun at a byte aligned offset. Also make sure that the parsing was correct and no valid bits are left in the OBU. Signed-off-by:
James Almer <jamrial@gmail.com>
-
This also simplifies overrun checking a fair amount.
-
The default __printf__ format attribute doesn't match what printf functions actually support. Using __gnu_printf__ fixes it.
-
We know that the payload is aligned on a byte boundary and fully contained within the OBU, so using a bitstream reader function to copy the data one byte at a time is a bit redundant.
-
We require the size to be representable as a signed value. This limit already exists in dav1d_data_create().
-
Creating an entire decoder instance just for some bitstream parsing is completely unnecessary. We can instead parse the sequence header directly into the user-provided buffer while ignoring/skipping other OBU types, with zero memory allocations required.
-
- May 29, 2023
-
-
-
It's not required by the API and would only risk masking potential bugs.
-
- May 26, 2023
-
-
It's only used in debug mode, so inlining prevents dead code from being generated in release mode.
-
In many cases it can be combined with the allocation of the data being referenced instead of allocating it separately.
-
It's not used by anything, and the data it references is stack-allocated.
-
- May 25, 2023
-
-
James Almer authored
-
Martin Storsjö authored
Relative speedup over unvectorized C code: Cortex A53 A55 A72 A73 A76 Apple M1 intra_pred_z2_w4_16bpc_neon: 2.98 2.98 2.38 2.77 3.19 7.75 intra_pred_z2_w8_16bpc_neon: 3.91 4.22 2.64 3.29 3.73 4.78 intra_pred_z2_w16_16bpc_neon: 4.43 5.12 2.89 3.90 3.50 4.26 intra_pred_z2_w32_16bpc_neon: 5.08 6.36 3.44 4.40 4.05 4.96 intra_pred_z2_w64_16bpc_neon: 4.68 5.97 3.29 4.40 3.68 5.23
-
Martin Storsjö authored
-