IRC log of #maemo-devel for Sunday, 2010-01-24

villagerhmm, the performance of libavcodec's swscale stinks on the n90000:01
villagerffmpeg's swscale, that is00:02
*** Striki has joined #maemo-devel00:02
villagerhmm, what else can I use if I want to convert camera input from yuv to rgb?00:03
villageror I suppose it's possible that it's sdl that stinks00:04
lcuk_what are you wanting for00:04
lcuk_direct saving?00:04
lcuk_or display00:04
lcuk_and isnt there a specific gstreamer plugin for this00:04
villagerwell, I convert to rgb, then blit onto the sdl surface00:04
villagerwhich I display00:05
villagerwith SDL_Flip00:05
villagerI want to be able to scribble onto the picture before displaying it00:05
villagershouldn't be necessary to use gstreamer for that, should it?00:06
lcuk_if you are using gstreamer to get the camera image00:06
lcuk_just change the result type you want00:07
lcuk_i scribble on many images00:07
villagerI'm using v4l200:07
lcuk_i just redraw in real time00:07
lcuk_http://liqbase.net/liq.20091230_041442.user.lolcats.png00:07
villagerso I have to stop using v4l2 and use gstreamer instead?00:08
villagerjust to get a rgb picture into a sdl surface?00:08
villagerwish it was as fast on the device as on my pc...00:10
lcuk_:) my device is fast00:12
villagerlet's see if sdl is the problem00:12
lcuk_which do you have00:12
villagerwhich what?00:13
lcuk_maemo device00:13
lcuk_and you are wanting to draw onto live video00:13
villagermy n900?00:13
villageryeah00:13
* lcuk_ nods, its hard to keep it directed at scene and work with it00:14
lcuk_so effectively useless00:14
lcuk_better taking photos and drawing on them00:14
lcuk_drawing over live stuff ala football commentators is something for a fixed cam00:14
* lcuk_ learnt from experience00:15
villagerwell, not that kind of drawing... programmatic, like those icons the camera app shows00:15
lcuk_oh, ui00:17
villagermaybe I should do the conversion straight into the main sdl screen instead of onto an offscreen surface which I blit into it00:18
lcuk_reducing the layers helps :)00:19
villagerhmm, then I have to move some of the logic around00:22
*** VDVsx has quit IRC00:23
villagerthat made it quite a bit better it seems00:30
villagerhmm, perhaps part of the problem was that one of the surfaces were 24bpp and other 32bpp, which probably added conversion overhead in the blit00:31
villagerlcuk_: oh yeah, my program also has a hotkey to pause the live video, so you can mess with (and scribble on) a stationary image for a moment, then restart the live video when done00:37
villagerhmm, the builtin camera app is still an order of magnitude faster than my app, wonder what tricks they use... maybe they just write the icons directly onto the yuv?00:39
villageror is the gstreamer stuff able to do the color conversion in hardware?00:42
*** BabelO__ has quit IRC00:44
villagerdefinitely the sws_scale that's the problem now, it's very fast if I replace it with memcpy00:45
*** blubbi_ has quit IRC00:50
*** simoneb_ has quit IRC00:50
villagerwell, fps is usable for now, I'll worry about hw acceleration later..00:51
*** woglinde_ has joined #maemo-devel00:53
lcuk_villager, neither, a hint would be it still being yuv ;)00:56
lcuk_conversion from yuv to rgb is a VERY time consuming operation00:56
lcuk_none trivial pel oriented not very optimizable high bandwidth operation00:57
villagerlcuk_: so they do write the icons directly onto the yuv?00:57
villageror how do they display them?00:57
lcuk_hwy not, i do00:57
* lcuk_ does everything in yuv, why shouldnt other people00:57
lcuk_hell, mplayer puts subtitles on it00:57
lcuk_afaik00:57
villagerhow do you display the yuv? is it opengl textures or something in yuv format?00:58
lcuk_xvideo00:58
lcuk_but you cant use sdl00:58
lcuk_or even x11 rendering tools00:59
villagerit's possible to get dialogs on top of the camera-ui display, the icons do it, I thought xvideo would make the video always topmost00:59
*** woglinde has quit IRC00:59
lcuk_you can colorkey things if you really need, but in sdl you have already thrown away gtk style widgets01:00
villagerso you think the camera-ui is using xvideo with color keying?01:01
lcuk_heres the sort of thing i do, consider that any element in here can be moving video source http://www.youtube.com/watch?v=7hGUKICDeok01:01
lcuk_villager, i dunno exactly, im pretty certain it uses xvideo though01:01
lcuk_never looked too closely tho01:01
*** woglinde_ is now known as woglinde01:10
lardman|afknight chaps01:25
*** lardman|afk has quit IRC01:26
*** Ken-Young has joined #maemo-devel01:50
*** lbt has quit IRC01:55
*** V13 has quit IRC01:57
*** SpeedEvil1 has joined #maemo-devel02:05
*** SpeedEvil has quit IRC02:19
*** SpeedEvil1 is now known as SpeedEvil02:30
*** Ken-Young has quit IRC02:30
*** Ken-Young has joined #maemo-devel02:31
*** Ken-Young has quit IRC02:54
*** woglinde has quit IRC03:13
*** calidore has quit IRC03:49
*** jpetersen_ has quit IRC04:12
*** Mek has quit IRC04:40
*** SpeedEvil1 has joined #maemo-devel05:17
*** _andy has quit IRC05:22
*** sr71 has quit IRC05:22
*** sr71 has joined #maemo-devel05:24
*** SpeedEvil has quit IRC05:39
*** _andy has joined #maemo-devel05:42
*** asjo` has joined #maemo-devel06:32
*** asjo has quit IRC06:40
*** zgold_ has quit IRC06:40
*** zgold has joined #maemo-devel06:40
villagercrap, looks like I can't use both cameras at the same time06:46
*** Ken-Young has joined #maemo-devel06:49
SpeedEvil1nope06:52
SpeedEvil1there is one camera interface06:52
SpeedEvil1with a mux between the cameras06:52
SpeedEvil1It may in theory be possible to switch between the cams at video rates.06:53
SpeedEvil1But that's gonna be a hell of a lot of work.06:53
*** SpeedEvil1 is now known as SpeedEvil06:53
villagerhmm yeah06:54
SpeedEvilwhat for?07:07
villagerat the moment it was just for fun, was going to put a live image of myself into a corner of the live video from the main camera...07:16
SpeedEvilah07:16
villagerthough I was hoping that someday I could use the front camera for eye tracking... while the main display showed what the main camera saw, it could also figure out which part of the scenery I was looking at07:18
villageror better, which part of the ui, so I could hold the phone with both hands, and tell it to snap a picture using my eyes07:19
villagerblink twice = take a snapshot07:19
villageror something07:20
villagerwould be neat07:20
SpeedEvilvillager: yes, that would be good.07:22
SpeedEvilvillager: however - one large problem is that the front camera is generally bad.07:22
SpeedEvilIn not-ideal light, it's terrible.07:22
SpeedEvilI have questions if it's ever going to be very usable for eye tracking in any but hte most contrived situations.07:23
SpeedEvilFor example, facing the sun, with the camera 30cm from your eye07:23
villageryeah, it's a little crappy07:25
SpeedEvilIn principle the main cam can even be replaced and upgraded! Though the front one really needs it and can't.07:26
*** DocScrutinizer has quit IRC07:31
*** DocScrutinizer51 has quit IRC07:32
*** Docscrutemp has joined #maemo-devel07:32
*** DocScrutinizer has joined #maemo-devel07:32
*** Docscrutemp is now known as DocScrutinizer5107:32
*** adiroiban has joined #maemo-devel08:21
*** kamui has joined #maemo-devel08:26
adiroibanHi, is osso-pdf-viewer open source software?08:27
adiroibanI can not find the source package08:28
*** slonopotamus has joined #maemo-devel08:45
*** Mek has joined #maemo-devel09:11
*** slonopotamus has quit IRC09:46
*** slonopotamus has joined #maemo-devel09:51
*** slonopotamus_ has joined #maemo-devel10:26
*** adiroiban has left #maemo-devel10:26
*** slonopotamus has quit IRC10:27
*** slonopotamus_ is now known as slonopotamus10:28
*** Ken-Young has quit IRC10:41
*** lcuk_ is now known as lcuk10:57
*** sleipnir has joined #maemo-devel11:12
*** shinkamui has joined #maemo-devel11:17
*** kamui has quit IRC11:35
*** lardman has joined #maemo-devel12:13
*** BabelO has joined #maemo-devel12:31
*** slonopotamus has quit IRC12:34
*** slonopotamus has joined #maemo-devel12:35
*** slonopotamus has quit IRC12:35
*** GeneralAntilles has quit IRC13:02
lardmandragly: you about today?13:23
*** lardman is now known as lardman|afk14:09
*** GeneralAntilles has joined #maemo-devel14:16
*** lbt has joined #maemo-devel14:23
*** VDVsx has joined #maemo-devel16:09
*** kodomo has joined #maemo-devel17:26
*** kodomo_ has quit IRC17:36
*** lardman|afk is now known as lardman18:31
*** cruisemaniac has joined #maemo-devel18:44
*** Milhouse has quit IRC19:01
*** jebba1 has quit IRC19:06
*** jebba has joined #maemo-devel19:06
lardmanwill wonders never cease, the code compiles at last19:55
lardman~lart C++ for being nasty19:56
* lardman reads topic and hopes he won't get booted for the trollish comment about C++ ;)20:05
lcuklol lardman we have a #maemo-troll channel for your sort20:05
lardmanoi!20:05
lcukworst offenders get put onto maemo.org frontpage ;)20:05
lardmanyeah, like head being put on a spike you reckon? ;)20:06
lcukworse than that, sent to work on vb code20:06
lardmannasty, though sounds like next week to me20:06
*** cruisemaniac has left #maemo-devel20:07
lcukim doing different stuff next week too20:07
lardmanhmm, I have to write a course next week20:10
lcukheh ive got similar to do i think, for my own sanity20:10
lardmanhow's liqbase working coming along then?20:11
lardmans/working/work20:11
lcukgreat actually :)20:12
lardmangood :)20:14
lcuki got the key transport mechanism in place to do cool stuff20:14
lcukhttp://liqbase.net/liq.liqbase.multi.sketch.S6003750.JPG20:14
lardmanyou still located up North, or moved down South-East?20:14
lardmanah group stuff, nice :)20:14
lcuknorth atm20:14
lcukyeah simon, this is the underpinnings needed for liqflow20:15
lcukand everything else20:15
lcukthe rotating sketches allow orientation shifts20:15
lcukthe group stuff allows communication of the strokes20:15
lcukand since liqflow is just normal strokes, i just need the positioning thing20:15
lcukit looks kickass having live graffiti wall on the big tv20:16
lardman:)20:17
lardmananyone know if I need to do something special to get QMutex and friends to compile in?20:17
lardman/home/simon/build/maemo-barcode/maemo-barcode/trunk/mbarcode-qt/builddir/../dmtxdecoderthread.cpp:46: undefined reference to `DMTXDecoderThread::wait_mutex'20:17
lardmanor is that caused by something else?20:18
lcukyou tried in #qt-maemo?20:18
lcukare you doing this in qt4.5 or 4.620:18
lardmanvery quiet in there any time I've asked a question so have given up on them20:18
lardmanquicker to just Google it out myself20:18
lardman4.520:18
lardmanfor the time bing20:18
lardmanbeing20:18
lcukthats cool tho20:18
lcukis it working better than the c approach for you20:19
lardmanno, C++ is horrid20:19
lardmanbut it should allow for easy plugins, which will be good20:19
lardmanah looks better, random static keyword broke it20:21
* lardman should really have learned C++ when he was younger rather than concentrating on more useful things like C and ASM20:21
lardmanah well20:22
* lardman heads to find some vino :)20:22
lardmanto celebrate :)20:22
DocScrutinizerlardman: it's always too soon to learn C++ ;-)20:40
villagerI learned C++ long ago, I'm never happy I did20:42
villagerI've forgotten all the worst stuff by now20:43
villagerwell, retained enough to write that syncevolution backend20:47
lardmanoh well, nothing like a project to force you to learn20:47
lardmanshame they don't do conversion books, or do they?20:47
villagerconversion books?20:48
lardmanconvert from C to C++20:48
lardmanpointing out all the annoyances of C++ and assuming you already know how to program20:48
villagerwell, most C code compiles under C++ anyway20:48
villagerI think such books exist20:49
lcukTHE book onc to c++ conversion:  everything thats different is annoying.20:49
lcuki hate obfsucation of functions behind operators20:49
villagerthe one thing I miss about C++ when programming C is the strings, C string manipulation is awful20:50
*** Milhouse has joined #maemo-devel20:51
* lardman sees mbarcodt-qt plugin loader has gone made20:52
lardmanmbarcode-qt even20:52
villagerother than that, I don't really miss all the rest of the fancy C++ stuff20:52
lcukvillager, +100000000020:53
lcuki only desire c++ method calling syntax20:53
lcukto me,    funciton(object,param)  is wrong20:53
lcukobject.function(param) is natural20:53
*** sleipnir has quit IRC20:54
lardmanwhat's the best plan to create an empty dir as part of the installation?21:01
lardmanadd it to the Makefile (via .pro file) or the debian/rules ?21:01
lardmanor use some other debian magic files?21:01
lardmanI'll try debian/dirs and see if that does the job21:03
lardmanit does, good good21:03
*** tbf has joined #maemo-devel21:07
lardmanany Qt afficianados here?21:11
lardmanI'm after a widget that looks like a horizontal film reel, i.e. frames of data side by side21:11
lardmanany ideas?21:11
VDVsxlardman, what do you want to put inside that widget ? I'm not aware of such one :D21:12
lardmanscanned barcodes, either the image if the scan didn't work, or some plugin-dependent data describing the barcode if it did work21:13
lardmanwhich will most probably be either an image (e.g. CD sleeve) or text describing the barcode21:13
*** t-tan has joined #maemo-devel21:14
VDVsxyou can create a horizontal layout and add images, but you probably want kinetic scroll21:14
lardmanideally yes21:15
lardmanso I guess create a grid within some sort of kinetic scrolling container?21:15
VDVsxyes, but I've seen apps with similar things, might worth a looking21:16
lardmanif you can remember any app names that would be useful, thanks :)21:17
* lardman goes to grab some food, bbiab21:18
*** lardman is now known as lardman|afk21:18
* VDVsx browses his youtube hostory21:18
VDVsx*history21:18
VDVsxlardman|afk, something like this one: http://www.youtube.com/watch?v=wtFo9w73Az021:18
VDVsxbut there's more21:19
*** sr71 has quit IRC21:22
t-tanhi guys, I've just succesfully uploaded texlive2009 for Maemo :)21:24
t-tanbut it's not optified yet (even though debian/optify = auto) - could someone help me with maemo-optify?21:25
lcukt-tan, have you tried reading the page about optify21:25
lcukthere are a few methods21:25
lcukyou could try one of the alternatives21:25
t-tanyes, I did. and the auto is the only reasonable one. but autobuilder doesn't even call maemo-optify and I don't know why21:28
t-tanI'm referring to http://maemo.gitorious.org/maemo-af/maemo-optify/blobs/master/README. or is there a better one?21:28
lcukt-tan, thats the doc im refering21:37
lcukwht does the internal debian/rules one not work21:37
lcukwhy21:37
lcukmaemo-optify PACKAGE DIR21:38
t-tanthere are about 50 generated packages. it would be a lot of work. automatic optification would be easier. I'm trying to automatize it now.21:47
lcukwhat are you optifying?21:50
t-tantexlive?21:51
lcukahh when you said it i thought it was a single package21:51
lcukas most things are21:51
*** sr71 has joined #maemo-devel21:53
t-tanit's just 45 pkgs with 250MB...21:54
lcuki love the "just" :D21:55
lcukdo they all end up in one folder21:55
lcukor all just /usr/bin binaries?21:55
t-tanthe binaries are about 15MB, and one 8BM program could be packaged separately21:58
t-tanthe rest are latex supplementary files (fonts, styles etc)21:58
SpeedEvilOk. Fennec works. It's a little unstable - especially with several tabs open.22:13
SpeedEvilhtml5?22:13
SpeedEvilor rather the youtube variant?22:14
SpeedEviloops22:14
t-tanok, optification works fine now. except that nokia ucf packagei is broken...22:16
*** tbf has quit IRC22:30
lardman|afkVDVsx: mmm, looks like the thing22:47
*** akiniemi has joined #maemo-devel22:53
*** SpeedEvil has quit IRC22:56
*** SpeedEvil has joined #maemo-devel22:56
*** kamui__ has joined #maemo-devel23:17
*** shinkamui has quit IRC23:24
villagerhmm, how do I check if the camera cover is open?23:27
ifreqlook into back of the phone23:36
ifreqsorry back joke :-P23:36
*** Ken-Young has joined #maemo-devel23:37
*** thomaz has quit IRC23:41
villagerwell, maybe I want some blinking thing that reminds me to look there...23:41
SpeedEvil /sys/devices/platform/gpio-switch/cam_shutter/state23:44
villagerthanks23:46

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!