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

Issue 1828203002: Android HW encoder: Add support for textures when using EGL 1.0 (Closed)

Created:
4 years, 9 months ago by magjed_webrtc
Modified:
4 years, 7 months ago
Reviewers:
AlexG, perkj_webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Android HW encoder: Add support for textures when using EGL 1.0 This CL is a follow-up to https://codereview.webrtc.org/1829923002. After that CL, the EGL context passed to PeerConnectionFactory nativeSetVideoHwAccelerationOptions is an EGL 1.0 context, not an EGL 1.4 context. If it's not an EGL 1.4 context, we don't call SetEGLContext on the encoder, which means that the encoder won't encode from the texture directly, but will call ConvertNativeToI420Frame instead and encode from byte buffers. This CL encodes directly from textures for EGL 1.0 as well, but ignores the call to eglPresentationTimeANDROID. BUG=webrtc:5702

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Add comment in encoder that explains why eglBase might be EGL10 #

Total comments: 2

Patch Set 3 : Rebase, add full url to bug, and log a warning when using EGL10 in encoder. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -14 lines) Patch
M webrtc/api/androidtests/src/org/webrtc/MediaCodecVideoEncoderTest.java View 4 chunks +6 lines, -4 lines 0 comments Download
M webrtc/api/java/jni/androidmediaencoder_jni.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/api/java/jni/peerconnection_jni.cc View 1 2 1 chunk +1 line, -5 lines 0 comments Download
M webrtc/api/java/src/org/webrtc/MediaCodecVideoEncoder.java View 1 2 4 chunks +17 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (10 generated)
perkj_webrtc
cl looks good. Please add a a reference to a bug. https://codereview.webrtc.org/1828203002/diff/60001/webrtc/api/java/src/org/webrtc/MediaCodecVideoEncoder.java File webrtc/api/java/src/org/webrtc/MediaCodecVideoEncoder.java (right): ...
4 years, 8 months ago (2016-03-29 11:10:16 UTC) #8
magjed_webrtc
Filed a bug to track this. https://codereview.webrtc.org/1828203002/diff/60001/webrtc/api/java/src/org/webrtc/MediaCodecVideoEncoder.java File webrtc/api/java/src/org/webrtc/MediaCodecVideoEncoder.java (right): https://codereview.webrtc.org/1828203002/diff/60001/webrtc/api/java/src/org/webrtc/MediaCodecVideoEncoder.java#newcode400 webrtc/api/java/src/org/webrtc/MediaCodecVideoEncoder.java:400: ((EglBase14) eglBase).swapBuffers(TimeUnit.MICROSECONDS.toNanos(presentationTimestampUs)); On ...
4 years, 8 months ago (2016-03-29 11:37:37 UTC) #12
perkj_webrtc
lgtm with a nit https://codereview.webrtc.org/1828203002/diff/80001/webrtc/api/java/src/org/webrtc/MediaCodecVideoEncoder.java File webrtc/api/java/src/org/webrtc/MediaCodecVideoEncoder.java (right): https://codereview.webrtc.org/1828203002/diff/80001/webrtc/api/java/src/org/webrtc/MediaCodecVideoEncoder.java#newcode402 webrtc/api/java/src/org/webrtc/MediaCodecVideoEncoder.java:402: // |eglBase| is not always ...
4 years, 8 months ago (2016-03-29 15:15:13 UTC) #13
AlexG
lgtm
4 years, 8 months ago (2016-03-30 17:10:31 UTC) #14
magjed_webrtc
4 years, 8 months ago (2016-03-31 11:28:42 UTC) #15
I think we should revert https://codereview.webrtc.org/1829923002, so I don't
know if I should land this or not.

https://codereview.webrtc.org/1828203002/diff/80001/webrtc/api/java/src/org/w...
File webrtc/api/java/src/org/webrtc/MediaCodecVideoEncoder.java (right):

https://codereview.webrtc.org/1828203002/diff/80001/webrtc/api/java/src/org/w...
webrtc/api/java/src/org/webrtc/MediaCodecVideoEncoder.java:402: // |eglBase| is
not always an instance of EglBase14 because of bug 5702. Setting the
On 2016/03/29 15:15:13, perkj_webrtc wrote:
> nit: Make sure this is a valid link please.

Done.

Powered by Google App Engine
This is Rietveld 408576698