Home
last modified time | relevance | path

Searched refs:y_size (Results 1 – 25 of 30) sorted by relevance

12

/external/libyuv/files/util/
Dpsnr_main.cc245 const int y_size, in UpdateMetrics() argument
253 const uint8_t* const u_org = ch_org + y_size + uv_offset; in UpdateMetrics()
254 const uint8_t* const u_rec = ch_rec + y_size; in UpdateMetrics()
255 const uint8_t* const v_org = ch_org + y_size + (uv_size - uv_offset); in UpdateMetrics()
256 const uint8_t* const v_rec = ch_rec + y_size + uv_size; in UpdateMetrics()
260 libyuv::ComputeSumSquareError(ch_org, ch_rec, y_size)); in UpdateMetrics()
266 double y_err = ComputeSumSquareError(ch_org, ch_rec, y_size); in UpdateMetrics()
275 distorted_frame->y = ComputePSNR(y_err, static_cast<double>(y_size)); in UpdateMetrics()
289 distorted_frame->y /= y_size; in UpdateMetrics()
361 const int y_size = image_width * image_height; in main() local
[all …]
Dyuvconvert.cc228 const int y_size = Abs(image_width) * Abs(image_height); in main() local
231 org_size = y_size + 2 * uv_size; // YUV original. in main()
235 const int y_size = dst_width * dst_height; in main() local
237 const size_t total_size = y_size + 2 * uv_size; in main()
/external/tensorflow/tensorflow/python/ops/
Dgradient_checker_v2.py154 y_size = _product(y_shape) * y_factor
158 jacobian = np.zeros((y_size, x_size), dtype=x.dtype.real_dtype.as_numpy_dtype)
168 for row in range(y_size):
183 if y_size == 0: # don't use 'not y_size', because y_size may not be an int
195 def _compute_numeric_jacobian(f, y_size, y_dtype, xs, param, argument
225 y_size = y_size * (2 if y_dtype.is_complex else 1)
238 jacobian = np.zeros((y_size, x_size), dtype=x_dtype)
276 y_size = _product(y_shape)
279 jacob_n = _compute_numeric_jacobian(f, y_size, y_dtype, xs,
Dgradient_checker.py170 y_size = _product(y_shape) * (2 if y.dtype.is_complex else 1)
178 jacobian = np.zeros((x_size, y_size), dtype=x_dtype)
/external/tensorflow/tensorflow/lite/delegates/gpu/metal/kernels/
Dutil.cc40 unsigned int y_size = GetOptimalSize(grid_size.y); in GetWorkGroupSizeForGrid() local
41 unsigned int z_size = std::max(1u, 32u / (x_size * y_size)); in GetWorkGroupSizeForGrid()
42 return {x_size, y_size, z_size}; in GetWorkGroupSizeForGrid()
/external/webrtc/webrtc/test/
Dframe_generator_unittest.cc49 rtc::scoped_ptr<uint8_t[]> plane_buffer(new uint8_t[y_size]); in WriteYuvFile()
50 memset(plane_buffer.get(), y, y_size); in WriteYuvFile()
51 fwrite(plane_buffer.get(), 1, y_size, file); in WriteYuvFile()
62 ASSERT_EQ(y_size, frame->allocated_size(PlaneType::kYPlane)); in CheckFrameAndMutate()
64 for (int i = 0; i < y_size; ++i) in CheckFrameAndMutate()
86 const int y_size = kFrameWidth * kFrameHeight; member in webrtc::test::FrameGeneratorTest
/external/libtextclassifier/native/lang_id/common/
Dembedding-network.cc78 const int y_size = y->size(); in SparseReluProductPlusBias() local
79 SAFTM_CHECK_EQ(weights.cols, y_size); in SparseReluProductPlusBias()
108 for (int j = 0; j < y_size; ++j, ++weight_ptr) { in SparseReluProductPlusBias()
116 weight_ptr += y_size; in SparseReluProductPlusBias()
132 for (int j = 0; j < y_size; ++j, ++weight_ptr) { in SparseReluProductPlusBias()
136 weight_ptr += y_size; in SparseReluProductPlusBias()
/external/webrtc/talk/session/media/
Dplanarfunctions_unittest.cc142 int y_size = height * width; in CreateFakeYuvTestingImage() local
157 v_size = u_size = y_size; in CreateFakeYuvTestingImage()
165 uint8_t* image_pointer = new uint8_t[y_size + u_size + v_size + kAlignment]; in CreateFakeYuvTestingImage()
167 u_pointer = ALIGNP(&image_pointer[y_size], kAlignment); in CreateFakeYuvTestingImage()
168 v_pointer = ALIGNP(&image_pointer[y_size + u_size], kAlignment); in CreateFakeYuvTestingImage()
504 int y_size = kHeight * kWidth; in TEST_F() local
515 uint8_t* u_output_pointer = y_output_pointer + y_size; in TEST_F()
542 int y_size = kHeight * kWidth; in TEST_F() local
553 uint8_t* u_output_pointer = y_output_pointer + y_size; in TEST_F()
590 int y_size = kHeight * kWidth; in TEST_P() local
[all …]
/external/OpenCL-CTS/test_conformance/thread_dimensions/
Dtest_thread_dimensions.cpp559 cl_uint x_size, y_size, z_size; in test_thread_dimensions() local
564 y_size = min_y_size; in test_thread_dimensions()
565 while (y_size <= max_y_size) { in test_thread_dimensions()
569 … log_info("Base test size %s:\n", print_dimensions(x_size, y_size, z_size, dimensions)); in test_thread_dimensions()
575 final_y_size = y_size; in test_thread_dimensions()
624 …final_y_size = (int)get_random_float(0, (y_size/size_increase_per_iteration), d)+y_size/size_incre… in test_thread_dimensions()
794 if (y_size == max_y_size) in test_thread_dimensions()
796 y_size *= size_increase_per_iteration; in test_thread_dimensions()
797 if (y_size > max_y_size) in test_thread_dimensions()
798 y_size = max_y_size; in test_thread_dimensions()
/external/tensorflow/tensorflow/core/kernels/
Dlistdiff_op.cc49 const size_t y_size = Ty.size(); in Compute() local
55 y_set.reserve(y_size); in Compute()
56 for (size_t i = 0; i < y_size; ++i) { in Compute()
/external/drm_hwcomposer/platform/
Dplatformhisi.cpp136 int y_size = adjusted_height * hnd->byte_stride; in ConvertBoInfo() local
143 bo->offsets[1] = y_size; in ConvertBoInfo()
147 bo->offsets[2] = y_size + v_size; in ConvertBoInfo()
/external/webp/src/enc/
Dpicture_enc.c98 uint64_t y_size, uv_size, a_size, total_size; in WebPPictureAllocYUVA() local
113 y_size = (uint64_t)y_stride * height; in WebPPictureAllocYUVA()
117 total_size = y_size + a_size + 2 * uv_size; in WebPPictureAllocYUVA()
138 mem += y_size; in WebPPictureAllocYUVA()
/external/webrtc/talk/media/base/
Dvideoframe.cc86 const size_t y_size = GetHeight() * GetYPitch(); in CopyToBuffer() local
89 const size_t needed = y_size + u_size + v_size; in CopyToBuffer()
92 CopyToPlanes(buffer, buffer + y_size, buffer + y_size + u_size, in CopyToBuffer()
/external/webp/src/dec/
Dbuffer_dec.c56 const uint64_t y_size = MIN_BUFFER_SIZE(width, height, y_stride); in CheckDecBuffer() local
60 ok &= (y_size <= buf->y_size); in CheckDecBuffer()
131 buf->y_size = (size_t)size; in AllocateBuffer()
/external/tensorflow/tensorflow/compiler/tests/
Dlistdiff_op_test.py71 y_size = np.random.randint(max_size + 1)
72 y = np.random.randint(int_low, int_high, size=y_size)
/external/tensorflow/tensorflow/cc/framework/
Dgradient_checker.cc249 const int64 y_size = y_shapes[y_idx].num_elements(); in ComputeNumericJacobianTranspose() local
252 for (int c = 0; c < y_size; ++c) { in ComputeNumericJacobianTranspose()
314 const int64 y_size = in InitJacobians() local
316 Tensor jacobian_t(jacobian_type, {x_size, y_size}); in InitJacobians()
/external/tensorflow/tensorflow/python/kernel_tests/
Dlistdiff_op_test.py92 y_size = np.random.randint(max_size + 1)
93 y = np.random.randint(int_low, int_high, size=y_size)
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dcudnn_batchnorm_runner.cc84 int64 y_size = 1; in MakeBatchNormDescriptors() local
93 y_size *= physical_dim_size(physical_dim); in MakeBatchNormDescriptors()
100 .set_height(y_size) in MakeBatchNormDescriptors()
/external/libvpx/libvpx/third_party/libyuv/source/
Dconvert_to_i420.cc77 int y_size = crop_width * abs_crop_height; in ConvertToI420() local
79 rotate_buffer = (uint8_t*)malloc(y_size + uv_size * 2); /* NOLINT */ in ConvertToI420()
84 dst_u = dst_y + y_size; in ConvertToI420()
/external/libyuv/files/source/
Dconvert_to_i420.cc77 int y_size = crop_width * abs_crop_height; in ConvertToI420() local
79 rotate_buffer = (uint8_t*)malloc(y_size + uv_size * 2); /* NOLINT */ in ConvertToI420()
84 dst_u = dst_y + y_size; in ConvertToI420()
/external/libaom/libaom/third_party/libyuv/source/
Dconvert_to_i420.cc72 int y_size = crop_width * abs_crop_height; in ConvertToI420() local
74 rotate_buffer = (uint8*)malloc(y_size + uv_size * 2); in ConvertToI420()
79 u = y + y_size; in ConvertToI420()
/external/minigbm/cros_gralloc/gralloc0/tests/
Dgralloctest.c543 uintptr_t y_size, c_stride, c_size, cr_offset, cb_offset; in test_yuv_info() local
565 y_size = info.stride * height; in test_yuv_info()
568 cr_offset = y_size; in test_yuv_info()
569 cb_offset = y_size + c_size; in test_yuv_info()
/external/webrtc/webrtc/modules/video_processing/
Ddeflickering.cc126 const uint32_t y_size = height * width; in ProcessFrame() local
231 for (uint32_t i = 0; i < y_size; i++) { in ProcessFrame()
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/Thumb2/
D2009-12-01-LoopIVUsers.ll6 define void @fred(i32 %three_by_three, i8* %in, double %dt1, i32 %x_size, i32 %y_size, i8* %bp) nou…
45 store i32 %y_size, i32* %y_size_addr
/external/llvm/test/CodeGen/Thumb2/
D2009-12-01-LoopIVUsers.ll6 define void @fred(i32 %three_by_three, i8* %in, double %dt1, i32 %x_size, i32 %y_size, i8* %bp) nou…
45 store i32 %y_size, i32* %y_size_addr

12