Home
last modified time | relevance | path

Searched refs:width_ (Results 1 – 25 of 201) sorted by relevance

123456789

/external/webrtc/common_video/libyuv/
Dlibyuv_unittest.cc44 const int width_; member in webrtc::TestLibYuv
54 width_(352), in TestLibYuv()
56 size_y_(width_ * height_), in TestLibYuv()
57 size_uv_(((width_ + 1) / 2) * ((height_ + 1) / 2)), in TestLibYuv()
68 test::ReadI420Buffer(width_, height_, source_file_)); in SetUp()
100 I420Buffer::Create(width_, height_); in TEST_F()
106 int y_size = width_ * height_; in TEST_F()
109 out_i420_buffer.get(), width_, out_i420_buffer.get() + y_size, in TEST_F()
110 width_ >> 1, out_i420_buffer.get() + y_size + u_size, width_ >> 1, in TEST_F()
114 width_, height_); in TEST_F()
[all …]
/external/webrtc/rtc_tools/converter/
Dconverter.h33 int width_; // Width of the video (respectively of the RGBA frames).
37 int YPlaneSize() const { return width_ * height_; } in YPlaneSize()
40 int UPlaneSize() const { return ((width_ + 1) / 2) * ((height_) / 2); } in UPlaneSize()
43 int VPlaneSize() const { return ((width_ + 1) / 2) * ((height_) / 2); } in VPlaneSize()
46 int SrcStrideFrame() const { return width_ * 4; } in SrcStrideFrame()
49 int DstStrideY() const { return width_; } in DstStrideY()
52 int DstStrideU() const { return (width_ + 1) / 2; } in DstStrideU()
55 int DstStrideV() const { return (width_ + 1) / 2; } in DstStrideV()
58 int InputFrameSize() const { return width_ * height_ * 4; } in InputFrameSize()
/external/libchrome/mojo/public/cpp/bindings/tests/
Drect_chromium.h21 width_(other.width_), in RectChromium()
24 x_(x), y_(y), width_(width), height_(height) { in RectChromium()
25 DCHECK_GE(width_, 0); in RectChromium()
33 width_ = other.width_;
44 int width() const { return width_; } in width()
47 width_ = width; in set_width()
56 int GetArea() const { return width_ * height_; } in GetArea()
67 int width_ = 0; variable
Drect_blink.h20 x_(x), y_(y), width_(width), height_(height) { in RectBlink()
23 DCHECK_GE(width_, 0); in RectBlink()
40 int width() const { return width_; } in width()
43 width_ = width; in setWidth()
52 int computeArea() const { return width_ * height_; } in computeArea()
63 int width_ = 0; variable
Dshared_rect.h19 : x_(x), y_(y), width_(width), height_(height) {} in SharedRect()
27 int width() const { return width_; } in width()
28 void set_width(int width) { width_ = width; } in set_width()
36 int width_ = 0; variable
/external/libvpx/libvpx/test/
Dbuffer.h31 : width_(width), height_(height), top_padding_(top_padding), in Buffer()
38 : width_(width), height_(height), top_padding_(top_padding), in Buffer()
45 : width_(width), height_(height), top_padding_(padding), in Buffer()
51 : width_(width), height_(height), top_padding_(padding), in Buffer()
107 EXPECT_GT(width_, 0); in Init()
113 stride_ = left_padding_ + width_ + right_padding_; in Init()
122 if (stride_ != width_) { in Init()
137 const int width_; variable
162 for (int width = 0; width < width_; ++width) { in Set()
174 for (int width = 0; width < width_; ++width) { in Set()
[all …]
Dblockiness_test.cc36 BlockinessTestBase(int width, int height) : width_(width), height_(height) {} in BlockinessTestBase()
60 source_stride_ = (width_ + 31) & ~31; in SetUp()
61 reference_stride_ = width_ * 2; in SetUp()
75 FillConstant(data, stride, fill_constant, width_, height_); in FillConstant()
87 FillRandom(data, stride, width_, height_); in FillRandom()
92 for (int w = 0; w < width_; w += 4) { in FillRandomBlocky()
100 for (int w = 0; w < width_; w += 4) { in FillCheckerboard()
117 for (int w = taps; w < width_; ++w) { in Blur()
122 for (int w = 0; w < width_; ++w) { in Blur()
132 int width_, height_; member in __anon6aa2156f0111::BlockinessTestBase
[all …]
Ddecode_svc_test.cc39 ASSERT_EQ(img.d_w, width_); in DecompressedFrameHook()
45 unsigned int width_; member in __anonac9ee4f10111::DecodeSvcTest
63 width_ = 320; in TEST_P()
80 width_ = 640; in TEST_P()
97 width_ = 1280; in TEST_P()
115 width_ = 1280; in TEST_P()
Dconsistency_test.cc40 ConsistencyTestBase(int width, int height) : width_(width), height_(height) {} in ConsistencyTestBase()
76 source_stride_ = (width_ + 31) & ~31; in SetUp()
77 reference_stride_ = width_ * 2; in SetUp()
90 FillRandom(data, stride, width_, height_); in FillRandom()
104 for (int w = taps; w < width_; ++w) { in Blur()
109 for (int w = 0; w < width_; ++w) { in Blur()
119 int width_, height_; member in __anon4a80d0940111::ConsistencyTestBase
143 width_, height_, ssim_array_, &metrics_, 1); in CheckConsistency()
/external/libgav1/libgav1/src/
Dfilm_grain.cc272 width_(width), in FilmGrain()
431 noise_buffer_size += max_luma_num * kNoiseStripeHeight * width_; in AllocateNoiseStripes()
436 SubsampledValue(width_, subsampling_x_); in AllocateNoiseStripes()
442 noise_stripes_[kPlaneY].Reset(max_luma_num, kNoiseStripeHeight * width_, in AllocateNoiseStripes()
444 noise_buffer += max_luma_num * kNoiseStripeHeight * width_; in AllocateNoiseStripes()
449 SubsampledValue(width_, subsampling_x_), in AllocateNoiseStripes()
452 SubsampledValue(width_, subsampling_x_); in AllocateNoiseStripes()
455 SubsampledValue(width_, subsampling_x_), in AllocateNoiseStripes()
464 !noise_image_[kPlaneY].Reset(height_, width_ + kNoiseImagePadding, in AllocateNoiseImage()
471 ((width_ + subsampling_x_) >> subsampling_x_) + kNoiseImagePadding, in AllocateNoiseImage()
[all …]
/external/webrtc/examples/peerconnection/client/linux/
Dmain_wnd.cc445 width_ = remote_renderer->width(); in OnRedraw()
449 draw_buffer_size_ = (width_ * height_ * 4) * 4; in OnRedraw()
451 gtk_widget_set_size_request(draw_area_, width_ * 2, height_ * 2); in OnRedraw()
458 for (int c = 0; c < width_; ++c) { in OnRedraw()
464 scaled += width_ * 2; in OnRedraw()
465 memcpy(scaled, prev_line, (width_ * 2) * 4); in OnRedraw()
467 image += width_; in OnRedraw()
468 scaled += width_ * 2; in OnRedraw()
476 scaled += (width_ * 2) - (local_renderer->width() / 2); in OnRedraw()
480 scaled += (height_ * width_ * 4) - ((local_renderer->height() / 2) * in OnRedraw()
[all …]
/external/tensorflow/tensorflow/lite/delegates/gpu/metal/
Dtexture2d.cc55 width_(width), in Texture2D()
61 width_(texture.width_), in Texture2D()
65 texture.width_ = 0; in Texture2D()
73 std::swap(width_, texture.width_); in operator =()
83 width_ = 0; in Release()
102 width_ = desc.size.x; in CreateFromTexture2DDescriptor()
111 width:width_ in CreateFromTexture2DDescriptor()
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dtexture2d.cc38 : texture_(texture), width_(width), height_(height), channel_type_(type) {} in Texture2D()
42 width_(texture.width_), in Texture2D()
46 texture.width_ = 0; in Texture2D()
54 std::swap(width_, texture.width_); in operator =()
65 width_ = 0; in Release()
84 width_ = desc.size.x; in CreateFromTexture2DDescriptor()
/external/tensorflow/tensorflow/tools/android/test/jni/object_tracking/
Dimage-inl.h33 width_(width), in Image()
45 width_(size.width), in Image()
61 width_(width), in Image()
108 SCHECK(left >= 0 && left < width_, "out of bounds at %d!", left); in Crop()
109 SCHECK(right >= 0 && right < width_, "out of bounds at %d!", right); in Crop()
153 const T& p3 = pix_ptr[width_]; in GetPixelInterp()
154 const T& p4 = pix_ptr[width_ + 1]; in GetPixelInterp()
248 for (int x = 0; x < width_; ++x) { in DownsampleAveraged()
273 static_cast<float>(width_); in DownsampleInterpolateNearest()
278 const float offset_x = 0.5f * (original.GetWidth() - width_) / width_; in DownsampleInterpolateNearest()
[all …]
/external/webrtc/test/testsupport/
Dyuv_frame_writer.cc27 width_(width), in YuvFrameWriterImpl()
36 if (width_ <= 0 || height_ <= 0) { in Init()
37 fprintf(stderr, "Frame width and height must be >0, was %d x %d\n", width_, in Init()
42 width_ * height_ + 2 * ((width_ + 1) / 2) * ((height_ + 1) / 2); in Init()
Dvideo_frame_writer.cc63 : width_(width), in Y4mVideoFrameWriterImpl()
67 width_, in Y4mVideoFrameWriterImpl()
75 rtc::Buffer frame_buffer = ExtractI420BufferWithSize(frame, width_, height_); in WriteFrame()
90 : width_(width), in YuvVideoFrameWriterImpl()
94 width_, in YuvVideoFrameWriterImpl()
101 rtc::Buffer frame_buffer = ExtractI420BufferWithSize(frame, width_, height_); in WriteFrame()
/external/webrtc/modules/desktop_capture/
Ddesktop_geometry.h56 DesktopSize() : width_(0), height_(0) {} in DesktopSize()
57 DesktopSize(int32_t width, int32_t height) : width_(width), height_(height) {} in DesktopSize()
59 int32_t width() const { return width_; } in width()
62 bool is_empty() const { return width_ <= 0 || height_ <= 0; } in is_empty()
65 return width_ == other.width_ && height_ == other.height_; in equals()
69 width_ = width; in set()
74 int32_t width_;
/external/webrtc/test/
Dframe_generator.cc50 width_ = static_cast<int>(width); in ChangeResolution()
52 RTC_CHECK(width_ > 0); in ChangeResolution()
74 buffer = CreateI420Buffer(width_, height_); in NextFrame()
79 CreateI420Buffer(width_, height_); in NextFrame()
81 CreateI420Buffer(width_, height_); in NextFrame()
157 width_(width), in YuvFileGenerator()
160 static_cast<int>(width_), in YuvFileGenerator()
182 update_rect = VideoFrame::UpdateRect{0, 0, static_cast<int>(width_), in NextFrame()
196 static_cast<int>(width_), static_cast<int>(height_), files_[file_index_]); in ReadNextFrame()
205 test::ReadI420Buffer(static_cast<int>(width_), in ReadNextFrame()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Deigen_attention.h60 : width_(width), in GlimpseExtractionOp()
79 dims[1] = width_; in dimensions()
119 x -= width_ / 2.0f; in eval()
133 x -= width_ / 2.0f; in eval()
146 Index glimpse_width = width_; in eval()
150 DSizes<Index, 3> slice_extent(num_channels, width_, height_); in eval()
155 glimpse_width = (std::max<Index>)(0, width_ + offset_x); in eval()
157 base_offset[1] = width_ - glimpse_width; in eval()
159 } else if (offset_x + width_ >= input_width) { in eval()
195 DSizes<Index, 3> glimpse_size(num_channels, width_, height_); in eval()
[all …]
/external/webrtc/media/base/
Dfake_frame_source.cc25 : width_(width), in FakeFrameSource()
29 RTC_CHECK_GT(width_, 0); in FakeFrameSource()
50 return GetFrame(width_, height_, webrtc::kVideoRotation_0, interval_us_); in GetFrameRotationApplied()
53 return GetFrame(height_, width_, webrtc::kVideoRotation_0, interval_us_); in GetFrameRotationApplied()
62 return GetFrame(width_, height_, rotation_, interval_us_); in GetFrame()
/external/webrtc/modules/video_coding/utility/
Divf_file_writer.cc32 width_(0), in IvfFileWriter()
89 ByteWriter<uint16_t>::WriteLittleEndian(&ivf_header[12], width_); in WriteHeader()
114 width_ = encoded_image._encodedWidth; in InitFromFirstFrame()
116 RTC_CHECK_GT(width_, 0); in InitFromFirstFrame()
127 << codec_name << " at resolution " << width_ << " x " in InitFromFirstFrame()
145 encoded_image._encodedWidth != width_)) { in WriteFrame()
147 << "Incoming frame has resolution different from previous: (" << width_ in WriteFrame()
/external/webrtc/test/linux/
Dglx_renderer.cc22 : width_(width), height_(height), display_(NULL), context_(NULL) { in GlxRenderer()
62 width_, height_, 0, vi->depth, InputOutput, in Init()
87 Resize(width_, height_); in Init()
119 width_ = width; in Resize()
124 GlRenderer::ResizeViewport(width_, height_); in Resize()
134 size_hints->min_aspect.x = size_hints->max_aspect.x = width_; in Resize()
146 if (static_cast<size_t>(frame.width()) != width_ || in OnFrame()
/external/libchrome/ui/gfx/geometry/
Dsize.h27 constexpr Size() : width_(0), height_(0) {} in Size()
29 : width_(width < 0 ? 0 : width), height_(height < 0 ? 0 : height) {} in Size()
44 constexpr int width() const { return width_; } in width()
47 void set_width(int width) { width_ = width < 0 ? 0 : width; } in set_width()
70 int width_;
Dsize_f.h25 constexpr SizeF() : width_(0.f), height_(0.f) {} in SizeF()
27 : width_(clamp(width)), height_(clamp(height)) {} in SizeF()
33 constexpr float width() const { return width_; } in width()
36 void set_width(float width) { width_ = clamp(width); } in set_width()
72 float width_; variable
/external/ImageMagick/Magick++/lib/
DPixels.cpp114 const ::ssize_t y_,const size_t width_,const size_t height_,std::string map_, in PixelData() argument
117 init(image_,x_,y_,width_,height_,map_,type_); in PixelData()
141 const ::ssize_t y_,const size_t width_,const size_t height_, in init() argument
150 if ((x_ < 0) || (width_ == 0) || (y_ < 0) || (height_ == 0) || in init()
151 (x_ > (ssize_t) image_.columns()) || ((width_ + x_) > image_.columns()) in init()
184 _length=width_*height_*map_.length(); in init()
189 MagickCore::ExportImagePixels(image_.image(),x_,y_,width_,height_, in init()

123456789