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

Unified Diff: webrtc/modules/video_coding/generic_encoder.h

Issue 1853813002: Add support for writing raw encoder output to .ivf files. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Cleanup Created 4 years, 9 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/BUILD.gn ('k') | webrtc/modules/video_coding/generic_encoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/video_coding/generic_encoder.h
diff --git a/webrtc/modules/video_coding/generic_encoder.h b/webrtc/modules/video_coding/generic_encoder.h
index e96d99578150f7b531445e14cb35f46995070801..438dd1ddf819e6ae5cfaff716a2da5fc3f6e7c2d 100644
--- a/webrtc/modules/video_coding/generic_encoder.h
+++ b/webrtc/modules/video_coding/generic_encoder.h
@@ -16,6 +16,7 @@
#include "webrtc/modules/video_coding/include/video_codec_interface.h"
#include "webrtc/modules/video_coding/include/video_coding_defines.h"
+#include "webrtc/modules/video_coding/utility/ivf_file_writer.h"
#include "webrtc/base/criticalsection.h"
@@ -71,17 +72,22 @@ class VCMEncodedFrameCallback : public EncodedImageCallback {
const char* encoder_implementation_name);
private:
- VCMPacketizationCallback* send_callback_;
- media_optimization::MediaOptimization* _mediaOpt;
- uint8_t _payloadType;
- bool _internalSource;
- VideoRotation _rotation;
+ friend class VCMGenericEncoder;
- EncodedImageCallback* post_encode_callback_;
+ int GetLayer(const CodecSpecificInfo& codec_specific);
-#ifdef DEBUG_ENCODER_BIT_STREAM
- FILE* _bitStreamAfterEncoder;
-#endif
+ static const bool kEnableFrameRecording = false;
pbos-webrtc 2016/04/04 11:22:23 I think this should be plumbed further out through
sprang_webrtc 2016/04/05 10:35:38 Done.
+ static const int kMaxLayers = 3;
+ VideoCodecType codec_type_ = kVideoCodecVP8;
+ std::unique_ptr<IvfFileWriter> file_writers_[kMaxLayers];
+
+ VCMPacketizationCallback* send_callback_;
+ media_optimization::MediaOptimization* _mediaOpt;
+ uint8_t _payloadType;
+ bool _internalSource;
+ VideoRotation _rotation;
+
+ EncodedImageCallback* post_encode_callback_;
}; // end of VCMEncodeFrameCallback class
/******************************/
« no previous file with comments | « webrtc/modules/video_coding/BUILD.gn ('k') | webrtc/modules/video_coding/generic_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698