What Surface needs to use in Android?
Anton Olegovich
ivanushkin.anton.olegovich at gmail.com
Tue Sep 2 08:40:53 PDT 2014
On 02.09.2014 16:44, Anton Olegovich wrote:
>
> On 02.09.2014 16:30, Sebastian Dröge wrote:
>> On Di, 2014-09-02 at 15:52 +0400, Anton Olegovich wrote:
>>> If autovideosink in Android findes out glimagesink is there a need to
>>> change GStreamerSurfaceView?
>> No, glimagesink and previously eglglessink only need something that
>> provides an android.view.Surface. And in native code you need to call
>> ANativeWindow_fromSurface() on that to get a ANativeWindow, and then
>> pass this to the sink.
>>
>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> Does it mean that the Surface stays the same as in android tutorial_3?
>
> You know, at one device some times i've got this messages of Logcat:
>
> I/SurfaceFlinger(100): [virtual void android::Layer::onDraw(const
> android::Region&) const] SurfaceView(i:145): clear screen hole (l:0,
> t:0, w:1024, h:562)
> 01-01 04:41:05.882: E/IMGSRV(2213): :0: PVRSRVAllocDeviceMem: Error 1
> returned
> 01-01 04:41:05.883: E/IMGSRV(2213): :0: PVRSRVAllocDeviceMem: Error 1
> returned
> 01-01 04:41:05.883: E/IMGSRV(2213): :0:
> SetupTextureRenderTargetControlWords: Can't make texture resident
> 01-01 04:41:05.883: E/GStreamer+default(2213): 0:00:34.959508156
> 0x5573b660 gstglutils.c:76:gst_gl_context_check_framebuffer_status
> GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
> 01-01 04:41:05.884: E/IMGSRV(2213): :0: PVRSRVAllocDeviceMem: Error 1
> returned
> 01-01 04:41:05.885: E/IMGSRV(2213): :0: PVRSRVAllocDeviceMem: Error 1
> returned
> 01-01 04:41:05.889: I/SurfaceFlinger(100): [virtual void
> android::Layer::onDraw(const android::Region&) const]
> SurfaceView(i:145): clear screen hole (l:0, t:0, w:1024, h:562)
> 01-01 04:41:05.906: I/SurfaceFlinger(100): [virtual void
> android::Layer::onDraw(const android::Region&) const]
> SurfaceView(i:145): clear screen hole (l:0, t:0, w:1024, h:562)
> 01-01 04:41:05.922: I/SurfaceFlinger(100): [virtual void
> android::Layer::onDraw(const android::Region&) const]
> SurfaceView(i:145): clear screen hole (l:0, t:0, w:1024, h:562)
> 01-01 04:41:05.939: I/SurfaceFlinger(100): [virtual void
> android::Layer::onDraw(const android::Region&) const]
> SurfaceView(i:145): clear screen hole (l:0, t:0, w:1024, h:562)
> 01-01 04:41:05.956: I/SurfaceFlinger(100): [virtual void
> android::Layer::onDraw(const android::Region&) const]
> SurfaceView(i:145): clear screen hole (l:0, t:0, w:1024, h:562)
> 01-01 04:41:05.970: E/IMGSRV(2213): :0: PVRSRVAllocDeviceMem: Error 1
> returned
> 01-01 04:41:05.970: E/IMGSRV(2213): :0: PVRSRVAllocDeviceMem: Error 1
> returned
> 01-01 04:41:05.971: E/IMGSRV(2213): :0:
> SetupTextureRenderTargetControlWords: Can't make texture resident
> 01-01 04:41:05.971: E/GStreamer+default(2213): 0:00:35.047410002
> 0x5573b660 gstglutils.c:76:gst_gl_context_check_framebuffer_status
> GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
> 01-01 04:41:05.972: I/SurfaceFlinger(100): [virtual void
> android::Layer::onDraw(const android::Region&) const]
> SurfaceView(i:145): clear screen hole (l:0, t:0, w:1024, h:562)
> 01-01 04:41:05.976: E/IMGSRV(2213): :0: PVRSRVAllocDeviceMem: Error 1
> returned
> 01-01 04:41:05.977: E/IMGSRV(2213): :0: PVRSRVAllocDeviceMem: Error 1
> returned
> 01-01 04:41:05.988: I/SurfaceFlinger(100): [virtual void
> android::Layer::onDraw(const android::Region&) const]
> SurfaceView(i:145): clear screen hole (l:0, t:0, w:1024, h:562)
> 01-01 04:41:06.005: I/SurfaceFlinger(100): [virtual void
> android::Layer::onDraw(const android::Region&) const]
> SurfaceView(i:145): clear screen hole (l:0, t:0, w:1024, h:562)
> 01-01 04:41:06.021: I/SurfaceFlinger(100): [virtual void
> android::Layer::onDraw(const android::Region&) const]
> SurfaceView(i:145): clear screen hole (l:0, t:0, w:1024, h:562)
> 01-01 04:41:06.036: D/PowerManagerService(359): user activity timeout
> timed out nextState=3
> 01-01 04:41:06.036: D/PowerManagerService(359): setPowerState:
> mPowerState=0x7 newState=0x3 noChangeLights=false reason=3
> 01-01 04:41:06.036: D/PowerManagerService(359): setPowerState:
> mPowerState=7 newState=3 noChangeLights=false
> 01-01 04:41:06.036: D/PowerManagerService(359):
> oldKeyboardBright=false newKeyboardBright=false
> 01-01 04:41:06.037: D/PowerManagerService(359): oldScreenBright=true
> newScreenBright=true
> 01-01 04:41:06.038: I/SurfaceFlinger(100): [virtual void
> android::Layer::onDraw(const android::Region&) const]
> SurfaceView(i:145): clear screen hole (l:0, t:0, w:1024, h:562)
> 01-01 04:41:06.039: D/PowerManagerService(359): oldButtonBright=true
> newButtonBright=false
> 01-01 04:41:06.039: D/PowerManagerService(359): oldScreenOn=true
> newScreenOn=true
> 01-01 04:41:06.039: D/PowerManagerService(359): oldBatteryLow=false
> newBatteryLow=false
> 01-01 04:41:06.040: D/PowerManagerService(359): offMask=0x4
> dimMask=0x0 onMask=0x0 difference=0x4 realDifference=0x4 forceState=0x0
> 01-01 04:41:06.040: I/PowerManagerService(359): Setting brightess off: 4
> 01-01 04:41:06.044: D/PowerManagerService(359): setTimeoutLocked
> now=2454147 timeoutOverride=-1 nextState=1 when=2501147
> 01-01 04:41:06.055: I/SurfaceFlinger(100): [virtual void
> android::Layer::onDraw(const android::Region&) const]
> SurfaceView(i:145): clear screen hole (l:0, t:0, w:1024, h:562)
> 01-01 04:41:06.071: I/SurfaceFlinger(100): [virtual void
> android::Layer::onDraw(const android::Region&) const]
> SurfaceView(i:145): clear screen hole (l:0, t:0, w:1024, h:562)
> 01-01 04:41:06.073: E/IMGSRV(2213): :0: PVRSRVAllocDeviceMem: Error 1
> returned
> 01-01 04:41:06.075: E/IMGSRV(2213): :0: PVRSRVAllocDeviceMem: Error 1
> returned
> 01-01 04:41:06.075: E/IMGSRV(2213): :0:
> SetupTextureRenderTargetControlWords: Can't make texture resident
> 01-01 04:41:06.076: E/GStreamer+default(2213): 0:00:35.152471079
> 0x5573b660 gstglutils.c:76:gst_gl_context_check_framebuffer_status
> GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
> 01-01 04:41:06.078: E/IMGSRV(2213): :0: PVRSRVAllocDeviceMem: Error 1
> returned
> 01-01 04:41:06.079: E/IMGSRV(2213): :0: PVRSRVAllocDeviceMem: Error 1
> returned
> 01-01 04:41:06.088: I/SurfaceFlinger(100): [virtual void
> android::Layer::onDraw(const android::Region&) const]
> SurfaceView(i:145): clear screen hole (l:0, t:0, w:1024, h:562)
> 01-01 04:41:06.104: I/SurfaceFlinger(100): [virtual void
> android::Layer::onDraw(const android::Region&) const]
> SurfaceView(i:145): clear screen hole (l:0, t:0, w:1024, h:562)
> 01-01 04:41:06.121: I/SurfaceFlinger(100): [virtual void
> android::Layer::onDraw(const android::Region&) const]
> SurfaceView(i:145): clear screen hole (l:0, t:0, w:1024, h:562)
> 01-01 04:41:06.137: I/SurfaceFlinger(100): [virtual void
> android::Layer::onDraw(const android::Region&) const]
> SurfaceView(i:145): clear screen hole (l:0, t:0, w:1024, h:562)
> 01-01 04:41:06.154: I/SurfaceFlinger(100): [virtual void
> android::Layer::onDraw(const android::Region&) const]
> SurfaceView(i:145): clear screen hole (l:0, t:0, w:1024, h:562)
> 01-01 04:41:06.160: E/IMGSRV(2213): :0: PVRSRVAllocDeviceMem: Error 1
> returned
> 01-01 04:41:06.161: E/IMGSRV(2213): :0: PVRSRVAllocDeviceMem: Error 1
> returned
> 01-01 04:41:06.161: E/IMGSRV(2213): :0:
> SetupTextureRenderTargetControlWords: Can't make texture resident
>
> And on the other device i starts my App and when it begines to receive
> video streame it shots down
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140902/36ec750f/attachment.html>
More information about the gstreamer-devel
mailing list