HomeSort by relevance Sort by last modified time
    Searched refs:source_size (Results 1 - 25 of 30) sorted by null

1 2

  /external/chromium_org/chrome/browser/thumbnails/
simple_thumbnail_crop.cc 29 const gfx::Size& source_size,
33 DCHECK(!source_size.IsEmpty());
35 *clipping_rect = GetClippingRect(source_size, target_size_, &clip_result);
139 gfx::Rect SimpleThumbnailCrop::GetClippingRect(const gfx::Size& source_size,
150 if (source_size.width() < desired_size.width() ||
151 source_size.height() < desired_size.height()) {
159 static_cast<float>(source_size.width()) / source_size.height();
163 int new_width = static_cast<int>(source_size.height() * desired_aspect);
164 int x_offset = (source_size.width() - new_width) / 2
    [all...]
content_based_thumbnailing_algorithm.cc 44 const gfx::Size& source_size,
48 DCHECK(!source_size.IsEmpty());
54 source_size, target_thumbnail_size, target_size, &clipping_method);
206 const gfx::Size& source_size,
218 if (source_size.width() < thumbnail_size.width() ||
219 source_size.height() < thumbnail_size.height()) {
223 } else if (source_size.width() < thumbnail_size.width() * 4 ||
224 source_size.height() < thumbnail_size.height() * 4) {
225 clipping_rect = gfx::Rect(source_size);
226 *target_size = source_size;
    [all...]
content_based_thumbnailing_algorithm_unittest.cc 68 gfx::Size source_size(1000, 600);
71 source_size, ui::SCALE_FACTOR_100P, &clipping_rect, &target_size);
73 EXPECT_EQ(source_size.ToString(), clipping_rect.size().ToString());
75 EXPECT_EQ(source_size, target_size);
77 source_size.SetSize(6000, 3000);
79 source_size, ui::SCALE_FACTOR_100P, &clipping_rect, &target_size);
81 EXPECT_EQ(source_size.ToString(), clipping_rect.size().ToString());
83 EXPECT_LT(target_size.width(), source_size.width());
84 EXPECT_LT(target_size.height(), source_size.height());
86 static_cast<float>(source_size.width()) / source_size.height()
    [all...]
