Go to advanced search

by Chinasaur
Mon Sep 17, 2012 11:07 pm
Forum: OpenVG
Topic: Cairo
Replies: 5
Views: 5976

Cairo

Hey, I see that Cairo is supposed to have a working OpenVG backend. I think there's Cairo stuff in the Raspbian repository too, but I don't know if it's compiled with OpenVG backend; probably it isn't compiled with OpenVG and requires X?
by Chinasaur
Mon Sep 17, 2012 7:45 pm
Forum: OpenVG
Topic: OSD (on screen display) w/o X
Replies: 4
Views: 3207

OSD (on screen display) w/o X

Hey guys, I posted this originally into "What Software?", but it turned into a dev thread. Haven't gotten much interest it seems, but thought I'd try cross-posting; hope thats okay.
http://www.raspberrypi.org/phpBB3/viewtopic.php?t=17101
by Chinasaur
Mon Sep 17, 2012 7:17 am
Forum: General discussion
Topic: OSD (on screen display) w/o X
Replies: 44
Views: 13954

Re: OSD (on screen display) w/o X

Here's a very preliminary version of my on screen display hack that works without X running. https://github.com/chinasaur/poptart Won't work well with long strings or strings with embedded newlines without the libvgfont patches. I sent a pull request for all the above. mpcpop is how I'm using it. Mu...
by Chinasaur
Mon Sep 17, 2012 5:27 am
Forum: General discussion
Topic: OSD (on screen display) w/o X
Replies: 44
Views: 13954

Re: OSD (on screen display) w/o X

Another apparent bug in vgfont. The x_offset and y_offset used for rendering are declared as uint32_t, but these eventually get passed down to functions that want VGInt, which is in turn really a khronos_int32_t which in turn is an int32_t. In other words, OpenVG actually has no problem with you giv...
by Chinasaur
Mon Sep 17, 2012 4:21 am
Forum: General discussion
Topic: OSD (on screen display) w/o X
Replies: 44
Views: 13954

Re: OSD (on screen display) w/o X

To patch hello_font to avoid the screen flash, simply add (in main.c) graphics_resource_fill(img, 0, 0, width, height, GRAPHICS_RGBA32(0,0,0,0x00)); before the line graphics_display_resource(img, 0, LAYER, 0, 0, GRAPHICS_RESOURCE_WIDTH, GRAPHICS_RESOURCE_HEIGHT, VC_DISPMAN_ROT0, 1); (untested but sh...
by Chinasaur
Mon Sep 17, 2012 4:16 am
Forum: General discussion
Topic: OSD (on screen display) w/o X
Replies: 44
Views: 13954

Re: OSD (on screen display) w/o X

Here's the patched version (in /opt/vc/src/hello_pi/libs/vgfont/vgft.c): // Text extents for some ASCII text. // Use text_length if non-zero, otherwise look for trailing '\0'. void vgft_get_text_extents(VGFT_FONT_T *font, const char *text, unsigned text_length, VGfloat start_x, VGfloat start_y, VGfl...
by Chinasaur
Mon Sep 17, 2012 3:51 am
Forum: General discussion
Topic: OSD (on screen display) w/o X
Replies: 44
Views: 13954

Re: OSD (on screen display) w/o X

Okay, I poked around but didn't find anything for putting text onscreen without X. I started writing my own version based on the hello_text example. It appears there's a bug in vgft_get_text_extents / line_extents when it gets passed a char* with newlines. It gets correctly that the height is a mult...
by Chinasaur
Fri Sep 14, 2012 12:32 am
Forum: Media centres
Topic: I set up Midnight Commander to play media
Replies: 3
Views: 9468

Re: I set up Midnight Commander to play media

Very nice, thanks; will give it a look.
by Chinasaur
Fri Sep 14, 2012 12:21 am
Forum: General discussion
Topic: Google Music
Replies: 14
Views: 12005

Re: Google Music

ghans wrote:HTML5 should be supported , only Video doesn't work.
In Chromium you mean? I was also wondering if there is another simpler browser that works with gnash that I could try?
by Chinasaur
Thu Sep 13, 2012 11:17 pm
Forum: General discussion
Topic: Google Music
Replies: 14
Views: 12005

Re: Google Music

ghans wrote:Tried gnash ?
AFAIK it works , but is *slow* .
ghans
Cool, I'll take a look, anything I could try gnash with without Chromium?

I see that iOS devices had a special mobile web interface for Google Music released in 2011. I guess this probably requires HTML5?
by Chinasaur
Thu Sep 13, 2012 6:41 pm
Forum: General discussion
Topic: Google Music
Replies: 14
Views: 12005

Re: Google Music

Chinasaur wrote:Sorry, obviously the major question is whether flash is needed. According to Google's official specs it is. But I'll poke around anyway. Also, would gnash be a possibility?
Ah, but there has been a labs HTML5 playback version out for a few months now.
by Chinasaur
Wed Sep 12, 2012 10:50 pm
Forum: General discussion
Topic: Google Music
Replies: 14
Views: 12005

Re: Google Music

I'm not really sure what it needs. I'm sure Chromium has everything needed, but not sure if there's a lower bar that would work. Will look into it. Sorry, obviously the major question is whether flash is needed. According to Google's official specs it is. But I'll poke around anyway. Also, would gn...
by Chinasaur
Wed Sep 12, 2012 10:40 pm
Forum: General discussion
Topic: Google Music
Replies: 14
Views: 12005

Re: Google Music

Thanks! What is the web interface made of? Just HTML 5? I'm not really sure what it needs. I'm sure Chromium has everything needed, but not sure if there's a lower bar that would work. Will look into it. If so, you could try running non-hard-float Squeeze and install Chromium (or compile Chromium yo...
by Chinasaur
Wed Sep 12, 2012 9:10 pm
Forum: General discussion
Topic: Google Music
Replies: 14
Views: 12005

Google Music

Hey guys, what are you using to play Google Music? Does midori work? How do you close midori if you're running it in its own X without a window manager? Any other options? Nuvola Player needs Gnome and probably other stuff. Is Chromium working with the latest raspbian or Fedora 17 remix? What about ...
by Chinasaur
Tue Sep 11, 2012 11:18 pm
Forum: General discussion
Topic: OSD (on screen display) w/o X
Replies: 44
Views: 13954

Re: OSD (on screen display) w/o X

Chinasaur wrote:So far I've just been streaming YouTube and internet radio with MPD/MPC.
Sorry, this was confusing. Streaming YouTube is separate from MPD; for that I'm using this: http://www.raspberrypi.org/phpBB3/viewtopic.php?t=8157.
by Chinasaur
Tue Sep 11, 2012 10:42 pm
Forum: General discussion
Topic: OSD (on screen display) w/o X
Replies: 44
Views: 13954

OSD (on screen display) w/o X

Hey guys, I just started hacking around on the Pi with the raspbian distro. Since X is not accelerated I've been mostly sticking to the terminal. I've never tried running a media center from the command line, but it's kind of fun. So far I've just been streaming YouTube and internet radio with MPD/M...

Go to advanced search