Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: webrtc/media/base/videoframe.h

Issue 2020593002: Refactor scaling. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Trivial rebase. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/common_video/video_frame_buffer.cc ('k') | webrtc/media/base/videoframe.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/videoframe.h
diff --git a/webrtc/media/base/videoframe.h b/webrtc/media/base/videoframe.h
index c0d9e6658ebc4cc39b4705efa5233422a0227ac9..4015f906f93c4ee0894d7a7167f4d62bf1b7b7bb 100644
--- a/webrtc/media/base/videoframe.h
+++ b/webrtc/media/base/videoframe.h
@@ -69,28 +69,6 @@ class VideoFrame {
size_t size,
int stride_rgb) const;
- // Writes the frame into the given planes, stretched to the given width and
- // height. The parameter "interpolate" controls whether to interpolate or just
- // take the nearest-point. The parameter "crop" controls whether to crop this
- // frame to the aspect ratio of the given dimensions before stretching.
- virtual void StretchToPlanes(uint8_t* y,
- uint8_t* u,
- uint8_t* v,
- int32_t pitchY,
- int32_t pitchU,
- int32_t pitchV,
- size_t width,
- size_t height,
- bool interpolate,
- bool crop) const;
-
- // Writes the frame into the target VideoFrame, stretched to the size of that
- // frame. The parameter "interpolate" controls whether to interpolate or just
- // take the nearest-point. The parameter "crop" controls whether to crop this
- // frame to the aspect ratio of the target frame before stretching.
- virtual void StretchToFrame(VideoFrame *target, bool interpolate,
- bool crop) const;
-
// Tests if sample is valid. Returns true if valid.
static bool Validate(uint32_t fourcc,
int w,
@@ -99,17 +77,6 @@ class VideoFrame {
size_t sample_size);
protected:
- // Writes the frame into the given planes, stretched to the given width and
- // height. The parameter "interpolate" controls whether to interpolate or just
- // take the nearest-point. The parameter "crop" controls whether to crop this
- // frame to the aspect ratio of the given dimensions before stretching.
- virtual bool CopyToPlanes(uint8_t* dst_y,
- uint8_t* dst_u,
- uint8_t* dst_v,
- int32_t dst_pitch_y,
- int32_t dst_pitch_u,
- int32_t dst_pitch_v) const;
-
// Creates an empty frame.
virtual VideoFrame* CreateEmptyFrame(int w,
int h,
« no previous file with comments | « webrtc/common_video/video_frame_buffer.cc ('k') | webrtc/media/base/videoframe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698