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

Side by Side Diff: talk/app/webrtc/java/jni/androidmediadecoder_jni.cc

Issue 1406903002: Expose codec implementation names in stats. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: feedback Created 5 years, 1 month 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 * libjingle 2 * libjingle
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 int32_t RegisterDecodeCompleteCallback(DecodedImageCallback* callback) 84 int32_t RegisterDecodeCompleteCallback(DecodedImageCallback* callback)
85 override; 85 override;
86 86
87 int32_t Release() override; 87 int32_t Release() override;
88 88
89 int32_t Reset() override; 89 int32_t Reset() override;
90 // rtc::MessageHandler implementation. 90 // rtc::MessageHandler implementation.
91 void OnMessage(rtc::Message* msg) override; 91 void OnMessage(rtc::Message* msg) override;
92 92
93 const char* ImplementationName() const override;
94
93 private: 95 private:
94 // CHECK-fail if not running on |codec_thread_|. 96 // CHECK-fail if not running on |codec_thread_|.
95 void CheckOnCodecThread(); 97 void CheckOnCodecThread();
96 98
97 int32_t InitDecodeOnCodecThread(); 99 int32_t InitDecodeOnCodecThread();
98 int32_t ReleaseOnCodecThread(); 100 int32_t ReleaseOnCodecThread();
99 int32_t DecodeOnCodecThread(const EncodedImage& inputImage); 101 int32_t DecodeOnCodecThread(const EncodedImage& inputImage);
100 // Deliver any outputs pending in the MediaCodec to our |callback_| and return 102 // Deliver any outputs pending in the MediaCodec to our |callback_| and return
101 // true on success. 103 // true on success.
102 bool DeliverPendingOutputs(JNIEnv* jni, int dequeue_timeout_us); 104 bool DeliverPendingOutputs(JNIEnv* jni, int dequeue_timeout_us);
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 ALOGE << "Can not find HW video decoder for type " << (int)type; 847 ALOGE << "Can not find HW video decoder for type " << (int)type;
846 return NULL; 848 return NULL;
847 } 849 }
848 850
849 void MediaCodecVideoDecoderFactory::DestroyVideoDecoder( 851 void MediaCodecVideoDecoderFactory::DestroyVideoDecoder(
850 webrtc::VideoDecoder* decoder) { 852 webrtc::VideoDecoder* decoder) {
851 ALOGD << "Destroy video decoder."; 853 ALOGD << "Destroy video decoder.";
852 delete decoder; 854 delete decoder;
853 } 855 }
854 856
857 const char* MediaCodecVideoDecoder::ImplementationName() const {
858 return "MediaCodec";
859 }
860
855 } // namespace webrtc_jni 861 } // namespace webrtc_jni
856 862
OLDNEW
« no previous file with comments | « no previous file | talk/app/webrtc/java/jni/androidmediaencoder_jni.cc » ('j') | talk/app/webrtc/statstypes.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698