/external/libyuv/files/util/ |
D | psnr_main.cc | 238 const int y_size, const int uv_size, const size_t total_size, in UpdateMetrics() argument 242 const int uv_offset = (do_swap_uv ? uv_size : 0); in UpdateMetrics() 245 const uint8* const v_org = ch_org + y_size + (uv_size - uv_offset); in UpdateMetrics() 246 const uint8* const v_rec = ch_rec + y_size + uv_size; in UpdateMetrics() 252 libyuv::ComputeSumSquareError(u_org, u_rec, uv_size)); in UpdateMetrics() 254 libyuv::ComputeSumSquareError(v_org, v_rec, uv_size)); in UpdateMetrics() 257 double u_err = ComputeSumSquareError(u_org, u_rec, uv_size); in UpdateMetrics() 258 double v_err = ComputeSumSquareError(v_org, v_rec, uv_size); in UpdateMetrics() 266 distorted_frame->u = ComputePSNR(u_err, static_cast<double>(uv_size)); in UpdateMetrics() 267 distorted_frame->v = ComputePSNR(v_err, static_cast<double>(uv_size)); in UpdateMetrics() [all …]
|
D | convert.cc | 225 const int uv_size = ((Abs(image_width) + 1) / 2) * in main() local 227 org_size = y_size + 2 * uv_size; // YUV original. in main() 232 const int uv_size = ((dst_width + 1) / 2) * ((dst_height + 1) / 2); in main() local 233 const size_t total_size = y_size + 2 * uv_size; in main()
|
/external/webrtc/webrtc/test/ |
D | frame_generator_unittest.cc | 52 memset(plane_buffer.get(), u, uv_size); in WriteYuvFile() 53 fwrite(plane_buffer.get(), 1, uv_size, file); in WriteYuvFile() 54 memset(plane_buffer.get(), v, uv_size); in WriteYuvFile() 55 fwrite(plane_buffer.get(), 1, uv_size, file); in WriteYuvFile() 66 ASSERT_EQ(uv_size, frame->allocated_size(PlaneType::kUPlane)); in CheckFrameAndMutate() 68 for (int i = 0; i < uv_size; ++i) in CheckFrameAndMutate() 70 ASSERT_EQ(uv_size, frame->allocated_size(PlaneType::kVPlane)); in CheckFrameAndMutate() 72 for (int i = 0; i < uv_size; ++i) in CheckFrameAndMutate() 87 const int uv_size = ((kFrameHeight + 1) / 2) * ((kFrameWidth + 1) / 2); member in webrtc::test::FrameGeneratorTest
|
/external/webp/src/dec/ |
D | buffer.c | 98 uint64_t uv_size = 0, a_size = 0, total_size; in AllocateBuffer() local 106 uv_size = (uint64_t)uv_stride * ((h + 1) / 2); in AllocateBuffer() 112 total_size = size + 2 * uv_size + a_size; in AllocateBuffer() 128 buf->u_size = (size_t)uv_size; in AllocateBuffer() 129 buf->v = output + size + uv_size; in AllocateBuffer() 131 buf->v_size = (size_t)uv_size; in AllocateBuffer() 133 buf->a = output + size + 2 * uv_size; in AllocateBuffer()
|
/external/webrtc/talk/session/media/ |
D | planarfunctions_unittest.cc | 505 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1); in TEST_F() local 516 uint8_t* v_output_pointer = u_output_pointer + uv_size; in TEST_F() 543 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1); in TEST_F() local 554 uint8_t* v_output_pointer = u_output_pointer + uv_size; in TEST_F() 591 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1); in TEST_P() local 602 uint8_t* v_output_pointer = u_output_pointer + uv_size; in TEST_P() 637 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1); in TEST_P() local 648 uint8_t* v_output_pointer = u_output_pointer + uv_size; in TEST_P() 685 int uv_size = ((kHeight + 1) >> 1) * ((kWidth + 1) >> 1); \ 696 uint8_t* v_output_pointer = u_output_pointer + uv_size; \ [all …]
|
/external/webp/src/enc/ |
D | picture.c | 98 uint64_t y_size, uv_size, a_size, total_size; in WebPPictureAllocYUVA() local 114 uv_size = (uint64_t)uv_stride * uv_height; in WebPPictureAllocYUVA() 117 total_size = y_size + a_size + 2 * uv_size; in WebPPictureAllocYUVA() 141 mem += uv_size; in WebPPictureAllocYUVA() 143 mem += uv_size; in WebPPictureAllocYUVA()
|
/external/libvpx/libvpx/third_party/libyuv/source/ |
D | convert_to_i420.cc | 73 int uv_size = ((crop_width + 1) / 2) * ((abs_crop_height + 1) / 2); in ConvertToI420() local 74 rotate_buffer = (uint8*)malloc(y_size + uv_size * 2); in ConvertToI420() 80 v = u + uv_size; in ConvertToI420()
|
/external/libyuv/files/source/ |
D | convert_to_i420.cc | 72 int uv_size = ((crop_width + 1) / 2) * ((abs_crop_height + 1) / 2); in ConvertToI420() local 73 rotate_buffer = (uint8*)malloc(y_size + uv_size * 2); in ConvertToI420() 79 v = u + uv_size; in ConvertToI420()
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_pickmode.c | 783 const BLOCK_SIZE uv_size = get_plane_block_size(bsize, &xd->plane[1]); in encode_breakout_test() local 838 var_u = cpi->fn_ptr[uv_size].vf(x->plane[1].src.buf, in encode_breakout_test() 845 var_v = cpi->fn_ptr[uv_size].vf(x->plane[2].src.buf, in encode_breakout_test()
|