Re: Draft document-rendering tiling API to be called from viewer apps

2012-06-07 Thread Michael Stahl
On 06/06/12 16:54, Michael Stahl wrote: > On 06/06/12 15:31, Stephan Bergmann wrote: >> On 06/06/2012 03:11 PM, Tor Lillqvist wrote: I would go the UNO approach nevertheless. >>> >>> It's a hard decision to make... >> >> With the current state of touch/idl, what you would want to do in C++ is

Re: Draft document-rendering tiling API to be called from viewer apps

2012-06-06 Thread Luc Verhaegen
On Wed, Jun 06, 2012 at 06:42:44PM +0100, Michael Meeks wrote: > Hi guys, > > On Wed, 2012-06-06 at 16:33 +0100, Iain Billett wrote: > > I haven't experimented but I've heard that not using power-of-two > > lengths is seriously detrimental to performance. > > Must make a mental note to ask

Re: Draft document-rendering tiling API to be called from viewer apps

2012-06-06 Thread Tor Lillqvist
http://stackoverflow.com/questions/4593951/can-we-use-non-power-of-2-textures-on-opengl-es-on-android So apparently if one uses OpenGL ES 2.0, there is NPOT support. Not necessarily in OpenGL ES 1.0 (might be present on some devices as an extension). But do we want to use OpenGL ES 2.0, I can't re

Re: Draft document-rendering tiling API to be called from viewer apps

2012-06-06 Thread Michael Meeks
Hi guys, On Wed, 2012-06-06 at 16:33 +0100, Iain Billett wrote: > I haven't experimented but I've heard that not using power-of-two > lengths is seriously detrimental to performance. Must make a mental note to ask a GPU hacker; in fact - lets do that :-) Luc - sorry to bother you with a q

Re: Draft document-rendering tiling API to be called from viewer apps

2012-06-06 Thread Tor Lillqvist
>> Sure, but on the other hand it makes it simpler in that we don't need >> to figure out the aspect ratio of each page (they can be different) >> beforehand. > >        Surely we have to do that in order to present it to the user ? Yes, but no. There is something of a chicken-and-egg problem here

Re: Draft document-rendering tiling API to be called from viewer apps

2012-06-06 Thread Tor Lillqvist
> IMHO the use of the term 'tiles' here is prolly just a misleading > nonsense ;-) my main concern is the ability to render an arbitrary > sub-set of a page to an arbitrarily sized texture. That is exactly what I have in mind, too;) --tml ___ LibreOffic

Re: Draft document-rendering tiling API to be called from viewer apps

2012-06-06 Thread Michael Meeks
On Wed, 2012-06-06 at 17:48 +0300, Tor Lillqvist wrote: > >IMHO the decision to render just squares prolly complicates the > > situation un-necessarily. > > Sure, but on the other hand it makes it simpler in that we don't need > to figure out the aspect ratio of each page (they can be dif

Re: Draft document-rendering tiling API to be called from viewer apps

2012-06-06 Thread Iain Billett
> > >IMHO the decision to render just squares prolly complicates the > > situation un-necessarily. > > Sure, but on the other hand it makes it simpler in that we don't need > to figure out the aspect ratio of each page (they can be different) > beforehand. > > BTW, I didn't mention in the I

Re: Draft document-rendering tiling API to be called from viewer apps

2012-06-06 Thread Michael Stahl
On 06/06/12 15:31, Stephan Bergmann wrote: > On 06/06/2012 03:11 PM, Tor Lillqvist wrote: >>> I would go the UNO approach nevertheless. >> >> It's a hard decision to make... > > With the current state of touch/idl, what you would want to do in C++ is > an implementation of the Document service, p

Re: Draft document-rendering tiling API to be called from viewer apps

2012-06-06 Thread Tor Lillqvist
>        IMHO the decision to render just squares prolly complicates the > situation un-necessarily. Sure, but on the other hand it makes it simpler in that we don't need to figure out the aspect ratio of each page (they can be different) beforehand. BTW, I didn't mention in the IDL, but I did th

Re: Draft document-rendering tiling API to be called from viewer apps

2012-06-06 Thread Michael Meeks
On Wed, 2012-06-06 at 16:16 +0300, Tor Lillqvist wrote: > >It'd be rather nice to have some parameter names rather than just > > 'long' 'int' etc. etc ;-) > > Of course. Those are specified in the IDL. No Java source code is Ah - sorry pardon; I read the IDL in the directory: +

Re: Draft document-rendering tiling API to be called from viewer apps

2012-06-06 Thread Stephan Bergmann
On 06/06/2012 03:11 PM, Tor Lillqvist wrote: I would go the UNO approach nevertheless. It's a hard decision to make... With the current state of touch/idl, what you would want to do in C++ is an implementation of the Document service, plus potentially an implementation of an XDocumentRender

Re: Draft document-rendering tiling API to be called from viewer apps

2012-06-06 Thread Tor Lillqvist
>        It'd be rather nice to have some parameter names rather than just > 'long' 'int' etc. etc ;-) Of course. Those are specified in the IDL. No Java source code is generated from IDL, it generates class files directly (well, through .rdb), and there are no parameter names in class files. The

Re: Draft document-rendering tiling API to be called from viewer apps

2012-06-06 Thread Tor Lillqvist
> I see no need for a DocumentRenderCallback service. OK, I didn't realize that you can have an interface without wrapping it in a service. > I would go the UNO approach nevertheless. It's a hard decision to make... --tml ___ LibreOffice mailing list

Re: Draft document-rendering tiling API to be called from viewer apps

2012-06-06 Thread Michael Meeks
Hi Tor, On Wed, 2012-06-06 at 14:43 +0300, Tor Lillqvist wrote: > OK, so I did some design of how an API to render (tiles of) pages > would look like that could be used both on Android and iOS apps. :-) > public interface org.libreoffice.touch.XDocument extends > com.sun.star.uno.XInterf

Re: Draft document-rendering tiling API to be called from viewer apps

2012-06-06 Thread Stephan Bergmann
On 06/06/2012 01:43 PM, Tor Lillqvist wrote: Now I am having second thoughts, though, but still, a first, in progress, draft API is in UNOIDL form is in touch/idl. I see no need for a DocumentRenderCallback service. XDocumentRenderCallback will be implemented by UNO objects specific to the va

Draft document-rendering tiling API to be called from viewer apps

2012-06-06 Thread Tor Lillqvist
OK, so I did some design of how an API to render (tiles of) pages would look like that could be used both on Android and iOS apps. My first idea was to do it based on UNO. On Android the Java code would then call the implementation in the "normal" nice way one from Java code calls UNO services. Fo