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

Unified Diff: webrtc/sdk/android/src/jni/videodecoderwrapper.h

Issue 3000993002: Implement QP parsing in VideoDecoderWrapper. (Closed)
Patch Set: Add comments Created 3 years, 4 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 | webrtc/sdk/android/src/jni/videodecoderwrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/android/src/jni/videodecoderwrapper.h
diff --git a/webrtc/sdk/android/src/jni/videodecoderwrapper.h b/webrtc/sdk/android/src/jni/videodecoderwrapper.h
index eb76d3bf91779618a6650a0f9dba0097b0e2d0be..828884d73928f5ee25988f905ea81cc02db2f70f 100644
--- a/webrtc/sdk/android/src/jni/videodecoderwrapper.h
+++ b/webrtc/sdk/android/src/jni/videodecoderwrapper.h
@@ -12,10 +12,10 @@
#define WEBRTC_SDK_ANDROID_SRC_JNI_VIDEODECODERWRAPPER_H_
#include <jni.h>
-
#include <deque>
#include "webrtc/api/video_codecs/video_decoder.h"
+#include "webrtc/common_video/h264/h264_bitstream_parser.h"
#include "webrtc/sdk/android/src/jni/jni_helpers.h"
#include "webrtc/sdk/android/src/jni/native_handle_impl.h"
@@ -60,6 +60,7 @@ class VideoDecoderWrapper : public webrtc::VideoDecoder {
uint32_t capture_time_ms; // Used as an identifier of the frame.
uint32_t timestamp_rtp;
+ rtc::Optional<uint8_t> qp;
};
int32_t InitDecodeInternal(JNIEnv* jni);
@@ -68,12 +69,16 @@ class VideoDecoderWrapper : public webrtc::VideoDecoder {
// status code.
int32_t HandleReturnCode(JNIEnv* jni, jobject code);
+ rtc::Optional<uint8_t> ParseQP(const webrtc::EncodedImage& input_image);
+
webrtc::VideoCodec codec_settings_;
int32_t number_of_cores_;
bool initialized_;
AndroidVideoBufferFactory android_video_buffer_factory_;
std::deque<FrameExtraInfo> frame_extra_infos_;
+ bool qp_parsing_enabled_;
+ webrtc::H264BitstreamParser h264_bitstream_parser_;
webrtc::DecodedImageCallback* callback_;
« no previous file with comments | « no previous file | webrtc/sdk/android/src/jni/videodecoderwrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698