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

Side by Side Diff: webrtc/sdk/android/src/jni/videodecoderwrapper.h

Issue 3010623002: Change capture time format to nanoseconds in EncodedImage. (Closed)
Patch Set: Update decoder wrapper. Created 3 years, 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2017 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 const char* ImplementationName() const override; 51 const char* ImplementationName() const override;
52 52
53 // Wraps the frame to a AndroidVideoBuffer and passes it to the callback. 53 // Wraps the frame to a AndroidVideoBuffer and passes it to the callback.
54 void OnDecodedFrame(JNIEnv* jni, 54 void OnDecodedFrame(JNIEnv* jni,
55 jobject jframe, 55 jobject jframe,
56 jobject jdecode_time_ms, 56 jobject jdecode_time_ms,
57 jobject jqp); 57 jobject jqp);
58 58
59 private: 59 private:
60 struct FrameExtraInfo { 60 struct FrameExtraInfo {
61 uint32_t capture_time_ms; // Used as an identifier of the frame. 61 uint64_t capture_time_ns; // Used as an identifier of the frame.
62 62
63 uint32_t timestamp_rtp; 63 uint32_t timestamp_rtp;
64 rtc::Optional<uint8_t> qp; 64 rtc::Optional<uint8_t> qp;
65 }; 65 };
66 66
67 int32_t InitDecodeInternal(JNIEnv* jni); 67 int32_t InitDecodeInternal(JNIEnv* jni);
68 68
69 // Takes Java VideoCodecStatus, handles it and returns WEBRTC_VIDEO_CODEC_* 69 // Takes Java VideoCodecStatus, handles it and returns WEBRTC_VIDEO_CODEC_*
70 // status code. 70 // status code.
71 int32_t HandleReturnCode(JNIEnv* jni, jobject code); 71 int32_t HandleReturnCode(JNIEnv* jni, jobject code);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 jmethodID int_value_method_; 112 jmethodID int_value_method_;
113 113
114 jobject ConvertEncodedImageToJavaEncodedImage(JNIEnv* jni, 114 jobject ConvertEncodedImageToJavaEncodedImage(JNIEnv* jni,
115 const EncodedImage& image); 115 const EncodedImage& image);
116 }; 116 };
117 117
118 } // namespace jni 118 } // namespace jni
119 } // namespace webrtc 119 } // namespace webrtc
120 120
121 #endif // WEBRTC_SDK_ANDROID_SRC_JNI_VIDEODECODERWRAPPER_H_ 121 #endif // WEBRTC_SDK_ANDROID_SRC_JNI_VIDEODECODERWRAPPER_H_
OLDNEW
« no previous file with comments | « webrtc/sdk/android/src/java/org/webrtc/HardwareVideoEncoder.java ('k') | webrtc/sdk/android/src/jni/videodecoderwrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698