content_based_thumbnailing_algorithm.h 20 virtual ClipResult GetCanvasCopyInfo(const gfx::Size& source_size,
49 static gfx::Rect GetClippingRect(const gfx::Size& source_size,
thumbnailing_algorithm.h 27 // canvas of |source_size|. Auxiliary |scale_factor| helps compute the target
32 virtual ClipResult GetCanvasCopyInfo(const gfx::Size& source_size,
simple_thumbnail_crop.h 21 virtual ClipResult GetCanvasCopyInfo(const gfx::Size& source_size,
49 static gfx::Rect GetClippingRect(const gfx::Size& source_size,
  /external/chromium_org/remoting/client/
frame_consumer_proxy.cc 52 const webrtc::DesktopSize& source_size,
56 &FrameConsumerProxy::SetSourceSize, this, source_size, source_dpi));
61 frame_consumer_->SetSourceSize(source_size, source_dpi);
frame_consumer.h 49 virtual void SetSourceSize(const webrtc::DesktopSize& source_size,
frame_consumer_proxy.h 39 virtual void SetSourceSize(const webrtc::DesktopSize& source_size,
  /external/chromium_org/media/base/
audio_fifo.cc 60 const int source_size = source->frames(); local
61 CHECK_LE(source_size + frames(), max_frames_);
67 GetSizes(write_pos_, max_frames(), source_size, &append_size, &wrap_size);
82 frames_pushed_ += source_size;
84 write_pos_ = UpdatePos(write_pos_, source_size, max_frames());
  /external/chromium_org/remoting/client/jni/
jni_frame_consumer.cc 91 void JniFrameConsumer::SetSourceSize(const webrtc::DesktopSize& source_size,
97 clip_area_ = webrtc::DesktopRect::MakeSize(source_size);
98 frame_producer_->SetOutputSizeAndClip(source_size, clip_area_);
101 AllocateBuffer(source_size);
108 void JniFrameConsumer::AllocateBuffer(const webrtc::DesktopSize& source_size) {
111 webrtc::DesktopSize size(source_size.width(), source_size.height());
jni_frame_consumer.h 49 virtual void SetSourceSize(const webrtc::DesktopSize& source_size,
54 // Allocates a new buffer of |source_size|, informs Java about it, and tells
56 void AllocateBuffer(const webrtc::DesktopSize& source_size);
  /external/chromium_org/remoting/ios/bridge/
frame_consumer_bridge.h 42 virtual void SetSourceSize(const webrtc::DesktopSize& source_size,
frame_consumer_bridge.cc 66 void FrameConsumerBridge::SetSourceSize(const webrtc::DesktopSize& source_size,
69 view_size_ = source_size;
  /external/chromium_org/remoting/base/
util.cc 54 const webrtc::DesktopSize& source_size,
63 DCHECK(DoesRectContain(webrtc::DesktopRect::MakeSize(source_size),
68 DCHECK(DoesRectContain(ScaleRect(source_buffer_rect, source_size, dest_size),
84 if (source_size.equals(dest_size)) {
133 source_size.width(),
134 source_size.height(),
151 source_size.width(),
152 source_size.height(),
util.h 29 // as ratio between |dest_size| and |source_size|. The target rectangle
45 const webrtc::DesktopSize& source_size,
  /external/chromium_org/sdch/open-vcdiff/src/
blockhash.h 123 BlockHash(const char* source_data, size_t source_size, int starting_offset);
357 size_t source_size() { return source_size_; } function in class:open_vcdiff::BlockHash
368 // to calling AddAllBlocksThroughIndex(source_data + source_size).
blockhash.cc 30 size_t source_size,
33 source_size_(source_size),
223 int last_legal_hash_index = static_cast<int>(source_size() - kBlockSize);
  /external/chromium_org/chrome/renderer/printing/
mock_printer.cc 46 uint32 source_size,
48 : source_size_(source_size),
51 source_data_.reset(new uint8[source_size]);
53 memcpy(source_data_.get(), source_data, source_size);
275 uint32 source_size = pages_[page]->source_size(); local
277 source_size);
mock_printer.h 31 uint32 source_size,
37 uint32 source_size() const { return source_size_; } function in class:MockPrinterPage
  /external/chromium_org/content/browser/media/capture/
content_video_capture_device_core.cc 146 void ThreadSafeCaptureOracle::UpdateCaptureSize(const gfx::Size& source_size) {
155 if (source_size.width() > params_.requested_format.frame_size.width() ||
156 source_size.height() > params_.requested_format.frame_size.height()) {
158 gfx::Rect(params_.requested_format.frame_size), source_size);
163 MakeEven(source_size.width()), MakeEven(source_size.height()));
content_video_capture_device_core.h 78 void UpdateCaptureSize(const gfx::Size& source_size);
  /frameworks/av/media/libstagefright/
CameraSourceTimeLapse.cpp 228 size_t source_size = source_data->size(); local
231 sp<MemoryHeapBase> newMemoryHeap = new MemoryHeapBase(source_size);
232 sp<MemoryBase> newMemory = new MemoryBase(newMemoryHeap, 0, source_size);
233 memcpy(newMemory->pointer(), source_pointer, source_size);
  /external/chromium_org/remoting/client/plugin/
pepper_view.cc 208 void PepperView::SetSourceSize(const webrtc::DesktopSize& source_size,
212 if (source_size_.equals(source_size) && source_dpi_.equals(source_dpi))
215 source_size_ = source_size;
219 instance_->SetDesktopSize(source_size, source_dpi);
pepper_view.h 54 virtual void SetSourceSize(const webrtc::DesktopSize& source_size,

Completed in 398 milliseconds

1 2