mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 00:17:32 +09:00
Update libaom to commit ID 1e227d41f0616de9548a673a83a21ef990b62591
This commit is contained in:
parent
77c9089b7d
commit
368651059a
526 changed files with 34535 additions and 15900 deletions
11
third_party/aom/examples/noise_model.c
vendored
11
third_party/aom/examples/noise_model.c
vendored
|
|
@ -179,9 +179,14 @@ static void print_variance_y(FILE *debug_file, aom_image_t *raw,
|
|||
int block_size, aom_film_grain_t *grain) {
|
||||
aom_image_t renoised;
|
||||
grain->apply_grain = 1;
|
||||
grain->random_seed = 1071;
|
||||
grain->random_seed = 7391;
|
||||
aom_img_alloc(&renoised, raw->fmt, raw->w, raw->h, 1);
|
||||
av1_add_film_grain(grain, denoised, &renoised);
|
||||
|
||||
if (av1_add_film_grain(grain, denoised, &renoised)) {
|
||||
fprintf(stderr, "Internal failure in av1_add_film_grain().\n");
|
||||
aom_img_free(&renoised);
|
||||
return;
|
||||
}
|
||||
|
||||
const int num_blocks_w = (raw->w + block_size - 1) / block_size;
|
||||
const int num_blocks_h = (raw->h + block_size - 1) / block_size;
|
||||
|
|
@ -324,7 +329,7 @@ int main(int argc, char *argv[]) {
|
|||
const int num_blocks_h = (info.frame_height + block_size - 1) / block_size;
|
||||
uint8_t *flat_blocks = (uint8_t *)aom_malloc(num_blocks_w * num_blocks_h);
|
||||
// Sets the random seed on the first entry in the output table
|
||||
int16_t random_seed = 1071;
|
||||
int16_t random_seed = 7391;
|
||||
aom_noise_model_t noise_model;
|
||||
aom_noise_model_params_t params = { AOM_NOISE_SHAPE_SQUARE, 3, args.bit_depth,
|
||||
high_bd };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue