villager | hmm, the performance of libavcodec's swscale stinks on the n900 | 00:01 |
---|---|---|
villager | ffmpeg's swscale, that is | 00:02 |
*** Striki has joined #maemo-devel | 00:02 | |
villager | hmm, what else can I use if I want to convert camera input from yuv to rgb? | 00:03 |
villager | or I suppose it's possible that it's sdl that stinks | 00:04 |
lcuk_ | what are you wanting for | 00:04 |
lcuk_ | direct saving? | 00:04 |
lcuk_ | or display | 00:04 |
lcuk_ | and isnt there a specific gstreamer plugin for this | 00:04 |
villager | well, I convert to rgb, then blit onto the sdl surface | 00:04 |
villager | which I display | 00:05 |
villager | with SDL_Flip | 00:05 |
villager | I want to be able to scribble onto the picture before displaying it | 00:05 |
villager | shouldn't be necessary to use gstreamer for that, should it? | 00:06 |
lcuk_ | if you are using gstreamer to get the camera image | 00:06 |
lcuk_ | just change the result type you want | 00:07 |
lcuk_ | i scribble on many images | 00:07 |
villager | I'm using v4l2 | 00:07 |
lcuk_ | i just redraw in real time | 00:07 |
lcuk_ | http://liqbase.net/liq.20091230_041442.user.lolcats.png | 00:07 |
villager | so I have to stop using v4l2 and use gstreamer instead? | 00:08 |
villager | just to get a rgb picture into a sdl surface? | 00:08 |
villager | wish it was as fast on the device as on my pc... | 00:10 |
lcuk_ | :) my device is fast | 00:12 |
villager | let's see if sdl is the problem | 00:12 |
lcuk_ | which do you have | 00:12 |
villager | which what? | 00:13 |
lcuk_ | maemo device | 00:13 |
lcuk_ | and you are wanting to draw onto live video | 00:13 |
villager | my n900? | 00:13 |
villager | yeah | 00:13 |
* lcuk_ nods, its hard to keep it directed at scene and work with it | 00:14 | |
lcuk_ | so effectively useless | 00:14 |
lcuk_ | better taking photos and drawing on them | 00:14 |
lcuk_ | drawing over live stuff ala football commentators is something for a fixed cam | 00:14 |
* lcuk_ learnt from experience | 00:15 | |
villager | well, not that kind of drawing... programmatic, like those icons the camera app shows | 00:15 |
lcuk_ | oh, ui | 00:17 |
villager | maybe I should do the conversion straight into the main sdl screen instead of onto an offscreen surface which I blit into it | 00:18 |
lcuk_ | reducing the layers helps :) | 00:19 |
villager | hmm, then I have to move some of the logic around | 00:22 |
*** VDVsx has quit IRC | 00:23 | |
villager | that made it quite a bit better it seems | 00:30 |
villager | hmm, perhaps part of the problem was that one of the surfaces were 24bpp and other 32bpp, which probably added conversion overhead in the blit | 00:31 |
villager | lcuk_: 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 done | 00:37 |
villager | hmm, 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 |
villager | or is the gstreamer stuff able to do the color conversion in hardware? | 00:42 |
*** BabelO__ has quit IRC | 00:44 | |
villager | definitely the sws_scale that's the problem now, it's very fast if I replace it with memcpy | 00:45 |
*** blubbi_ has quit IRC | 00:50 | |
*** simoneb_ has quit IRC | 00:50 | |
villager | well, fps is usable for now, I'll worry about hw acceleration later.. | 00:51 |
*** woglinde_ has joined #maemo-devel | 00: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 operation | 00:56 |
lcuk_ | none trivial pel oriented not very optimizable high bandwidth operation | 00:57 |
villager | lcuk_: so they do write the icons directly onto the yuv? | 00:57 |
villager | or how do they display them? | 00:57 |
lcuk_ | hwy not, i do | 00:57 |
* lcuk_ does everything in yuv, why shouldnt other people | 00:57 | |
lcuk_ | hell, mplayer puts subtitles on it | 00:57 |
lcuk_ | afaik | 00:57 |
villager | how do you display the yuv? is it opengl textures or something in yuv format? | 00:58 |
lcuk_ | xvideo | 00:58 |
lcuk_ | but you cant use sdl | 00:58 |
lcuk_ | or even x11 rendering tools | 00:59 |
villager | it's possible to get dialogs on top of the camera-ui display, the icons do it, I thought xvideo would make the video always topmost | 00:59 |
*** woglinde has quit IRC | 00:59 | |
lcuk_ | you can colorkey things if you really need, but in sdl you have already thrown away gtk style widgets | 01:00 |
villager | so 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=7hGUKICDeok | 01:01 |
lcuk_ | villager, i dunno exactly, im pretty certain it uses xvideo though | 01:01 |
lcuk_ | never looked too closely tho | 01:01 |
*** woglinde_ is now known as woglinde | 01:10 | |
lardman|afk | night chaps | 01:25 |
*** lardman|afk has quit IRC | 01:26 | |
*** Ken-Young has joined #maemo-devel | 01:50 | |
*** lbt has quit IRC | 01:55 | |
*** V13 has quit IRC | 01:57 | |
*** SpeedEvil1 has joined #maemo-devel | 02:05 | |
*** SpeedEvil has quit IRC | 02:19 | |
*** SpeedEvil1 is now known as SpeedEvil | 02:30 | |
*** Ken-Young has quit IRC | 02:30 | |
*** Ken-Young has joined #maemo-devel | 02:31 | |
*** Ken-Young has quit IRC | 02:54 | |
*** woglinde has quit IRC | 03:13 | |
*** calidore has quit IRC | 03:49 | |
*** jpetersen_ has quit IRC | 04:12 | |
*** Mek has quit IRC | 04:40 | |
*** SpeedEvil1 has joined #maemo-devel | 05:17 | |
*** _andy has quit IRC | 05:22 | |
*** sr71 has quit IRC | 05:22 | |
*** sr71 has joined #maemo-devel | 05:24 | |
*** SpeedEvil has quit IRC | 05:39 | |
*** _andy has joined #maemo-devel | 05:42 | |
*** asjo` has joined #maemo-devel | 06:32 | |
*** asjo has quit IRC | 06:40 | |
*** zgold_ has quit IRC | 06:40 | |
*** zgold has joined #maemo-devel | 06:40 | |
villager | crap, looks like I can't use both cameras at the same time | 06:46 |
*** Ken-Young has joined #maemo-devel | 06:49 | |
SpeedEvil1 | nope | 06:52 |
SpeedEvil1 | there is one camera interface | 06:52 |
SpeedEvil1 | with a mux between the cameras | 06:52 |
SpeedEvil1 | It may in theory be possible to switch between the cams at video rates. | 06:53 |
SpeedEvil1 | But that's gonna be a hell of a lot of work. | 06:53 |
*** SpeedEvil1 is now known as SpeedEvil | 06:53 | |
villager | hmm yeah | 06:54 |
SpeedEvil | what for? | 07:07 |
villager | at 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 |
SpeedEvil | ah | 07:16 |
villager | though 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 at | 07:18 |
villager | or better, which part of the ui, so I could hold the phone with both hands, and tell it to snap a picture using my eyes | 07:19 |
villager | blink twice = take a snapshot | 07:19 |
villager | or something | 07:20 |
villager | would be neat | 07:20 |
SpeedEvil | villager: yes, that would be good. | 07:22 |
SpeedEvil | villager: however - one large problem is that the front camera is generally bad. | 07:22 |
SpeedEvil | In not-ideal light, it's terrible. | 07:22 |
SpeedEvil | I have questions if it's ever going to be very usable for eye tracking in any but hte most contrived situations. | 07:23 |
SpeedEvil | For example, facing the sun, with the camera 30cm from your eye | 07:23 |
villager | yeah, it's a little crappy | 07:25 |
SpeedEvil | In 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 IRC | 07:31 | |
*** DocScrutinizer51 has quit IRC | 07:32 | |
*** Docscrutemp has joined #maemo-devel | 07:32 | |
*** DocScrutinizer has joined #maemo-devel | 07:32 | |
*** Docscrutemp is now known as DocScrutinizer51 | 07:32 | |
*** adiroiban has joined #maemo-devel | 08:21 | |
*** kamui has joined #maemo-devel | 08:26 | |
adiroiban | Hi, is osso-pdf-viewer open source software? | 08:27 |
adiroiban | I can not find the source package | 08:28 |
*** slonopotamus has joined #maemo-devel | 08:45 | |
*** Mek has joined #maemo-devel | 09:11 | |
*** slonopotamus has quit IRC | 09:46 | |
*** slonopotamus has joined #maemo-devel | 09:51 | |
*** slonopotamus_ has joined #maemo-devel | 10:26 | |
*** adiroiban has left #maemo-devel | 10:26 | |
*** slonopotamus has quit IRC | 10:27 | |
*** slonopotamus_ is now known as slonopotamus | 10:28 | |
*** Ken-Young has quit IRC | 10:41 | |
*** lcuk_ is now known as lcuk | 10:57 | |
*** sleipnir has joined #maemo-devel | 11:12 | |
*** shinkamui has joined #maemo-devel | 11:17 | |
*** kamui has quit IRC | 11:35 | |
*** lardman has joined #maemo-devel | 12:13 | |
*** BabelO has joined #maemo-devel | 12:31 | |
*** slonopotamus has quit IRC | 12:34 | |
*** slonopotamus has joined #maemo-devel | 12:35 | |
*** slonopotamus has quit IRC | 12:35 | |
*** GeneralAntilles has quit IRC | 13:02 | |
lardman | dragly: you about today? | 13:23 |
*** lardman is now known as lardman|afk | 14:09 | |
*** GeneralAntilles has joined #maemo-devel | 14:16 | |
*** lbt has joined #maemo-devel | 14:23 | |
*** VDVsx has joined #maemo-devel | 16:09 | |
*** kodomo has joined #maemo-devel | 17:26 | |
*** kodomo_ has quit IRC | 17:36 | |
*** lardman|afk is now known as lardman | 18:31 | |
*** cruisemaniac has joined #maemo-devel | 18:44 | |
*** Milhouse has quit IRC | 19:01 | |
*** jebba1 has quit IRC | 19:06 | |
*** jebba has joined #maemo-devel | 19:06 | |
lardman | will wonders never cease, the code compiles at last | 19:55 |
lardman | ~lart C++ for being nasty | 19:56 |
* lardman reads topic and hopes he won't get booted for the trollish comment about C++ ;) | 20:05 | |
lcuk | lol lardman we have a #maemo-troll channel for your sort | 20:05 |
lardman | oi! | 20:05 |
lcuk | worst offenders get put onto maemo.org frontpage ;) | 20:05 |
lardman | yeah, like head being put on a spike you reckon? ;) | 20:06 |
lcuk | worse than that, sent to work on vb code | 20:06 |
lardman | nasty, though sounds like next week to me | 20:06 |
*** cruisemaniac has left #maemo-devel | 20:07 | |
lcuk | im doing different stuff next week too | 20:07 |
lardman | hmm, I have to write a course next week | 20:10 |
lcuk | heh ive got similar to do i think, for my own sanity | 20:10 |
lardman | how's liqbase working coming along then? | 20:11 |
lardman | s/working/work | 20:11 |
lcuk | great actually :) | 20:12 |
lardman | good :) | 20:14 |
lcuk | i got the key transport mechanism in place to do cool stuff | 20:14 |
lcuk | http://liqbase.net/liq.liqbase.multi.sketch.S6003750.JPG | 20:14 |
lardman | you still located up North, or moved down South-East? | 20:14 |
lardman | ah group stuff, nice :) | 20:14 |
lcuk | north atm | 20:14 |
lcuk | yeah simon, this is the underpinnings needed for liqflow | 20:15 |
lcuk | and everything else | 20:15 |
lcuk | the rotating sketches allow orientation shifts | 20:15 |
lcuk | the group stuff allows communication of the strokes | 20:15 |
lcuk | and since liqflow is just normal strokes, i just need the positioning thing | 20:15 |
lcuk | it looks kickass having live graffiti wall on the big tv | 20:16 |
lardman | :) | 20:17 |
lardman | anyone 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 |
lardman | or is that caused by something else? | 20:18 |
lcuk | you tried in #qt-maemo? | 20:18 |
lcuk | are you doing this in qt4.5 or 4.6 | 20:18 |
lardman | very quiet in there any time I've asked a question so have given up on them | 20:18 |
lardman | quicker to just Google it out myself | 20:18 |
lardman | 4.5 | 20:18 |
lardman | for the time bing | 20:18 |
lardman | being | 20:18 |
lcuk | thats cool tho | 20:18 |
lcuk | is it working better than the c approach for you | 20:19 |
lardman | no, C++ is horrid | 20:19 |
lardman | but it should allow for easy plugins, which will be good | 20:19 |
lardman | ah looks better, random static keyword broke it | 20:21 |
* lardman should really have learned C++ when he was younger rather than concentrating on more useful things like C and ASM | 20:21 | |
lardman | ah well | 20:22 |
* lardman heads to find some vino :) | 20:22 | |
lardman | to celebrate :) | 20:22 |
DocScrutinizer | lardman: it's always too soon to learn C++ ;-) | 20:40 |
villager | I learned C++ long ago, I'm never happy I did | 20:42 |
villager | I've forgotten all the worst stuff by now | 20:43 |
villager | well, retained enough to write that syncevolution backend | 20:47 |
lardman | oh well, nothing like a project to force you to learn | 20:47 |
lardman | shame they don't do conversion books, or do they? | 20:47 |
villager | conversion books? | 20:48 |
lardman | convert from C to C++ | 20:48 |
lardman | pointing out all the annoyances of C++ and assuming you already know how to program | 20:48 |
villager | well, most C code compiles under C++ anyway | 20:48 |
villager | I think such books exist | 20:49 |
lcuk | THE book onc to c++ conversion: everything thats different is annoying. | 20:49 |
lcuk | i hate obfsucation of functions behind operators | 20:49 |
villager | the one thing I miss about C++ when programming C is the strings, C string manipulation is awful | 20:50 |
*** Milhouse has joined #maemo-devel | 20:51 | |
* lardman sees mbarcodt-qt plugin loader has gone made | 20:52 | |
lardman | mbarcode-qt even | 20:52 |
villager | other than that, I don't really miss all the rest of the fancy C++ stuff | 20:52 |
lcuk | villager, +1000000000 | 20:53 |
lcuk | i only desire c++ method calling syntax | 20:53 |
lcuk | to me, funciton(object,param) is wrong | 20:53 |
lcuk | object.function(param) is natural | 20:53 |
*** sleipnir has quit IRC | 20:54 | |
lardman | what's the best plan to create an empty dir as part of the installation? | 21:01 |
lardman | add it to the Makefile (via .pro file) or the debian/rules ? | 21:01 |
lardman | or use some other debian magic files? | 21:01 |
lardman | I'll try debian/dirs and see if that does the job | 21:03 |
lardman | it does, good good | 21:03 |
*** tbf has joined #maemo-devel | 21:07 | |
lardman | any Qt afficianados here? | 21:11 |
lardman | I'm after a widget that looks like a horizontal film reel, i.e. frames of data side by side | 21:11 |
lardman | any ideas? | 21:11 |
VDVsx | lardman, what do you want to put inside that widget ? I'm not aware of such one :D | 21:12 |
lardman | scanned barcodes, either the image if the scan didn't work, or some plugin-dependent data describing the barcode if it did work | 21:13 |
lardman | which will most probably be either an image (e.g. CD sleeve) or text describing the barcode | 21:13 |
*** t-tan has joined #maemo-devel | 21:14 | |
VDVsx | you can create a horizontal layout and add images, but you probably want kinetic scroll | 21:14 |
lardman | ideally yes | 21:15 |
lardman | so I guess create a grid within some sort of kinetic scrolling container? | 21:15 |
VDVsx | yes, but I've seen apps with similar things, might worth a looking | 21:16 |
lardman | if you can remember any app names that would be useful, thanks :) | 21:17 |
* lardman goes to grab some food, bbiab | 21:18 | |
*** lardman is now known as lardman|afk | 21:18 | |
* VDVsx browses his youtube hostory | 21:18 | |
VDVsx | *history | 21:18 |
VDVsx | lardman|afk, something like this one: http://www.youtube.com/watch?v=wtFo9w73Az0 | 21:18 |
VDVsx | but there's more | 21:19 |
*** sr71 has quit IRC | 21:22 | |
t-tan | hi guys, I've just succesfully uploaded texlive2009 for Maemo :) | 21:24 |
t-tan | but it's not optified yet (even though debian/optify = auto) - could someone help me with maemo-optify? | 21:25 |
lcuk | t-tan, have you tried reading the page about optify | 21:25 |
lcuk | there are a few methods | 21:25 |
lcuk | you could try one of the alternatives | 21:25 |
t-tan | yes, I did. and the auto is the only reasonable one. but autobuilder doesn't even call maemo-optify and I don't know why | 21:28 |
t-tan | I'm referring to http://maemo.gitorious.org/maemo-af/maemo-optify/blobs/master/README. or is there a better one? | 21:28 |
lcuk | t-tan, thats the doc im refering | 21:37 |
lcuk | wht does the internal debian/rules one not work | 21:37 |
lcuk | why | 21:37 |
lcuk | maemo-optify PACKAGE DIR | 21:38 |
t-tan | there 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 |
lcuk | what are you optifying? | 21:50 |
t-tan | texlive? | 21:51 |
lcuk | ahh when you said it i thought it was a single package | 21:51 |
lcuk | as most things are | 21:51 |
*** sr71 has joined #maemo-devel | 21:53 | |
t-tan | it's just 45 pkgs with 250MB... | 21:54 |
lcuk | i love the "just" :D | 21:55 |
lcuk | do they all end up in one folder | 21:55 |
lcuk | or all just /usr/bin binaries? | 21:55 |
t-tan | the binaries are about 15MB, and one 8BM program could be packaged separately | 21:58 |
t-tan | the rest are latex supplementary files (fonts, styles etc) | 21:58 |
SpeedEvil | Ok. Fennec works. It's a little unstable - especially with several tabs open. | 22:13 |
SpeedEvil | html5? | 22:13 |
SpeedEvil | or rather the youtube variant? | 22:14 |
SpeedEvil | oops | 22:14 |
t-tan | ok, optification works fine now. except that nokia ucf packagei is broken... | 22:16 |
*** tbf has quit IRC | 22:30 | |
lardman|afk | VDVsx: mmm, looks like the thing | 22:47 |
*** akiniemi has joined #maemo-devel | 22:53 | |
*** SpeedEvil has quit IRC | 22:56 | |
*** SpeedEvil has joined #maemo-devel | 22:56 | |
*** kamui__ has joined #maemo-devel | 23:17 | |
*** shinkamui has quit IRC | 23:24 | |
villager | hmm, how do I check if the camera cover is open? | 23:27 |
ifreq | look into back of the phone | 23:36 |
ifreq | sorry back joke :-P | 23:36 |
*** Ken-Young has joined #maemo-devel | 23:37 | |
*** thomaz has quit IRC | 23:41 | |
villager | well, maybe I want some blinking thing that reminds me to look there... | 23:41 |
SpeedEvil | /sys/devices/platform/gpio-switch/cam_shutter/state | 23:44 |
villager | thanks | 23:46 |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!