Wednesday, 2018-09-19

*** ubuntu is now known as Guest7314901:37
*** ChanServ sets mode: +v T405:05
T4<adampigg> abranson, another day for brainstorming ;)06:40
abransonadampigg: r0kk3rz was right, native video renderers don't touch the video at all, they just hand it to the display which already knows the format and displays it straight.06:42
abransonthe suggestion was that you change the caps so it'll be able to negotiate 64z32 with downstream06:44
T4<adampigg> abranson, point me to where the caps can be changed then....will that/also get around the assert i hit?08:31
ghosalmartinguhl, ive setup an obs project here for chiron https://build.merproject.org/project/show/home:mgrover:devel:hw:xiaomi:chiron, lemme know what your obs username is and i can add you permissions for it. makes life much easier than building locally imo09:09
abransonadampigg: i'd grep the vdec file for 'i420' and go from there. there shouldn't be any i420 left in your test09:12
T4unomind was added by: unomind14:26
guhlghosalmartin: I think the experiment with the raspberry3 is leading nowhere16:13
guhlI do have a self built LOS 15.1 running on the rp3 and have serial console access16:13
guhlbut it also boots perfectly when i enable the config_vt16:14
ghosalmartinguhl :'(16:16
taixzoIs the barometer on an Xperia X accessible to sfos?16:47
guhlporting for a device with serial console access would be a lot easier ;-)16:48
maltaixzo: I had it working but forgot how I did it, I was the one who added support for it to middleware, I'll test if I can make it work again, just found the modified Messwerk app for testing it16:53
T4alberone was added by: alberone16:53
maltaixzo: yes, seems to still work after modifying two configuration files17:10
piggzabranson: around?17:16
piggzmal: in https://developer.gnome.org/gst-plugins-libs/stable/gst-plugins-base-libs-gstvideo.html#GST-VIDEO-CAPS-MAKE:CAPS ... what would format sring be for nv12 32-64 tile zigzag :D17:17
malpiggz: NV12_64Z32 https://github.com/GStreamer/gst-plugins-base/blob/1c8bf44dea2af3b8bbed3e230479fe5405a5bad6/gst-libs/gst/video/video-format.h#L9317:19
malhttps://github.com/GStreamer/gst-plugins-base/blob/1c8bf44dea2af3b8bbed3e230479fe5405a5bad6/gst-libs/gst/video/video-format.c#L535217:20
taixzomal: which files?17:21
maltaixzo: add "QPressureSensor=sensorfw.pressuresensor" to /etc/xdg/QtProject/Sensors.conf and "pressureadaptor = hybrispressureadaptor" to [plugins] section of /etc/sensorfw/primaryuse.conf and finally install messwerk from here https://build.merproject.org/project/show/home:mal:apps17:24
malit seems my messwerk modification have a bug, the graph is not updating17:27
mal*has17:28
*** ChanServ sets mode: +v T417:39
maltaixzo: I fixed messwerk bug so now it should plot the value correctly17:41
taixzomal: do I have to reboot after editing those conf files? Messwerk is showing pressure at 0.000 Pa.18:39
r0kk3rzsensorfwd might want a kick18:43
taixzoyep, that did it!18:44
* vknecht symbolically links to « under pressure »18:52
piggzmal: so, ive set the output caps to NV12....., and tagged the input frames with the same format.....18:53
piggzin the routing that does the conversion, im just not doing anything18:53
piggzim not getting an assert anymore on the formats being incorrect18:54
piggzbut, i have a mainly green scrren with some purpue blocks, which i guess are tiles18:54
vknechtpiggz, maybe this offline counsel can help, about LOG_NDEBUG : http://merproject.org/logs/%23sailfishos-porters/%23sailfishos-porters.2018-06-18.log.html#t2018-06-18T20:56:4419:00
piggzvknecht: sod it ... i'll work on amazfish instead!19:35
abransonpiggz: hi!19:51
piggzlo abranson19:52
piggzwanna help out? ;)19:52
abransonif I can. doesn't sound like you had much luck though19:52
piggzwell, i think i got the output configured....19:53
piggz0:00:17.028174979 16821 0xe92bc7b0 DEBUG              droidvdec gstdroidvdec.c:957:gst_droidvdec_set_format:<droidvdec0> peer caps video/x-raw, format=(string)NV12_64Z32, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]19:53
piggzthe width/height are a bit odd19:53
piggzthis line later looks better19:54
piggz0:00:17.404658103 16821 0xe92162f0 DEBUG              droidvdec gstdroidvdec.c:768:gst_droidvdec_configure_state:<droidvdec0> output caps video/x-raw, format=(string)NV12_64Z32, width=(int)640, height=(int)360, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(19:54
piggzfraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)bt601, framerate=(fraction)24000/100119:54
abransonthat's the caps. just possible sizes. defaults 1-maxint19:54
abransonthat looks really good19:54
abransonand did you say there's a colour conv element appearing in the pipeline too? converting it to i420?19:55
abransonis it still claiming that it's colour format 21 though?19:55
piggzthe next lines are.....19:56
piggz0:00:17.405403849 16821 0xe92162f0 DEBUG              droidvdec gstdroidvdec.c:269:gst_droidvdec_convert_buffer:<droidvdec0> convert buffer19:56
piggz0:00:17.405446038 16821 0xe92162f0 INFO               droidvdec gstdroidvdec.c:273:gst_droidvdec_convert_buffer:<droidvdec0> using codec supplied width 64019:56
piggz0:00:17.405554842 16821 0xe92162f0 DEBUG              droidvdec gstdroidvdec.c:366:gst_droidvdec_convert_buffer:<droidvdec0> Converting from crazy qcom format19:56
piggz0:00:17.405587812 16821 0xe92162f0 DEBUG              droidvdec gstdroidvdec.c:611:gst_droidvdec_finish_frame:<droidvdec0> finish frame19:56
abransonbecause it looks like  QOMX_COLOR_FormatYUV420PackedSemiPlanar64x32Tile2m8ka is 0x7FA30C0019:56
abranson0x7FA30C03 sorry19:56
piggzand the comment comes from.....19:56
abransonone less than the xperia 0x7FA30C04 - QOMX_COLOR_FORMATYUV420PackedSemiPlanar32m19:56
piggz0:00:17.405403849 16821 0xe92162f0 DEBUG              droidvdec gstdroidvdec.c:269:gst_droidvdec_convert_buffer:<droidvdec0> convert buffer19:56
piggz0:00:17.405446038 16821 0xe92162f0 INFO               droidvdec gstdroidvdec.c:273:gst_droidvdec_convert_buffer:<droidvdec0> using codec supplied width 64019:56
piggz0:00:17.405554842 16821 0xe92162f0 DEBUG              droidvdec gstdroidvdec.c:366:gst_droidvdec_convert_buffer:<droidvdec0> Converting from crazy qcom format19:56
piggz0:00:17.405587812 16821 0xe92162f0 DEBUG              droidvdec gstdroidvdec.c:611:gst_droidvdec_finish_frame:<droidvdec0> finish frame19:56
piggzsorry...19:57
piggz } else if (dec->hal_format == 21) {19:57
piggz        GST_DEBUG_OBJECT (dec, "Converting from crazy qcom format");19:57
piggz        //do nothing19:57
piggz          //qcom_convert(in->data, map_info.data + info->offset[0], map_info.data + info->offset[1], map_info.data + info->offset[2],19:57
piggz          //  width, height,19:57
r0kk3rz'Converting from crazy qcom format' XD19:57
piggz          //  info->stride[0], info->stride[1], info->stride[2] );19:57
r0kk3rznobody likes the zigzags19:57
abransonare you copying the buffer like in the SemiPlanar32m block?19:57
abransonsorry the i420 block19:57
piggzno, i do nothing19:57
piggzi wasnt sure what the cropping would do...19:58
piggzah shit, is my output buffer empty19:58
abransonyeah19:58
piggzi mis-read the above code,...19:59
piggzwill the copy even work with zig zags? ... lets see19:59
piggzfor some reason, i though the copy worked on the data in-place20:00
abransonwell for i420 we manually apply the crop during the copy20:01
abransonthe frames come out of the codec bigger than they should, with cropping instructions alongside20:01
abransonbut i'm not sure if droidvdec is a bin, in which case we can add a cropping element after it and not worry20:02
r0kk3rzsounds worth trying20:03
piggzabranson: how should i copy the buffer? i dont think I can copy yuv planes can i like i420?20:17
piggz(it crashes when i try)20:17
abransonthat is the tricky bit, if it weren't for the cropping we could just copy the buffer in one go20:19
piggzabranson: if we ignore cropping for now....20:20
piggzmemcopy, width* height * 3 ?20:20
abransonpiggz: *3/2 maybe?20:22
piggzabranson: well, it shows 'something'20:28
piggzthere is movement in there20:28
piggzmixed up in all the green20:28
abransonall diagonally shifted?20:28
abransoni do think the 64z32 might be a red herring though - and this one is 21: http://androidxref.com/8.1.0_r33/xref/hardware/qcom/media/msm8974/mm-core/inc/OMX_IVCommon.h#11020:33
piggzabranson: yeah, the 21 came from a differnt code path than the 64x32...20:48
piggz(was afk...)20:48
piggzabranson: https://imgur.com/delete/KQLqpSKbSQchHfK20:52
piggzabranson: format 0x7FA30C03 was the output of convert->getDecoderOuputFormat() in droidmedia20:53
piggzhow that gets to 21 i dont knwo20:53
r0kk3rzi think your 80s CRT needs calibrating20:57
r0kk3rzv-hold maybe20:58
Mister_Magisterr0kk3rz: xd21:08
abransonpiggz: so that was what the blob was producing?21:27
piggzabranson: ah, was it.....the blob is disabled for now....21:29
abransonfunny format for an i420color converter to be making21:29
abransonbut that would explain why the output of the blob wasn't right in your browser21:29
abransonso one solution might be to reinstate the blob, but keep the retagging. with the blob i don't think you need to copy the buffers.21:30
piggzk i was thinking osmething similar ..21:33
piggzabranson: tag the output format, or the frames, or both?21:33
piggzwith the blob, it will take a dffernt path to the buffer copy anyway wont it21:34
piggzabranson: with the blob used, it crashes21:38
piggzi think it crashes in     if (droid_media_convert_to_i420 (dec->convert, in, data) != true) {21:43
piggzabranson: im done for the night ... im now getting the assert that the 2 formats are not the same21:49
piggz0:00:08.419245922 11871 0xe9215750 DEBUG              droidadec gstdroidadec.c:499:gst_droidadec_handle_frame:<droidadec0> handle frame21:49
piggz0:00:08.419334567 11871 0xe9215750 DEBUG              droidadec gstdroidadec.c:549:gst_droidadec_handle_frame:<droidadec0> decoding data of size 270 (270)21:49
piggz** (sailfish-browser:11871): CRITICAL **: gst_video_frame_map_id: assertion 'info->finfo->format == meta->format' failed21:49
piggz0:00:08.422214611 11871 0xe926b200 DEBUG            droidmemory gstdroidmediabuffer.c:204:gst_droid_media_buffer_allocator_free:<droidmediabufferallocator0> free 0xd08da65021:49
piggz0:00:08.423072004 11871 0xe5aec6c0 DEBUG            droidmemory gstdroidmediabuffer.c:136:gst_droid_media_buffer_allocator_alloc:<droidmediabufferallocator0> alloc 0xd08da6d021:49
piggz0:00:08.423179712 11871 0xe5aec6c0 DEBUG              droidvdec gstdroidvdec.c:612:gst_droidvdec_finish_frame:<droidvdec0> finish frame21:49
piggzgnight :) /away zzzZZZ21:49

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!