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

Side by Side Diff: talk/app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java

Issue 1403713002: MediaCodecVideoEncoder add support to encode from textures (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed tests 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 2013 Google Inc. 3 * Copyright 2013 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 } 132 }
133 133
134 public void setOptions(Options options) { 134 public void setOptions(Options options) {
135 nativeSetOptions(nativeFactory, options); 135 nativeSetOptions(nativeFactory, options);
136 } 136 }
137 137
138 public void setVideoHwAccelerationOptions(Object renderEGLContext) { 138 public void setVideoHwAccelerationOptions(Object renderEGLContext) {
139 nativeSetVideoHwAccelerationOptions(nativeFactory, renderEGLContext); 139 nativeSetVideoHwAccelerationOptions(nativeFactory, renderEGLContext);
140 } 140 }
141 141
142 /** Set the EGL context used by HW Video encoding and decoding.
143 *
144 *
145 * @param localEGLContext An instance of javax.microedition.khronos.egl.EGLC ontext.
146 * Must be the same as used by VideoCapturerAndroid a nd any local
147 * video renderer.
148 * @param remoteEGLContext An instance of javax.microedition.khronos.egl.EGLC ontext.
149 * Must be the same as used by any remote video rende rer.
150 */
151 public void setVideoHwAccelerationOptions(Object localEGLContext, Object remot eEGLContext) {
152 nativeSetVideoHwAccelerationOptions2(nativeFactory, localEGLContext, remoteE GLContext);
153 }
154
142 public void dispose() { 155 public void dispose() {
143 nativeFreeFactory(nativeFactory); 156 nativeFreeFactory(nativeFactory);
144 signalingThread = null; 157 signalingThread = null;
145 workerThread = null; 158 workerThread = null;
146 } 159 }
147 160
148 public void threadsCallbacks() { 161 public void threadsCallbacks() {
149 nativeThreadsCallbacks(nativeFactory); 162 nativeThreadsCallbacks(nativeFactory);
150 } 163 }
151 164
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 long nativeFactory, MediaConstraints constraints); 212 long nativeFactory, MediaConstraints constraints);
200 213
201 private static native long nativeCreateAudioTrack( 214 private static native long nativeCreateAudioTrack(
202 long nativeFactory, String id, long nativeSource); 215 long nativeFactory, String id, long nativeSource);
203 216
204 public native void nativeSetOptions(long nativeFactory, Options options); 217 public native void nativeSetOptions(long nativeFactory, Options options);
205 218
206 private static native void nativeSetVideoHwAccelerationOptions( 219 private static native void nativeSetVideoHwAccelerationOptions(
207 long nativeFactory, Object renderEGLContext); 220 long nativeFactory, Object renderEGLContext);
208 221
222 private static native void nativeSetVideoHwAccelerationOptions2(
223 long nativeFactory, Object localEGLContext, Object remoteEGLContext);
224
209 private static native void nativeThreadsCallbacks(long nativeFactory); 225 private static native void nativeThreadsCallbacks(long nativeFactory);
210 226
211 private static native void nativeFreeFactory(long nativeFactory); 227 private static native void nativeFreeFactory(long nativeFactory);
212 } 228 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698