Home
last modified time | relevance | path

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

1234567

/external/webrtc/webrtc/common_video/libyuv/
Dlibyuv_unittest.cc87 const int width_; member in webrtc::TestLibYuv
97 width_(352), in TestLibYuv()
99 size_y_(width_ * height_), in TestLibYuv()
100 size_uv_(((width_ + 1) / 2) * ((height_ + 1) / 2)), in TestLibYuv()
118 width_, height_, in SetUp()
119 width_, (width_ + 1) / 2, in SetUp()
120 (width_ + 1) / 2)); in SetUp()
145 EXPECT_EQ(0, res_i420_frame.CreateEmptyFrame(width_, height_, width_, in TEST_F()
146 (width_ + 1) / 2, in TEST_F()
147 (width_ + 1) / 2)); in TEST_F()
[all …]
Dscaler_unittest.cc40 const int width_; member in webrtc::TestScaler
51 width_(352), in TestScaler()
52 half_width_(width_ / 2), in TestScaler()
55 size_y_(width_ * height_), in TestScaler()
57 frame_length_(CalcBufferSize(kI420, width_, height_)) { in TestScaler()
66 test_frame_.CreateEmptyFrame(width_, height_, in SetUp()
67 width_, half_width_, half_width_); in SetUp()
96 EXPECT_EQ(0, test_scaler_.Set(width_, height_, in TEST_F()
106 width_, height_, in TEST_F()
107 width_, half_width_, half_width_); in TEST_F()
[all …]
/external/webrtc/webrtc/tools/converter/
Dconverter.h33 int width_; // Width of the video (respectively of the RGBA frames).
38 return width_*height_; in YPlaneSize()
43 return ((width_+1)/2)*((height_)/2); in UPlaneSize()
48 return ((width_+1)/2)*((height_)/2); in VPlaneSize()
53 return width_*4; in SrcStrideFrame()
58 return width_; in DstStrideY()
63 return (width_+1)/2; in DstStrideU()
68 return (width_+1)/2; in DstStrideV()
73 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 __anoncfd783510111::BlockinessTestBase
[all …]
Ddecode_svc_test.cc39 ASSERT_EQ(img.d_w, width_); in DecompressedFrameHook()
45 unsigned int width_; member in __anon11d452d30111::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 __anon5663fab60111::ConsistencyTestBase
143 width_, height_, ssim_array_, &metrics_, 1); in CheckConsistency()
/external/webrtc/talk/media/base/
Dyuvframegenerator.cc52 width_ = width; in YuvFrameGenerator()
55 int size = width_ * height_; in YuvFrameGenerator()
62 ASSERT(width_ >= kBarcodeBackgroundWidth); in YuvFrameGenerator()
80 int size = width_ * height_; in GenerateNextFrame()
86 DrawLandscape(y_data_, width_, height_); in GenerateNextFrame()
87 DrawGradientX(u_data_, width_/2, height_/2); in GenerateNextFrame()
88 DrawGradientY(v_data_, width_/2, height_/2); in GenerateNextFrame()
89 DrawMovingLineX(u_data_, width_/2, height_/2, frame_index_); in GenerateNextFrame()
90 DrawMovingLineY(v_data_, width_/2, height_/2, frame_index_); in GenerateNextFrame()
91 DrawBouncingCube(y_data_, width_, height_, frame_index_); in GenerateNextFrame()
[all …]
/external/webrtc/webrtc/modules/video_processing/test/
Dvideo_processing_unittest.cc61 width_(352), in VideoProcessingTest()
62 half_width_((width_ + 1) / 2), in VideoProcessingTest()
64 size_y_(width_ * height_), in VideoProcessingTest()
66 frame_length_(CalcBufferSize(kI420, width_, height_)) {} in VideoProcessingTest()
72 ASSERT_EQ(0, video_frame_.CreateEmptyFrame(width_, height_, width_, in SetUp()
122 EXPECT_EQ(0, ConvertToI420(kI420, video_buffer.get(), 0, 0, width_, height_,
141 EXPECT_EQ(0, ConvertToI420(kI420, video_buffer.get(), 0, 0, width_, height_,
156 EXPECT_EQ(0, ConvertToI420(kI420, video_buffer.get(), 0, 0, width_, height_,
177 EXPECT_EQ(0, ConvertToI420(kI420, video_buffer.get(), 0, 0, width_, height_,
242 EXPECT_EQ(0, ConvertToI420(kI420, video_buffer.get(), 0, 0, width_, height_,
[all …]
/external/webrtc/webrtc/modules/video_processing/
Dcontent_analysis.cc23 width_(0), in VPMContentAnalysis()
58 if (width_ != inputFrame.width() || height_ != inputFrame.height()) { in ComputeContentMetrics()
73 memcpy(prev_frame_, orig_frame_, width_ * height_); in ComputeContentMetrics()
92 width_ = 0; in Release()
100 width_ = width; in Initialize()
109 if ((height_ >= 576) && (width_ >= 704)) { in Initialize()
113 if ((height_ >= 1080) && (width_ >= 1920)) { in Initialize()
127 if (width_ <= 32 || height_ <= 32) { in Initialize()
137 prev_frame_ = new uint8_t[width_ * height_]; // Y only. in Initialize()
160 int sizej = width_; in TemporalDiffMetric_C()
[all …]
Dcontent_analysis_sse2.cc20 const uint8_t* imgBufO = orig_frame_ + border_ * width_ + border_; in TemporalDiffMetric_SSE2()
21 const uint8_t* imgBufP = prev_frame_ + border_ * width_ + border_; in TemporalDiffMetric_SSE2()
23 const int32_t width_end = ((width_ - 2 * border_) & -16) + border_; in TemporalDiffMetric_SSE2()
73 imgBufO += width_ * skip_num_; in TemporalDiffMetric_SSE2()
74 imgBufP += width_ * skip_num_; in TemporalDiffMetric_SSE2()
120 const uint8_t* imgBuf = orig_frame_ + border_ * width_; in ComputeSpatialMetrics_SSE2()
121 const int32_t width_end = ((width_ - 2 * border_) & -16) + border_; in ComputeSpatialMetrics_SSE2()
150 const uint8_t* lineTop = imgBuf - width_ + border_; in ComputeSpatialMetrics_SSE2()
152 const uint8_t* lineBot = imgBuf + width_ + border_; in ComputeSpatialMetrics_SSE2()
224 imgBuf += width_ * skip_num_; in ComputeSpatialMetrics_SSE2()
/external/webrtc/webrtc/test/
Dframe_generator.cc27 : angle_(0.0), width_(width), height_(height) { in ChromaGenerator()
33 frame_.CreateEmptyFrame(static_cast<int>(width_), in NextFrame()
35 static_cast<int>(width_), in NextFrame()
36 static_cast<int>((width_ + 1) / 2), in NextFrame()
37 static_cast<int>((width_ + 1) / 2)); in NextFrame()
50 size_t width_; member in webrtc::test::__anon78312a5a0111::ChromaGenerator
63 width_(width), in YuvFileGenerator()
66 static_cast<int>(width_), in YuvFileGenerator()
109 static_cast<int>(width_), static_cast<int>(height_), in ReadNextFrame()
110 static_cast<int>(width_), static_cast<int>((width_ + 1) / 2), in ReadNextFrame()
[all …]
/external/v8/src/compiler/
Dloop-analysis.cc64 width_(0),
79 int index = ni.node->id() * width_ + INDEX(i); in Print()
116 int width_; member in v8::internal::compiler::LoopFinderImpl
127 uint32_t* fp = &backward_[from->id() * width_]; in PropagateBackwardMarks()
128 uint32_t* tp = &backward_[to->id() * width_]; in PropagateBackwardMarks()
130 for (int i = 0; i < width_; i++) { in PropagateBackwardMarks()
142 uint32_t* tp = &backward_[to->id() * width_ + INDEX(loop_num)]; in SetBackwardMark()
151 uint32_t* tp = &forward_[to->id() * width_ + INDEX(loop_num)]; in SetForwardMark()
162 int findex = from->id() * width_; in PropagateForwardMarks()
163 int tindex = to->id() * width_; in PropagateForwardMarks()
[all …]
/external/tensorflow/tensorflow/examples/android/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/autotest/client/deps/glbench/src/
Dtexturetest.cc101 width_ = height_ = sizes[j]; in Run()
102 const unsigned int buffer_size = width_ * height_ * texel_size; in Run()
109 glTexImage2D(GL_TEXTURE_2D, 0, texel_gl_format_, width_, height_, 0, in Run()
113 width_, height_, texel_size); in Run()
115 if (IS_NOT_POWER_OF_2(width_) || IS_NOT_POWER_OF_2(height_)) { in Run()
127 width_, height_, 0, in Run()
132 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width_, height_, in Run()
145 error, width_, height_, texel_size); in Run()
/external/webrtc/webrtc/modules/desktop_capture/
Ddesktop_geometry.h53 DesktopSize() : width_(0), height_(0) {} in DesktopSize()
55 : width_(width), height_(height) { in DesktopSize()
58 int32_t width() const { return width_; } in width()
61 bool is_empty() const { return width_ <= 0 || height_ <= 0; } in is_empty()
64 return width_ == other.width_ && height_ == other.height_; in equals()
68 width_ = width; in set()
73 int32_t width_;
Ddiffer.cc22 width_ = width; in Differ()
29 diff_info_width_ = ((width_ + kBlockSize - 1) / kBlockSize) + 1; in Differ()
53 int x_full_blocks = width_ / kBlockSize; in MarkDirtyBlocks()
57 int partial_column_width = width_ - (x_full_blocks * kBlockSize); in MarkDirtyBlocks()
63 int block_y_stride = (width_ * bytes_per_pixel_) * kBlockSize; in MarkDirtyBlocks()
192 if (left + width > width_) { in MergeBlocks()
193 width = width_ - left; in MergeBlocks()
/external/v4l2_codec2/vda/
Dsize.h20 Size() : width_(0), height_(0) {} in Size()
22 : width_(width < 0 ? 0 : width), height_(height < 0 ? 0 : height) {} in Size()
24 constexpr int width() const { return width_; } in width()
27 void set_width(int width) { width_ = width < 0 ? 0 : width; } in set_width()
48 int width_;
/external/tensorflow/tensorflow/core/kernels/
Deigen_attention.h60 : width_(width), in GlimpseExtractionOp()
78 dims[1] = width_; in dimensions()
117 x -= width_ / 2.0f; in eval()
122 Index glimpse_width = width_; in eval()
126 DSizes<Index, 3> slice_extent(num_channels, width_, height_); in eval()
131 glimpse_width = (std::max<Index>)(0, width_ + offset_x); in eval()
133 base_offset[1] = width_ - glimpse_width; in eval()
135 } else if (offset_x + width_ >= input_width) { in eval()
171 DSizes<Index, 3> glimpse_size(num_channels, width_, height_); in eval()
183 DSizes<Index, 2> glimpse_size(width_, height_); in eval()
[all …]
/external/webrtc/webrtc/test/linux/
Dglx_renderer.cc24 : width_(width), in GlxRenderer()
64 width_, height_, 0, vi->depth, InputOutput, in Init()
89 Resize(width_, height_); in Init()
120 width_ = width; in Resize()
125 GlRenderer::ResizeViewport(width_, height_); in Resize()
135 size_hints->min_aspect.x = size_hints->max_aspect.x = width_; in Resize()
148 if (static_cast<size_t>(frame.width()) != width_ || in RenderFrame()
/external/libaom/libaom/test/
Dsad_test.cc69 : width_(width), height_(height), bd_(bit_depth) {} in SADTestBase()
144 source_stride_ = (width_ + 31) & ~31; in SetUp()
145 reference_stride_ = width_ * 2; in SetUp()
166 for (int w = 0; w < width_; ++w) { in ReferenceSAD()
192 for (int w = 0; w < width_; ++w) { in ReferenceSADavg()
194 const int tmp = second_pred8[h * width_ + w] + in ReferenceSADavg()
199 const int tmp = second_pred16[h * width_ + w] + in ReferenceSADavg()
218 for (int w = 0; w < width_; ++w) { in ReferenceDistWtdCompAvg()
221 second_pred8[h * width_ + w] * jcp_param_.bck_offset + in ReferenceDistWtdCompAvg()
223 comp_pred8[h * width_ + w] = ROUND_POWER_OF_TWO(tmp, 4); in ReferenceDistWtdCompAvg()
[all …]
/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()

1234567