Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
417 user(s) are online (225 user(s) are browsing Forums)

Members: 0
Guests: 417

more...

Support us!

Headlines

 
  Register To Post  

« 1 2 (3) 4
Re: radeonHD video hw acceleration
Just popping in
Just popping in


See User information
@thellier

W3D_SetDrawRegionTexture() is not implemented and moreover is removed in the latest versions of the main library and drivers. Calling it due to an outdated interface definition is probably not a great idea.

Go to top
Re: radeonHD video hw acceleration
Quite a regular
Quite a regular


See User information
I'll add

But we still appreciate your endevours =)

perhaps a swap out is in order or how they say "wrapper"

~Yes I am a Kiwi, No, I did not appear as an extra in 'Lord of the Rings'~
1x AmigaOne X5000 2.0GHz 2gM RadeonR9280X AOS4.x
3x AmigaOne X1000 1.8GHz 2gM RadeonHD7970 AOS4.x
Go to top
Re: radeonHD video hw acceleration
Not too shy to talk
Not too shy to talk


See User information
Quote:

Hans wrote:

Awesome. Thanks for that. I see from the code that the U and V planes are interleaved. I wasn't aware of this. That's not how the official format is specified. Fortunately, this isn't going to be a problem, as the plane alignment requirements remain the same.

Hans


It's done that way in the Radeon 2xx driver because it appears to have been some commonly used format (e.g. Y on top, U/V side-by-side below) and I didn't want to differ. As far as the Picasso96 API is concerned it's just 3 pointers with three BytesPerRow values, this gives freedom in driver development so you can physically arrange them any way you want and it will work since the applications will simply use the three pointers and use the three bytesPerRow values to get to other rows.

Go to top
Re: radeonHD video hw acceleration
Just popping in
Just popping in


See User information
@Cobra

nice to see you again !

Sam 460EX, 2Gb Ram, Radeon R7 250, AmigaOS4.1 FE
A4000 PPC604@233, Mediator
A1200 PPC603@160, Mediator
uA1 G3@800, 512 Mb [sold]
Go to top
Re: radeonHD video hw acceleration
Not too shy to talk
Not too shy to talk


See User information
>the U and V planes are interleaved
>you can physically arrange them any way you want

Yes I agree. But desinterleaving them on the fly allow to obtain 3 rectangular textures
a big one with Y
a small with U
a small with V
so allowing to use hardware filtering/resizing as Y values are now sequential (same for U same for V)

Interleaved
YUYV YUYV YUYV YUYV
YUYV YUYV YUYV YUYV
YUYV YUYV YUYV YUYV
YUYV YUYV YUYV YUYV

Desinterleaved
YYYYYYY
YYYYYYY
YYYYYYY
YYYYYYY

UUUU
UUUU
UUUU
UUUU

VVVV
VVVV
VVVV
VVVV




Go to top
Re: radeonHD video hw acceleration
Home away from home
Home away from home


See User information
Quote:

COBRA wrote:
... As far as the Picasso96 API is concerned it's just 3 pointers with three BytesPerRow values, this gives freedom in driver development so you can physically arrange them any way you want and it will work since the applications will simply use the three pointers and use the three bytesPerRow values to get to other rows.


So, how do you get the three pointers, etc.? M3x's example doesn't show that.

Hans

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top
Re: radeonHD video hw acceleration
Not too shy to talk
Not too shy to talk


See User information
@thellier

When decoding video the decoder gives the bitmap in planar format (Y, U and V planes separately). Originally we only had overlay using interleaved YUV422 format so I would convert the planar format to interleaved format in software and transfer it to videomem. It's not an issue to convert the format, but the interleaved YUV422 uses 16 bits per pixel (U/V is shared only for pairs of pixels) while most video codecs are 12 bits per pixel (U/V is shared by groups of 4 pixels, 2x2 areas) so when we implemented YUV420P planar mode it gave a significant performance increase due to the fact that less data had to be transferred to video memory, not because data did not have to be interleaved.

However with planar formats you could have a further speed increase by using DMA hardware to transfer the data. This would not be possible with interleaved formats because DMA hardware can't rearrange planar data to interleaved data.

Go to top
Re: radeonHD video hw acceleration
Not too shy to talk
Not too shy to talk


See User information
@Hans

m3x's example uses the interleaved YUV422 format, not the planar YUV420 format. I have a test application which generates a YUV420P test bitmap (colour gradient thing) and outputs it on overlay, do you want that? If you need one that displays an actual image, I can make that but you have to wait for it.

Go to top
Re: radeonHD video hw acceleration
Home away from home
Home away from home


See User information
Quote:

COBRA wrote:
@Hans

m3x's example uses the interleaved YUV422 format, not the planar YUV420 format. I have a test application which generates a YUV420P test bitmap (colour gradient thing) and outputs it on overlay, do you want that? If you need one that displays an actual image, I can make that but you have to wait for it.


