mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-13 02:37:32 +09:00
update libaom to rev 5bdd95475e07ac8641114cb139105b8d734a1b60 (without moz.build and aom_ports/aom_once.h)
This commit is contained in:
parent
402c27b560
commit
fb515ea77b
177 changed files with 21088 additions and 11681 deletions
19
third_party/aom/av1/encoder/lookahead.c
vendored
19
third_party/aom/av1/encoder/lookahead.c
vendored
|
|
@ -44,7 +44,7 @@ void av1_lookahead_destroy(struct lookahead_ctx *ctx) {
|
|||
struct lookahead_ctx *av1_lookahead_init(
|
||||
unsigned int width, unsigned int height, unsigned int subsampling_x,
|
||||
unsigned int subsampling_y, int use_highbitdepth, unsigned int depth,
|
||||
const int border_in_pixels) {
|
||||
const int border_in_pixels, int is_scale) {
|
||||
struct lookahead_ctx *ctx = NULL;
|
||||
|
||||
// Clamp the lookahead queue depth
|
||||
|
|
@ -62,10 +62,19 @@ struct lookahead_ctx *av1_lookahead_init(
|
|||
ctx->buf = calloc(depth, sizeof(*ctx->buf));
|
||||
if (!ctx->buf) goto bail;
|
||||
for (i = 0; i < depth; i++)
|
||||
if (aom_alloc_frame_buffer(&ctx->buf[i].img, width, height, subsampling_x,
|
||||
subsampling_y, use_highbitdepth,
|
||||
border_in_pixels, legacy_byte_alignment))
|
||||
goto bail;
|
||||
if (is_scale) {
|
||||
if (aom_alloc_frame_buffer(
|
||||
&ctx->buf[i].img, width, height, subsampling_x, subsampling_y,
|
||||
use_highbitdepth, border_in_pixels, legacy_byte_alignment))
|
||||
goto bail;
|
||||
} else {
|
||||
aom_free_frame_buffer(&ctx->buf[i].img);
|
||||
if (aom_realloc_lookahead_buffer(
|
||||
&ctx->buf[i].img, width, height, subsampling_x, subsampling_y,
|
||||
use_highbitdepth, AOM_ENC_LOOKAHEAD_BORDER,
|
||||
legacy_byte_alignment, NULL, NULL, NULL))
|
||||
goto bail;
|
||||
}
|
||||
}
|
||||
return ctx;
|
||||
bail:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue