[linux-sunxi] Re: Rotated video playback on A20

2015-12-08 Thread Stefan Monnier
> Can you give advice on how to approach this? Is it at all possible to do
> rotation with the CedarX driver?

I'd recommend you try it with the libvdpau-sunxi since it's at least
a code base that is amenable to improvements.


Stefan

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] Re: Rotated video playback on A20

2015-12-08 Thread András Ács
Thanks!
It's actually the libvdpau-sunxi, I got confused by the naming (the 
libvdpau-sunxi github page links to https://linux-sunxi.org/Cedrus which 
refers to CedarX)

On Tuesday, December 8, 2015 at 2:16:17 PM UTC+1, Stefan Monnier wrote:
>
> > Can you give advice on how to approach this? Is it at all possible to do 
> > rotation with the CedarX driver? 
>
> I'd recommend you try it with the libvdpau-sunxi since it's at least 
> a code base that is amenable to improvements. 
>
>
> Stefan 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] Re: Rotated video playback on A20

2015-12-08 Thread Andreas Baierl

If you refer to libvdpau-sunxi, rotating is not implemented atm.
-> https://github.com/linux-sunxi/libvdpau-sunxi/blob/master/rgba.c#L189

Regards
Andreas

Am 08.12.2015 um 15:02 schrieb András Ács:

Thanks!
It's actually the libvdpau-sunxi, I got confused by the naming (the 
libvdpau-sunxi github page links to https://linux-sunxi.org/Cedrus 
which refers to CedarX)


On Tuesday, December 8, 2015 at 2:16:17 PM UTC+1, Stefan Monnier wrote:

> Can you give advice on how to approach this? Is it at all
possible to do
> rotation with the CedarX driver?

I'd recommend you try it with the libvdpau-sunxi since it's at least
a code base that is amenable to improvements.


Stefan

--
You received this message because you are subscribed to the Google 
Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to linux-sunxi+unsubscr...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] Re: Rotated video playback on A20

2015-12-08 Thread Jens Kuske
On 08/12/15 15:02, András Ács wrote:
> Thanks!
> It's actually the libvdpau-sunxi, I got confused by the naming (the 
> libvdpau-sunxi github page links to https://linux-sunxi.org/Cedrus which 
> refers to CedarX)

Hi,

the video engine is able to rotate the video while decoding, but its not
possible to export this feature with vdpau.

vdpau doesn't provide the information that it needs a rotated video at
decoding time, but only later at render time. You would have to look
into the future to do rotate at decoding time.
G2D is the only other part that can do rotation afterwards, but g2d
can't read the tiled video engine output, so it can't be used too.

Regards,
Jens


> 
> On Tuesday, December 8, 2015 at 2:16:17 PM UTC+1, Stefan Monnier wrote:
>>
>>> Can you give advice on how to approach this? Is it at all possible to do 
>>> rotation with the CedarX driver? 
>>
>> I'd recommend you try it with the libvdpau-sunxi since it's at least 
>> a code base that is amenable to improvements. 
>>
>>
>> Stefan 
>>
>>
> 

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] Re: Rotated video playback on A20

2015-12-08 Thread Andreas Baierl

Am 08.12.2015 um 16:02 schrieb Jens Kuske:

On 08/12/15 15:02, András Ács wrote:

Thanks!
It's actually the libvdpau-sunxi, I got confused by the naming (the
libvdpau-sunxi github page links to https://linux-sunxi.org/Cedrus which
refers to CedarX)

Hi,

the video engine is able to rotate the video while decoding, but its not
possible to export this feature with vdpau.

vdpau doesn't provide the information that it needs a rotated video at
decoding time, but only later at render time. You would have to look
into the future to do rotate at decoding time.
G2D is the only other part that can do rotation afterwards, but g2d
can't read the tiled video engine output, so it can't be used too.
Damn. Thank you Jens. I mixed up sunxi special OSD and Video 
implementation once again ...

Regards
Andreas

Regards,
Jens



On Tuesday, December 8, 2015 at 2:16:17 PM UTC+1, Stefan Monnier wrote:

Can you give advice on how to approach this? Is it at all possible to do
rotation with the CedarX driver?

I'd recommend you try it with the libvdpau-sunxi since it's at least
a code base that is amenable to improvements.


 Stefan




--
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] Re: Rotated video playback on A20

2015-12-08 Thread András Ács
That's definite. Bummer.

Pre-rotation it is, then.

Thank you all!

Regards,
Andras

On Tuesday, December 8, 2015 at 4:03:02 PM UTC+1, Jens Kuske wrote:
>
> On 08/12/15 15:02, András Ács wrote: 
> > Thanks! 
> > It's actually the libvdpau-sunxi, I got confused by the naming (the 
> > libvdpau-sunxi github page links to https://linux-sunxi.org/Cedrus 
> which 
> > refers to CedarX) 
>
> Hi, 
>
> the video engine is able to rotate the video while decoding, but its not 
> possible to export this feature with vdpau. 
>
> vdpau doesn't provide the information that it needs a rotated video at 
> decoding time, but only later at render time. You would have to look 
> into the future to do rotate at decoding time. 
> G2D is the only other part that can do rotation afterwards, but g2d 
> can't read the tiled video engine output, so it can't be used too. 
>
> Regards, 
> Jens 
>
>
> > 
> > On Tuesday, December 8, 2015 at 2:16:17 PM UTC+1, Stefan Monnier wrote: 
> >> 
> >>> Can you give advice on how to approach this? Is it at all possible to 
> do 
> >>> rotation with the CedarX driver? 
> >> 
> >> I'd recommend you try it with the libvdpau-sunxi since it's at least 
> >> a code base that is amenable to improvements. 
> >> 
> >> 
> >> Stefan 
> >> 
> >> 
> > 
>

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] Re: Rotated video playback on A20

2015-12-08 Thread Stefan Monnier
> the video engine is able to rotate the video while decoding, but its not
> possible to export this feature with vdpau.
> vdpau doesn't provide the information that it needs a rotated video at
> decoding time, but only later at render time. You would have to look
> into the future to do rotate at decoding time.

Hmm... that sucks.  I think it deserves a bug report to "the vdpau
designers/maintainers"?
In the mean time, is there some way to hack around this problem by
retro-feeding the "rotate" request to the decoder when the render
gets it?
Obviously, that means applying the rotation request to the wrong frames
But if the same rotation is applied for the duration of a complete movie
(which is rather likely), it means just the first few frames would
be incorrect.
Obviously, a "major ugly hack", but if it can be made to work, it might
just be good enough in practice, while we wait for vdpau to fix
this problem.


Stefan

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.