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

Unified Diff: webrtc/video_frame.h

Issue 1602523004: Added EncodedImage::GetBufferPaddingBytes. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Moved constant, reverted dependency, function name indicating unit is bytes Created 4 years, 11 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/modules/video_coding/frame_buffer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video_frame.h
diff --git a/webrtc/video_frame.h b/webrtc/video_frame.h
index 9d2ed9fd4d978e7a487d36390c549e5c1c1ee976..a7116bdc349555ad1b4bfcf24eca2d61242877f6 100644
--- a/webrtc/video_frame.h
+++ b/webrtc/video_frame.h
@@ -19,6 +19,8 @@
namespace webrtc {
+extern const size_t kEncodedImagePaddingH264;
mflodman 2016/01/21 13:02:45 Maybe this should be part of class EncodedImage, w
+
class VideoFrame {
public:
VideoFrame();
@@ -173,6 +175,10 @@ class VideoFrame {
// TODO(pbos): Rename EncodedFrame and reformat this class' members.
class EncodedImage {
public:
+ // Some decoders require encoded image buffers to be padded with a small
+ // number of additional bytes (due to over-reading byte readers).
+ static size_t GetBufferPaddingBytes(VideoCodecType codec_type);
+
EncodedImage() : EncodedImage(nullptr, 0, 0) {}
EncodedImage(uint8_t* buffer, size_t length, size_t size)
: _buffer(buffer), _length(length), _size(size) {}
« no previous file with comments | « webrtc/modules/video_coding/frame_buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698