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

Unified Diff: media/base/video_util.h

Issue 1913503002: Memory copy the VideoFrame to match the requirement for HW encoders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Used shared memory for encoder input buffer. Created 4 years, 8 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 | « no previous file | media/base/video_util.cc » ('j') | media/base/video_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_util.h
diff --git a/media/base/video_util.h b/media/base/video_util.h
index 2dec7e9371013ff3bf0442cb798cef0c90104659..a7fad72ff182f68883cce51a7c310b032abe4ed3 100644
--- a/media/base/video_util.h
+++ b/media/base/video_util.h
@@ -97,6 +97,11 @@ MEDIA_EXPORT void CopyRGBToVideoFrame(const uint8_t* source,
MEDIA_EXPORT scoped_refptr<VideoFrame> WrapAsI420VideoFrame(
const scoped_refptr<VideoFrame>& frame);
+// Copy I420 video frame to match the required coded size and pad it repeatly
+// with the last column / row.
miu 2016/04/30 00:41:14 Comment should also mention: 1) The visible region
xjz 2016/05/03 01:17:58 Done.
+MEDIA_EXPORT bool I420CopyWithPadding(const scoped_refptr<VideoFrame> src_frame,
miu 2016/04/30 00:41:14 Type of the args should be: const VideoFrame& src
xjz 2016/05/03 01:17:58 Done.
+ scoped_refptr<VideoFrame> dst_frame);
miu 2016/04/30 00:41:14 Consider adding WARN_UNUSED_RESULT in the function
xjz 2016/05/03 01:17:59 Done.
+
} // namespace media
#endif // MEDIA_BASE_VIDEO_UTIL_H_
« no previous file with comments | « no previous file | media/base/video_util.cc » ('j') | media/base/video_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698