Home
last modified time | relevance | path

Searched refs:block_width (Results 1 – 25 of 78) sorted by relevance

1234

/external/libaom/libaom/test/
Dsubtract_test.cc47 const int block_width = block_size_wide[bsize]; in TEST_P() local
50 aom_memalign(16, sizeof(*diff) * block_width * block_height * 2)); in TEST_P()
52 aom_memalign(16, block_width * block_height * 2)); in TEST_P()
54 aom_memalign(16, block_width * block_height * 2)); in TEST_P()
58 for (int c = 0; c < block_width * 2; ++c) { in TEST_P()
59 src[r * block_width * 2 + c] = rnd.Rand8(); in TEST_P()
60 pred[r * block_width * 2 + c] = rnd.Rand8(); in TEST_P()
64 GetParam()(block_height, block_width, diff, block_width, src, block_width, in TEST_P()
65 pred, block_width); in TEST_P()
68 for (int c = 0; c < block_width; ++c) { in TEST_P()
[all …]
Dintrapred_test.cc54 : pred_fn(pred), ref_fn(ref), block_width(block_width_value), in IntraPredFunc()
59 int block_width; member
72 const int block_width = params_.block_width; in RunTest() local
81 for (int x = -1; x <= block_width * 2; x++) { in RunTest()
104 stride_ = params_.block_width * 3; in SetUp()
112 const int block_width = params_.block_width; in CheckPrediction() local
115 for (int x = 0; x < block_width; x++) { in CheckPrediction()
Dtemporal_filter_yuv_test.cc48 unsigned int block_height, unsigned int block_width, in GetFilterWeight() argument
54 return blk_fw[2 * (row >= block_height / 2) + (col >= block_width / 2)]; in GetFilterWeight()
213 unsigned int block_width, unsigned int block_height, in ApplyReferenceFilter() argument
219 const int uv_block_width = block_width >> ss_x, in ApplyReferenceFilter()
221 const int y_src_stride = block_width, y_pre_stride = block_width; in ApplyReferenceFilter()
223 const int y_diff_stride = block_width, uv_diff_stride = uv_block_width; in ApplyReferenceFilter()
224 const int y_count_stride = block_width, u_count_stride = uv_block_width, in ApplyReferenceFilter()
226 const int y_accum_stride = block_width, u_accum_stride = uv_block_width, in ApplyReferenceFilter()
237 for (int col = 0; col < (int)block_width; col++) { in ApplyReferenceFilter()
257 for (int col = 0; col < (int)block_width; col++) { in ApplyReferenceFilter()
[all …]
/external/pdfium/third_party/libopenjpeg20/
Dsparse_array.c38 OPJ_UINT32 block_width; member
47 OPJ_UINT32 block_width, in opj_sparse_array_int32_create() argument
52 if (width == 0 || height == 0 || block_width == 0 || block_height == 0) { in opj_sparse_array_int32_create()
55 if (block_width > ((OPJ_UINT32)~0U) / block_height / sizeof(OPJ_INT32)) { in opj_sparse_array_int32_create()
63 sa->block_width = block_width; in opj_sparse_array_int32_create()
65 sa->block_count_hor = opj_uint_ceildiv(width, block_width); in opj_sparse_array_int32_create()
119 const OPJ_UINT32 block_width = sa->block_width; in opj_sparse_array_int32_read_or_write() local
134 block_x = x0 / block_width; in opj_sparse_array_int32_read_or_write()
139 x_incr = (x == x0) ? block_width - (x0 % block_width) : block_width; in opj_sparse_array_int32_read_or_write()
140 block_x_offset = block_width - x_incr; in opj_sparse_array_int32_read_or_write()
[all …]
/external/libaom/libaom/av1/encoder/x86/
Dtemporal_filter_avx2.c35 const unsigned int stride2, const int block_width, const int block_height, in get_squared_error_16x16_avx2() argument
37 (void)block_width; in get_squared_error_16x16_avx2()
63 const unsigned int stride2, const int block_width, const int block_height, in get_squared_error_32x32_avx2() argument
65 (void)block_width; in get_squared_error_32x32_avx2()
97 int block_width) { in xx_load_and_pad() argument
103 if (col == block_width - 4) { in xx_load_and_pad()
132 const unsigned int stride2, const int block_width, const int block_height, in apply_temporal_filter_planewise() argument
138 assert(((block_width == 32) && (block_height == 32)) || in apply_temporal_filter_planewise()
139 ((block_width == 16) && (block_height == 16))); in apply_temporal_filter_planewise()
148 if (block_width == 32) { in apply_temporal_filter_planewise()
[all …]
Dtemporal_filter_sse2.c35 const int block_width, const int block_height, in get_squared_error() argument
43 for (int j = 0; j < block_width; j += 16) { in get_squared_error()
66 *(uint32_t *)(dst + block_width + 2) = in get_squared_error()
76 int block_width) { in xx_load_and_pad() argument
84 dstvec[1] = (col < block_width - 4) ? vtmp2 : _mm_shuffle_epi32(vtmp2, 0x54); in xx_load_and_pad()
107 const unsigned int stride2, const int block_width, const int block_height, in apply_temporal_filter_planewise() argument
113 assert(((block_width == 32) && (block_height == 32)) || in apply_temporal_filter_planewise()
114 ((block_width == 16) && (block_height == 16))); in apply_temporal_filter_planewise()
123 get_squared_error(frame1, stride, frame2, stride2, block_width, block_height, in apply_temporal_filter_planewise()
130 for (int col = 0; col < block_width; col += 4) { in apply_temporal_filter_planewise()
[all …]
Dtemporal_filter_sse4.c336 int uv_pre_stride, unsigned int block_width, unsigned int block_height, in apply_temporal_filter_luma_16() argument
363 assert(block_width == 16); in apply_temporal_filter_luma_16()
365 (void)block_width; in apply_temporal_filter_luma_16()
528 int uv_pre_stride, unsigned int block_width, unsigned int block_height, in apply_temporal_filter_luma() argument
534 const unsigned int mid_width = block_width >> 1, in apply_temporal_filter_luma()
535 last_width = block_width - blk_col_step; in apply_temporal_filter_luma()
541 if (block_width == 16) { in apply_temporal_filter_luma()
799 int uv_pre_stride, unsigned int block_width, unsigned int block_height, in apply_temporal_filter_chroma() argument
803 const unsigned int uv_width = block_width >> ss_x, in apply_temporal_filter_chroma()
939 const unsigned int block_width = block_size_wide[block_size]; in apply_temporal_filter_yuv() local
[all …]
/external/libgav1/libgav1/src/post_filter/
Dcdef.cc30 void CopyRowForCdef(const Pixel* src, int block_width, int unit_width, in CopyRowForCdef() argument
40 memcpy(dst, src, block_width * sizeof(dst[0])); in CopyRowForCdef()
42 Memset(dst + block_width, kCdefLargeValue, in CopyRowForCdef()
43 unit_width + kCdefBorder - block_width); in CopyRowForCdef()
45 memcpy(dst + block_width, src + block_width, in CopyRowForCdef()
46 (unit_width + kCdefBorder - block_width) * sizeof(dst[0])); in CopyRowForCdef()
53 for (int x = 0; x < block_width; ++x) { in CopyRowForCdef()
56 for (int x = block_width; x < unit_width + kCdefBorder; ++x) { in CopyRowForCdef()
107 const int block_width = MultiplyBy4(block_width4x4) >> subsampling_x; in PrepareCdefBlock() local
113 const int unit_width = Align(block_width, 8 >> subsampling_x); in PrepareCdefBlock()
[all …]
/external/libgav1/libgav1/src/tile/bitstream/
Dpalette.cc256 int block_width = block.width; in ReadPaletteTokens() local
260 block_width, MultiplyBy4(frame_header_.columns4x4 - block.column4x4)); in ReadPaletteTokens()
263 block_width >>= sequence_header_.color_config.subsampling_x; in ReadPaletteTokens()
270 if (block_width < 4) { in ReadPaletteTokens()
271 block_width += 2; in ReadPaletteTokens()
276 block_height, block_width, /*zero_initialize=*/false)) { in ReadPaletteTokens()
300 if (screen_width < block_width) { in ReadPaletteTokens()
306 block_width - screen_width); in ReadPaletteTokens()
313 block_width); in ReadPaletteTokens()
/external/libgav1/libgav1/src/dsp/
Dintrapred.cc37 template <int block_width, int block_height, typename Pixel>
62 template <int block_width, int block_height, int bitdepth, typename Pixel>
73 template <int block_width, int block_height, typename Pixel>
74 void IntraPredFuncs_C<block_width, block_height, Pixel>::DcTop( in DcTop()
77 int sum = block_width >> 1; // rounder in DcTop()
79 for (int x = 0; x < block_width; ++x) sum += top[x]; in DcTop()
80 const int dc = sum >> FloorLog2(block_width); in DcTop()
85 Memset(dst, dc, block_width); in DcTop()
90 template <int block_width, int block_height, typename Pixel>
91 void IntraPredFuncs_C<block_width, block_height, Pixel>::DcLeft( in DcLeft()
[all …]
Dwarp.cc66 const int block_start_y, const int block_width, in Warp_C() argument
70 assert(block_width >= 8 && block_height >= 8); in Warp_C()
72 assert(dest_stride == block_width); in Warp_C()
104 assert(block_width >= 8); in Warp_C()
110 for (int start_x = block_start_x; start_x < block_start_x + block_width; in Warp_C()
/external/libgav1/libgav1/src/dsp/arm/
Dintrapred_cfl_neon.cc97 template <int block_width, int block_height>
104 if (block_width == 4) { in CflSubsampler420_NEON()
124 } else if (block_width == 8) { in CflSubsampler420_NEON()
164 for (int x = 0; x < block_width; x += 16) { in CflSubsampler420_NEON()
199 const uint32_t average = Average(sum, block_width, block_height); in CflSubsampler420_NEON()
200 BlockSubtract(average, luma, block_width, block_height); in CflSubsampler420_NEON()
203 template <int block_width, int block_height>
210 if (block_width == 4) { in CflSubsampler444_NEON()
229 } else if (block_width == 8) { in CflSubsampler444_NEON()
258 for (int x = 0; x < block_width; x += 16) { in CflSubsampler444_NEON()
[all …]
/external/libvpx/libvpx/test/
Dyuv_temporal_filter_test.cc28 int uv_pre_stride, unsigned int block_width, unsigned int block_height,
46 unsigned int block_height, unsigned int block_width, in GetFilterWeight() argument
52 return blk_fw[2 * (row >= block_height / 2) + (col >= block_width / 2)]; in GetFilterWeight()
120 unsigned int block_width, unsigned int block_height, int ss_x, int ss_y, in ApplyReferenceFilter() argument
132 const int uv_block_width = block_width >> ss_x, in ApplyReferenceFilter()
136 const int y_diff_stride = block_width, uv_diff_stride = uv_block_width; in ApplyReferenceFilter()
138 Buffer<int> y_dif = Buffer<int>(block_width, block_height, 0); in ApplyReferenceFilter()
171 for (int col = 0; col < static_cast<int>(block_width); col++) { in ApplyReferenceFilter()
191 for (int col = 0; col < static_cast<int>(block_width); col++) { in ApplyReferenceFilter()
195 block_width, blk_fw, use_32x32); in ApplyReferenceFilter()
[all …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_temporal_filter.c238 unsigned int block_width, in get_filter_weight() argument
246 if (j < block_width / 2) { in get_filter_weight()
253 if (j < block_width / 2) { in get_filter_weight()
264 int uv_buf_stride, unsigned int block_width, unsigned int block_height, in vp9_apply_temporal_filter_c() argument
271 const unsigned int uv_block_width = block_width >> ss_x; in vp9_apply_temporal_filter_c()
289 for (j = 0; j < block_width; j++) { in vp9_apply_temporal_filter_c()
291 y_frame1[i * (int)y_stride + j] - y_pred[i * (int)block_width + j]; in vp9_apply_temporal_filter_c()
309 for (j = 0; j < block_width; j++) { in vp9_apply_temporal_filter_c()
312 get_filter_weight(i, j, block_height, block_width, blk_fw, use_32x32); in vp9_apply_temporal_filter_c()
327 col < (int)block_width) { in vp9_apply_temporal_filter_c()
[all …]
/external/minigbm/
Drockchip.c43 const uint32_t block_width = 4 * clump_width; in afbc_bo_from_format() local
46 const uint32_t block_width = 8 * clump_width; in afbc_bo_from_format() local
51 const uint32_t body_block_size = block_width * block_height * pixel_size; in afbc_bo_from_format()
52 const uint32_t width_in_blocks = DIV_ROUND_UP(width, block_width); in afbc_bo_from_format()
66 bo->meta.strides[0] = width_in_blocks * block_width * pixel_size; in afbc_bo_from_format()
/external/libvpx/libvpx/vp9/encoder/x86/
Dtemporal_filter_sse4.c276 int uv_pre_stride, unsigned int block_width, unsigned int block_height, in vp9_apply_temporal_filter_luma_16() argument
303 assert(block_width == 16); in vp9_apply_temporal_filter_luma_16()
305 (void)block_width; in vp9_apply_temporal_filter_luma_16()
464 int uv_pre_stride, unsigned int block_width, unsigned int block_height, in vp9_apply_temporal_filter_luma() argument
470 const unsigned int mid_width = block_width >> 1, in vp9_apply_temporal_filter_luma()
471 last_width = block_width - blk_col_step; in vp9_apply_temporal_filter_luma()
477 if (block_width == 16) { in vp9_apply_temporal_filter_luma()
725 int uv_pre_stride, unsigned int block_width, unsigned int block_height, in vp9_apply_temporal_filter_chroma() argument
729 const unsigned int uv_width = block_width >> ss_x, in vp9_apply_temporal_filter_chroma()
858 int uv_pre_stride, unsigned int block_width, unsigned int block_height, in vp9_apply_temporal_filter_sse4_1() argument
[all …]
Dhighbd_temporal_filter_sse4.c197 int uv_pre_stride, unsigned int block_width, unsigned int block_height, in vp9_highbd_apply_temporal_filter_luma_8() argument
223 assert(block_width == 8); in vp9_highbd_apply_temporal_filter_luma_8()
225 (void)block_width; in vp9_highbd_apply_temporal_filter_luma_8()
370 int uv_pre_stride, unsigned int block_width, unsigned int block_height, in vp9_highbd_apply_temporal_filter_luma() argument
376 const unsigned int mid_width = block_width >> 1, in vp9_highbd_apply_temporal_filter_luma()
377 last_width = block_width - blk_col_step; in vp9_highbd_apply_temporal_filter_luma()
726 int uv_pre_stride, unsigned int block_width, unsigned int block_height, in vp9_highbd_apply_temporal_filter_chroma() argument
730 const unsigned int uv_width = block_width >> ss_x, in vp9_highbd_apply_temporal_filter_chroma()
865 int uv_pre_stride, unsigned int block_width, unsigned int block_height, in vp9_highbd_apply_temporal_filter_sse4_1() argument
870 chroma_width = block_width >> ss_x; in vp9_highbd_apply_temporal_filter_sse4_1()
[all …]
/external/tensorflow/tensorflow/tools/graph_transforms/
Dflatten_atrous.cc65 const int32 block_width = block_shape.flat<int32>()(1); in FlattenAtrousConv() local
77 (filter_width - 1) * block_width + 1; in FlattenAtrousConv()
91 upsampled_filter_eigen(block_height * h, block_width * w, c_in, in FlattenAtrousConv()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_tile.c477 void get_tile_size(mesa_format format, unsigned *block_width, unsigned *block_height) in get_tile_size() argument
482 *block_width = 1; in get_tile_size()
486 *block_width = 2; in get_tile_size()
490 *block_width = 4; in get_tile_size()
496 *block_width = 4; in get_tile_size()
501 *block_width = 8; in get_tile_size()
506 *block_width = 8; in get_tile_size()
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_tile.c477 void get_tile_size(mesa_format format, unsigned *block_width, unsigned *block_height) in get_tile_size() argument
482 *block_width = 1; in get_tile_size()
486 *block_width = 2; in get_tile_size()
490 *block_width = 4; in get_tile_size()
496 *block_width = 4; in get_tile_size()
501 *block_width = 8; in get_tile_size()
506 *block_width = 8; in get_tile_size()
/external/mesa3d/src/mesa/main/
Dformat_parser.py235 …def __init__(self, name, layout, block_width, block_height, block_depth, channels, swizzle, colors… argument
256 self.block_width = block_width
371 return self.block_width != 1 or self.block_height != 1 or self.block_depth != 1
563 block_width = int(fields[2])
574 … yield Format(name, layout, block_width, block_height, block_depth, channels, swizzle, colorspace)
/external/virglrenderer/src/gallium/auxiliary/util/
Du_format_parse.py107 …def __init__(self, name, layout, block_width, block_height, le_channels, le_swizzles, be_channels,… argument
110 self.block_width = block_width
339 block_width, block_height = map(int, fields[2:4])
362 …format = Format(name, layout, block_width, block_height, le_channels, le_swizzles, be_channels, be…
/external/mesa3d/src/util/format/
Du_format_parse.py115 …def __init__(self, name, layout, block_width, block_height, block_depth, le_channels, le_swizzles,… argument
118 self.block_width = block_width
368 block_width, block_height, block_depth = map(int, fields[2:5])
391 …format = Format(name, layout, block_width, block_height, block_depth, le_channels, le_swizzles, be…
/external/mesa3d/src/freedreno/vulkan/
Dvk_format_parse.py115 …def __init__(self, name, layout, block_width, block_height, le_channels, le_swizzles, be_channels,… argument
118 self.block_width = block_width
362 block_width, block_height = map(int, fields[2:4])
385 …format = Format(name, layout, block_width, block_height, le_channels, le_swizzles, be_channels, be…
/external/libgav1/libgav1/src/dsp/x86/
Dintrapred_cfl_sse4.cc156 const int block_width = 4; in CflSubsampler444_4xH_SSE4_1() local
158 if (block_height <= max_luma_height && block_width <= max_luma_width) { in CflSubsampler444_4xH_SSE4_1()
173 const int block_height = 1 << block_height_log2, block_width = 8; in CflSubsampler444_8xH_SSE4_1() local
175 const int invisible_width = inside ? 0 : block_width - max_luma_width; in CflSubsampler444_8xH_SSE4_1()
259 const int block_width = 8; in CflSubsampler444_8xH_SSE4_1() local
261 const int horz_inside = block_width <= max_luma_width; in CflSubsampler444_8xH_SSE4_1()
283 const int block_width = 1 << block_width_log2; in CflSubsampler444_SSE4_1() local
332 if (block_width == 32) { in CflSubsampler444_SSE4_1()
376 if (block_width == 32) { in CflSubsampler444_SSE4_1()
391 for (int x = 0; x < block_width; x += 8) { in CflSubsampler444_SSE4_1()
[all …]

1234