Home
last modified time | relevance | path

Searched refs:flat_blocks (Results 1 – 4 of 4) sorted by relevance

/external/libaom/libaom/examples/
Dnoise_model.c178 aom_image_t *denoised, const uint8_t *flat_blocks, in print_variance_y() argument
225 flat_blocks[by * num_blocks_w + bx], block_mean, noise_std, in print_variance_y()
258 aom_image_t *denoised, uint8_t *flat_blocks, in print_debug_info() argument
262 (void)flat_blocks; in print_debug_info()
283 print_variance_y(debug_file, raw, denoised, flat_blocks, block_size, &grain); in print_debug_info()
331 uint8_t *flat_blocks = (uint8_t *)aom_malloc(num_blocks_w * num_blocks_h); in main() local
363 memset(flat_blocks, 1, num_flat_blocks); in main()
365 memset(flat_blocks, 0, num_flat_blocks); in main()
368 info.frame_width, flat_blocks); in main()
384 info.frame_height, strides, chroma_sub, flat_blocks, block_size); in main()
[all …]
/external/libaom/libaom/test/
Dnoise_model_test.cc414 std::vector<uint8_t> flat_blocks(num_blocks_w, 0); in TYPED_TEST_P() local
456 stride, &flat_blocks[0])); in TYPED_TEST_P()
459 EXPECT_EQ(0, flat_blocks[0]); in TYPED_TEST_P()
460 EXPECT_EQ(0, flat_blocks[1]); in TYPED_TEST_P()
463 EXPECT_EQ(255, flat_blocks[2]); in TYPED_TEST_P()
464 EXPECT_EQ(255, flat_blocks[3]); in TYPED_TEST_P()
465 EXPECT_EQ(255, flat_blocks[4]); in TYPED_TEST_P()
466 EXPECT_EQ(255, flat_blocks[5]); in TYPED_TEST_P()
469 EXPECT_EQ(0, flat_blocks[6]); in TYPED_TEST_P()
470 EXPECT_EQ(0, flat_blocks[7]); in TYPED_TEST_P()
[all …]
/external/libaom/libaom/aom_dsp/
Dnoise_model.c555 int stride, uint8_t *flat_blocks) { in aom_flat_block_finder_run() argument
645 flat_blocks[by * num_blocks_w + bx] = is_flat ? 255 : 0; in aom_flat_block_finder_run()
670 num_flat += flat_blocks[scores[i].index] == 0; in aom_flat_block_finder_run()
671 flat_blocks[scores[i].index] |= 1; in aom_flat_block_finder_run()
797 int alt_stride, const uint8_t *const flat_blocks, int block_size, in add_block_observations() argument
815 if (!flat_blocks[by * num_blocks_w + bx]) { in add_block_observations()
819 (by > 0 && flat_blocks[(by - 1) * num_blocks_w + bx]) ? 0 : lag; in add_block_observations()
821 (bx > 0 && flat_blocks[by * num_blocks_w + bx - 1]) ? 0 : lag; in add_block_observations()
826 (bx + 1 < num_blocks_w && flat_blocks[by * num_blocks_w + bx + 1]) in add_block_observations()
864 const uint8_t *const flat_blocks, int block_size, int num_blocks_w, in add_noise_std_observations() argument
[all …]
Dnoise_model.h158 int stride, uint8_t *flat_blocks);
245 int chroma_sub_log2[2], const uint8_t *const flat_blocks, int block_size);