YUV422 is only the first example. M3x also posted a YUV420P example in post #30 of this thread. However, his example hard-codes the format to what th R2xx driver uses.

The source code to your YUV420P test app would be useful. It doesn't have to be an actual image, so long as there is enough detail that it's obvious if something is wrong.

Hans

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top
Re: radeonHD video hw acceleration
Not too shy to talk
Not too shy to talk


See User information
@Hans

OK, sent you an E-Mail with the test code I found on my hard drive but to be honest I didn't have time to check it maybe it's the same as m3x's one, will look at it tonight after work and if it's not doing it the correct way I'll make some test code for you based on the dvplayer code.

Go to top
Re: radeonHD video hw acceleration
Home away from home
Home away from home


See User information
Quote:

COBRA wrote:
@Hans

OK, sent you an E-Mail with the test code I found on my hard drive but to be honest I didn't have time to check it maybe it's the same as m3x's one, will look at it tonight after work and if it's not doing it the correct way I'll make some test code for you based on the dvplayer code.


Thanks. I just had a look at it, and it's different from m3x's. Most importantly, it shows how to get the pointers to each plane in the bitmap.

Hans

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top
Re: radeonHD video hw acceleration
Not too shy to talk
Not too shy to talk


See User information
Any use of this?

Within the next few hours AMD will be publishing open-source driver code that exposes their Unified Video Decoder (UVD) engine on modern Radeon HD graphics cards

http://www.phoronix.com/scan.php?page ... =amd_opensource_uvd&num=1

A1000/CDTV/CDTV+8MB+IDE/CD32/A500/A600+xT+RGB2HDMI/A600+Furia+IndiECS/A1200+TF1260/A4000D+A2320+PiccoloSD64/Sam440 flex 800MHz RAM 1GB HD7750 128MB OS4.1 SBLive! ->
Go to top
Re: radeonHD video hw acceleration
Home away from home
Home away from home


See User information
@mr2
Let's hope they release the required documentation for it aswell. If so, i'd be very interested in helping for a bounty to get this. It would mean that even the sam460 would playback fullhd video.

X5000
Go to top
Re: radeonHD video hw acceleration
Home away from home
Home away from home


See User information
Quote:

mr2 wrote:
Any use of this?

Within the next few hours AMD will be publishing open-source driver code that exposes their Unified Video Decoder (UVD) engine on modern Radeon HD graphics cards

http://www.phoronix.com/scan.php?page ... =amd_opensource_uvd&num=1


Yes, that will absolutely be useful, provided that there are other developers who are willing to work on all the bits that we'll need. Driver support is just a small part of what's needed. We need an AmigaOS version of VDPAU (Video Decode and Presentation API for Unix), and avcodec needs to be updated to use it too.

BTW, is there an easier way to grab the patches than copying and pasting from the linked to DRI mailing list archives?

Hans


P.S. Implementing all that is needed for HW video decoding is quite an undertaking, so expect it to take a long while.

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top
Re: radeonHD video hw acceleration
Just popping in
Just popping in


See User information
Very interesting news!! The code has just arrived ! And there are the Mesa patches too !!

Sam 460EX, 2Gb Ram, Radeon R7 250, AmigaOS4.1 FE
A4000 PPC604@233, Mediator
A1200 PPC603@160, Mediator
uA1 G3@800, 512 Mb [sold]
Go to top
Re: radeonHD video hw acceleration
Not too shy to talk
Not too shy to talk


See User information
Quote:
Yes, that will absolutely be useful, provided that there are other developers who are willing to work on all the bits that we'll need. Driver support is just a small part of what's needed. We need an AmigaOS version of ....


Great! The only way to speed things up (by community) is to donate some cash, IMO. Does anyone smart enough want to divide this complicated task to the stages? Is Amigabounty still around?

A1000/CDTV/CDTV+8MB+IDE/CD32/A500/A600+xT+RGB2HDMI/A600+Furia+IndiECS/A1200+TF1260/A4000D+A2320+PiccoloSD64/Sam440 flex 800MHz RAM 1GB HD7750 128MB OS4.1 SBLive! ->
Go to top
Re: radeonHD video hw acceleration
Home away from home
Home away from home


See User information
@hans

Would you be interested in setting up a team for this task?
I see cobra seems to have good knowledge, and maybe salass00 and andy. And you could set up a request for a sum of money for it. Im certain people would donate for such a task. As videon is important for many people.
Just my thoughts running here.

X5000
Go to top
Re: radeonHD video hw acceleration
Home away from home
Home away from home


See User information
I'd still love to see something being done to this.

X5000
Go to top
Re: radeonHD video hw acceleration
Home away from home
Home away from home


See User information
Quote:

Antique wrote:
I'd still love to see something being done to this.


So would I. Who will take on the challenge though? Someone with more time to commit to this than Cobra and I.

Hans

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top

  Register To Post
« 1 2 (3) 4

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project