Home
last modified time | relevance | path

Searched refs:chroma_width (Results 1 – 16 of 16) sorted by relevance

/external/webrtc/test/testsupport/
Dvideo_frame_writer_unittest.cc48 int chroma_width = buffer->ChromaWidth(); in CreateI420Buffer() local
50 for (int x = 0; x < chroma_width; x++) { in CreateI420Buffer()
52 buffer->MutableDataU()[x + y * chroma_width] = 1; in CreateI420Buffer()
53 buffer->MutableDataV()[x + y * chroma_width] = 255; in CreateI420Buffer()
77 int chroma_width = expected->ChromaWidth(); in AssertI420BuffersEq() local
79 for (int x = 0; x < chroma_width; x++) { in AssertI420BuffersEq()
81 ASSERT_EQ(actual->DataU()[x + y * chroma_width], in AssertI420BuffersEq()
82 expected->DataU()[x + y * chroma_width]); in AssertI420BuffersEq()
83 ASSERT_EQ(actual->DataV()[x + y * chroma_width], in AssertI420BuffersEq()
84 expected->DataV()[x + y * chroma_width]); in AssertI420BuffersEq()
/external/libgav1/src/dsp/arm/
Dfilm_grain_neon.cc266 const int chroma_width = in ApplyAutoRegressiveFilterToChromaGrains_NEON() local
273 (chroma_width - 2 * kAutoRegressionBorder) & 7; in ApplyAutoRegressiveFilterToChromaGrains_NEON()
277 u_grain += chroma_width * y; in ApplyAutoRegressiveFilterToChromaGrains_NEON()
278 v_grain += chroma_width * y; in ApplyAutoRegressiveFilterToChromaGrains_NEON()
302 GetSignedSource8(u_grain + x + delta_row * chroma_width - in ApplyAutoRegressiveFilterToChromaGrains_NEON()
305 GetSignedSource8(u_grain + x + delta_row * chroma_width - in ApplyAutoRegressiveFilterToChromaGrains_NEON()
308 GetSignedSource8(v_grain + x + delta_row * chroma_width - in ApplyAutoRegressiveFilterToChromaGrains_NEON()
311 GetSignedSource8(v_grain + x + delta_row * chroma_width - in ApplyAutoRegressiveFilterToChromaGrains_NEON()
374 } while (x < chroma_width - kAutoRegressionBorder - chroma_width_remainder); in ApplyAutoRegressiveFilterToChromaGrains_NEON()
390 u_grain + x + delta_row * chroma_width - auto_regression_coeff_lag); in ApplyAutoRegressiveFilterToChromaGrains_NEON()
[all …]
/external/webrtc/sdk/objc/unittests/
Dframe_buffer_helpers.mm58 int chroma_width = buffer->ChromaWidth();
60 for (int x = 0; x < chroma_width; x++) {
62 buffer->MutableDataU()[x + y * chroma_width] = 255 * x / (chroma_width - 1);
63 buffer->MutableDataV()[x + y * chroma_width] = 255 * y / (chroma_height - 1);
/external/libgav1/src/
Dfilm_grain.cc389 int chroma_width, in GenerateChromaGrains() argument
395 memset(u_grain, 0, chroma_height * chroma_width * sizeof(*u_grain)); in GenerateChromaGrains()
399 assert(chroma_width > 0); in GenerateChromaGrains()
407 } while (++x < chroma_width); in GenerateChromaGrains()
409 u_grain_row += chroma_width; in GenerateChromaGrains()
413 memset(v_grain, 0, chroma_height * chroma_width * sizeof(*v_grain)); in GenerateChromaGrains()
423 } while (++x < chroma_width); in GenerateChromaGrains()
425 v_grain_row += chroma_width; in GenerateChromaGrains()
Dfilm_grain_test.cc956 const int chroma_width = 44; in TEST() local
963 for (int x = 0; x < chroma_width; ++x) { in TEST()
964 EXPECT_NE(u_grain[y * chroma_width + x], 0); in TEST()
965 EXPECT_NE(v_grain[y * chroma_width + x], 0); in TEST()
969 FilmGrain<8>::GenerateChromaGrains(film_grain_params, chroma_width, in TEST()
973 for (int x = 0; x < chroma_width; ++x) { in TEST()
974 EXPECT_EQ(u_grain[y * chroma_width + x], 0); in TEST()
975 EXPECT_EQ(v_grain[y * chroma_width + x], 0); in TEST()
1266 const int chroma_width = in TestAutoRegressiveFilterChroma() local
1322 chroma_width, chroma_height, in TestAutoRegressiveFilterChroma()
[all …]
Dfilm_grain.h86 int chroma_width, int chroma_height,
/external/libgav1/src/dsp/x86/
Dfilm_grain_sse4.cc230 const int chroma_width = (width + subsampling_x) >> subsampling_x; in BlendChromaPlaneWithCfl_SSE4_1() local
233 const int safe_chroma_width = (chroma_width - (width & 1)) & ~7; in BlendChromaPlaneWithCfl_SSE4_1()
257 if (x < chroma_width) { in BlendChromaPlaneWithCfl_SSE4_1()
353 const int chroma_width = (width + subsampling_x) >> subsampling_x; in BlendChromaPlane8bpp_SSE4_1() local
357 const int safe_chroma_width = (chroma_width - (width & 1)) & ~7; in BlendChromaPlane8bpp_SSE4_1()
379 if (x < chroma_width) { in BlendChromaPlane8bpp_SSE4_1()
391 const int valid_range_chroma = chroma_width - x; in BlendChromaPlane8bpp_SSE4_1()
/external/libgav1/src/dsp/
Dfilm_grain.cc181 const int chroma_width = in ApplyAutoRegressiveFilterToChromaGrains_C() local
187 x < chroma_width - kAutoRegressionBorder; ++x) { in ApplyAutoRegressiveFilterToChromaGrains_C()
201 u_grain[(y + delta_row) * chroma_width + (x + delta_column)] * in ApplyAutoRegressiveFilterToChromaGrains_C()
204 v_grain[(y + delta_row) * chroma_width + (x + delta_column)] * in ApplyAutoRegressiveFilterToChromaGrains_C()
226 u_grain[y * chroma_width + x] = Clip3( in ApplyAutoRegressiveFilterToChromaGrains_C()
227 u_grain[y * chroma_width + x] + RightShiftWithRounding(sum_u, shift), in ApplyAutoRegressiveFilterToChromaGrains_C()
229 v_grain[y * chroma_width + x] = Clip3( in ApplyAutoRegressiveFilterToChromaGrains_C()
230 v_grain[y * chroma_width + x] + RightShiftWithRounding(sum_v, shift), in ApplyAutoRegressiveFilterToChromaGrains_C()
543 const int chroma_width = (width + subsampling_x) >> subsampling_x; in BlendNoiseWithImageChroma_C() local
587 } while (++x < chroma_width); in BlendNoiseWithImageChroma_C()
[all …]
/external/webrtc/common_video/
Dvideo_frame_unittest.cc67 int chroma_width = buffer->ChromaWidth(); in CreateGradient() local
69 for (int x = 0; x < chroma_width; x++) { in CreateGradient()
71 buffer->MutableDataU()[x + y * chroma_width] = in CreateGradient()
72 255 * x / (chroma_width - 1); in CreateGradient()
73 buffer->MutableDataV()[x + y * chroma_width] = in CreateGradient()
91 int chroma_width = buffer->ChromaWidth(); in CreateNV12Gradient() local
93 for (int x = 0; x < chroma_width; x++) { in CreateNV12Gradient()
96 255 * x / (chroma_width - 1); in CreateNV12Gradient()
/external/webrtc/media/base/
Dfake_video_renderer.cc49 int chroma_width = i420_buffer->ChromaWidth(); in CheckFrameColorYuv() local
58 for (int j = 0; j < chroma_width; ++j) { in CheckFrameColorYuv()
/external/webrtc/common_video/libyuv/
Dwebrtc_libyuv.cc68 int chroma_width = input_frame->ChromaWidth(); in ExtractBuffer() local
74 buffer + width * height, chroma_width, in ExtractBuffer()
75 buffer + width * height + chroma_width * chroma_height, in ExtractBuffer()
76 chroma_width, width, height); in ExtractBuffer()
Dlibyuv_unittest.cc49 int chroma_width = frame.ChromaWidth(); in PrintVideoFrame() local
55 if (PrintPlane(frame.DataU(), chroma_width, chroma_height, frame.StrideU(), in PrintVideoFrame()
59 if (PrintPlane(frame.DataV(), chroma_width, chroma_height, frame.StrideV(), in PrintVideoFrame()
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_mpeg12_decoder.h51 unsigned chroma_width, chroma_height; member
Dvl_mpeg12_decoder.c952 if (!vl_zscan_init(&dec->zscan_c, dec->context, dec->chroma_width, dec->chroma_height, in init_zscan()
1020 if(!vl_idct_init(&dec->idct_c, dec->context, dec->chroma_width, dec->chroma_height, in init_idct()
1142 dec->chroma_width = dec->base.width / 2; in vl_create_mpeg12_decoder()
1146 dec->chroma_width = dec->base.width / 2; in vl_create_mpeg12_decoder()
1150 dec->chroma_width = dec->base.width; in vl_create_mpeg12_decoder()
/external/libvpx/vp9/encoder/x86/
Dtemporal_filter_sse4.c804 chroma_width = block_width >> ss_x; in vp9_apply_temporal_filter_sse4_1() local
847 for (blk_col = 0; blk_col < chroma_width; blk_col += 8) { in vp9_apply_temporal_filter_sse4_1()
Dhighbd_temporal_filter_sse4.c821 chroma_width = block_width >> ss_x; in vp9_highbd_apply_temporal_filter_sse4_1() local
864 for (blk_col = 0; blk_col < chroma_width; blk_col += 8) { in vp9_highbd_apply_temporal_filter_sse4_1()