DaVinci DSP optimizations
Hello, Those that can access the GSoC applications have seen that I applied one for DaVinci DSP optimizations. I wrote it quickly on Sunday: --------------- The Texas Instrument DaVinci technology combines a general purpose processor (ARM) and, depending on the model, a few DSPs aimed at complete multimedia processing on a single chip. It is currently being used by some Set-Top Boxes and Personal Video Recording devices. Most devices depend on proprietary codec packages, and there is no open-source library that can use all the power of the DaVinci chips. This project aims at writing such optimizations to FFmpeg, and for that possibly write an infrastructure that can be used by other recent heterogeneous processor architectures, such as the PS3 CELL. --------------- Neuros Technology uses DaVinci chips for their OSD2.0 devices. I'll elaborate on the idea: I don't have a PS3 nor have ever worked with one to know how it works with its DSPs, but I have worked some time with DaVinci. I have contacted the folks at Neuros Technology for more information about helping out the possible mentor of such task with hardware or more information on the chip itself. One problem that they pointed out (and I think just might be the show-stopper) is that there are yet no free compilers for the DM6446 DSP used by DaVinci. There was a port of GCC for the earlier DSPs, but I don't know how that's going with the new ones. This is part of a reply I got from Joey Born and Ugo Riboni from Neuros Technology: ---------- JB: There is no free compiler for the c64x DSP, although there are a number JB: of efforts to create one. Your best bet is to try to get a loaner copy JB: of the developer tools from TI. We have arranged some of these and can JB: probably help if you are selected. You say DSP optimizations for which JB: codec? The problem is, the optimized code Ramiro will produce will be compilable only with these loaner versions of the compiler, and "normal" people can't use these, so they can't compile it. Thus getting that code in ffmpeg source feels pretty weird to me. Or is this not a concern ? One alternative may be lobby TI to release some stripped open-source-only version of that compiler, that can be freely used by OSS projects only. Just like they did with the c54x compiler. ---------- This is a white paper about the Codec Engine interface TI supplies, and that I would use as a basis in dsputils to manage the load on different DSPs: http://focus.ti.com/lit/wp/spry091/spry091.pdf Ramiro Polla
Ramiro Polla wrote:
The Texas Instrument DaVinci technology combines a general purpose processor (ARM) and, depending on the model, a few DSPs aimed at complete multimedia processing on a single chip. It is currently being used by some Set-Top Boxes and Personal Video Recording devices. Most devices depend on proprietary codec packages, and there is no open-source library that can use all the power of the DaVinci chips.
I see.
This project aims at writing such optimizations to FFmpeg, and for that possibly write an infrastructure that can be used by other recent heterogeneous processor architectures, such as the PS3 CELL.
Sounds interesting.
Neuros Technology uses DaVinci chips for their OSD2.0 devices.
I'll elaborate on the idea: I don't have a PS3 nor have ever worked with one to know how it works with its DSPs, but I have worked some time with DaVinci.
the CELL's SPU aren't exactly DSP...
I have contacted the folks at Neuros Technology for more information about helping out the possible mentor of such task with hardware or more information on the chip itself.
One problem that they pointed out (and I think just might be the show-stopper) is that there are yet no free compilers for the DM6446 DSP used by DaVinci.
That sucks.
There was a port of GCC for the earlier DSPs, but I don't know how that's going with the new ones.
More informations would be useful.
This is part of a reply I got from Joey Born and Ugo Riboni from Neuros Technology: ---------- JB: There is no free compiler for the c64x DSP, although there are a number JB: of efforts to create one. Your best bet is to try to get a loaner copy JB: of the developer tools from TI. We have arranged some of these and can JB: probably help if you are selected. You say DSP optimizations for which JB: codec?
The problem is, the optimized code Ramiro will produce will be compilable only with these loaner versions of the compiler, and "normal" people can't use these, so they can't compile it.
Ugh...
Thus getting that code in ffmpeg source feels pretty weird to me. Or is this not a concern ?
It is at least for me.
One alternative may be lobby TI to release some stripped open-source-only version of that compiler, that can be freely used by OSS projects only. Just like they did with the c54x compiler.
Could be interesting in any case. For the CELL we have quite a degree of support and knowledgeable mentors, but lack of students so far... lu -- Luca Barbato Gentoo Council Member Gentoo/linux Gentoo/PPC http://dev.gentoo.org/~lu_zero
This is part of a reply I got from Joey Born and Ugo Riboni from Neuros Technology: ---------- JB: There is no free compiler for the c64x DSP [...] "normal" people can't use these, so they can't compile it.
Ugh...
Thus getting that code in ffmpeg source feels pretty weird to me. Or is this not a concern ?
It is at least for me.
I had the same feeling when I failed to find a free compiler =( Looks like another foiled attempt at a GSoC project...
One alternative may be lobby TI to release some stripped open-source-only version of that compiler, that can be freely used by OSS projects only. Just like they did with the c54x compiler.
Could be interesting in any case.
For the CELL we have quite a degree of support and knowledgeable mentors, but lack of students so far...
Unlike Multimedia Mike, I am not a strong supporter of Video Games, so I am not particularly happy with writing code for PS3s. Ramiro Polla
Ramiro Polla wrote:
For the CELL we have quite a degree of support and knowledgeable mentors, but lack of students so far...
Unlike Multimedia Mike, I am not a strong supporter of Video Games, so I am not particularly happy with writing code for PS3s.
The CELL isn't just on ps3, you have it also on nice blades and other designs (including as 4 SPUs + core2 in toshiba laptops). So don't consider it as helping sony ^^ lu -- Luca Barbato Gentoo Council Member Gentoo/linux Gentoo/PPC http://dev.gentoo.org/~lu_zero
Luca Barbato wrote:
Ramiro Polla wrote:
For the CELL we have quite a degree of support and knowledgeable mentors, but lack of students so far... Unlike Multimedia Mike, I am not a strong supporter of Video Games, so I am not particularly happy with writing code for PS3s.
The CELL isn't just on ps3, you have it also on nice blades and other designs (including as 4 SPUs + core2 in toshiba laptops).
So don't consider it as helping sony ^^
Further, I believe that Luca is able to arrange for a student to remotely login to a Cell machine. So there's no additional equipment cost for a student. -- -Mike Melanson
Mike Melanson wrote:
Luca Barbato wrote:
Ramiro Polla wrote:
For the CELL we have quite a degree of support and knowledgeable mentors, but lack of students so far... Unlike Multimedia Mike, I am not a strong supporter of Video Games, so I am not particularly happy with writing code for PS3s. The CELL isn't just on ps3, you have it also on nice blades and other designs (including as 4 SPUs + core2 in toshiba laptops).
So don't consider it as helping sony ^^
Further, I believe that Luca is able to arrange for a student to remotely login to a Cell machine. So there's no additional equipment cost for a student.
If that is still unclear, you'll have access to my ps3+crossdistcc box and access to cell blades (courtesy of IBM). In addition I'll try to come up with a recipe for using mambo for additional profiling and testing. lu -- Luca Barbato Gentoo Council Member Gentoo/linux Gentoo/PPC http://dev.gentoo.org/~lu_zero
JB: There is no free compiler for the c64x DSP [...] "normal" people can't use these, so they can't compile it. Ugh... Thus getting that code in ffmpeg source feels pretty weird to me. Or is this not a concern ? It is at least for me. I had the same feeling when I failed to find a free compiler =(
Just to update. An e-mail was sent to Neuros Technology's contact in TI regarding a free compiler but no reply was given yet... Ramiro Polla
Ramiro Polla wrote:
JB: There is no free compiler for the c64x DSP [...] "normal" people can't use these, so they can't compile it. Ugh... Thus getting that code in ffmpeg source feels pretty weird to me. Or is this not a concern ? It is at least for me. I had the same feeling when I failed to find a free compiler =(
Just to update. An e-mail was sent to Neuros Technology's contact in TI regarding a free compiler but no reply was given yet...
Ramiro Polla
I'm guessing that this has fallen by the wayside? Time to drag it back to the surface! I have been looking at the TI gstreamer plugin that implements DSP decode of mpeg2 and mpeg4 video on the DaVinci platforms and wondering why the same couldn't be done under ffmpeg? gstreamer is under L-GPL and the Codec Engine has been integrated into that... I assume the fact that the TI plugin can be built separately to the main build is a factor? With ffmpeg, it would (from my limited understanding) be more tightly coupled with the main code base. I'm not sure about the definition of "free" but all required tools are available for download from TI (US export rules permitting): http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVS... So... If I spent the time and effort integrating the DaVinci DMAI / CE into ffmpeg, would a patch be willingly accepted, or would it be too much of a legal / logistical nightmare to be integrated into the ffmpeg trunk? My specific goal is to have DSP accelerated decode on the OMAP3530 based BeagleBoard for use with MythTV. Richard.
On Fri, Sep 25, 2009 at 10:43:12PM +0100, Richard Taylor wrote:
Ramiro Polla wrote:
JB: There is no free compiler for the c64x DSP [...] "normal" people can't use these, so they can't compile it. Ugh... Thus getting that code in ffmpeg source feels pretty weird to me. Or is this not a concern ? It is at least for me. I had the same feeling when I failed to find a free compiler =(
Just to update. An e-mail was sent to Neuros Technology's contact in TI regarding a free compiler but no reply was given yet...
I'm guessing that this has fallen by the wayside? Time to drag it back to the surface!
I have been looking at the TI gstreamer plugin that implements DSP decode of mpeg2 and mpeg4 video on the DaVinci platforms and wondering why the same couldn't be done under ffmpeg?
gstreamer is under L-GPL and the Codec Engine has been integrated into that... I assume the fact that the TI plugin can be built separately to the main build is a factor?
With ffmpeg, it would (from my limited understanding) be more tightly coupled with the main code base.
I'm not sure about the definition of "free" but all required tools are available for download from TI (US export rules permitting): http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVS...
So... If I spent the time and effort integrating the DaVinci DMAI / CE into ffmpeg, would a patch be willingly accepted, or would it be too much of a legal / logistical nightmare to be integrated into the ffmpeg trunk?
A patch is welcome. Diego
On Fri, Sep 25, 2009 at 6:43 PM, Richard Taylor <news at artaylor.co.uk> wrote:
Ramiro Polla wrote:
JB: There is no free compiler for the c64x DSP
[...]
"normal" people can't use these, so they can't compile it.
Ugh...
Thus getting that code in ffmpeg source feels pretty weird to me. Or is this not a concern ?
It is at least for me.
I had the same feeling when I failed to find a free compiler =(
Just to update. An e-mail was sent to Neuros Technology's contact in TI regarding a free compiler but no reply was given yet...
Ramiro Polla
I'm guessing that this has fallen by the wayside? Time to drag it back to the surface!
I have been looking at the TI gstreamer plugin that implements DSP decode of mpeg2 and mpeg4 video on the DaVinci platforms and wondering why the same couldn't be done under ffmpeg?
gstreamer is under L-GPL and the Codec Engine has been integrated into that...
Ramiro Polla <ramiro.polla at gmail.com> writes:
I don't know about the other devs, but I would prefer if we had c64x optimized code in our own decoder instead of calling a binary blob and letting it do its job.
That is on my ever-growing list of things to do. One major obstacle is that the DSP compiler doesn't (yet) build FFmpeg. -- M?ns Rullg?rd mans at mansr.com
Ramiro Polla wrote:
---------- JB: There is no free compiler for the c64x DSP, although there are a number JB: of efforts to create one. Your best bet is to try to get a loaner copy JB: of the developer tools from TI. We have arranged some of these and can JB: probably help if you are selected. You say DSP optimizations for which JB: codec?
The problem is, the optimized code Ramiro will produce will be compilable only with these loaner versions of the compiler, and "normal" people can't use these, so they can't compile it. Thus getting that code in ffmpeg source feels pretty weird to me. Or is this not a concern ?
One alternative may be lobby TI to release some stripped open-source-only version of that compiler, that can be freely used by OSS projects only. Just like they did with the c54x compiler.
I understood TI that they are in the process of doing that, but this process is slooooow, looking at how long it took them for the C54x.
This is a white paper about the Codec Engine interface TI supplies, and that I would use as a basis in dsputils to manage the load on different DSPs: http://focus.ti.com/lit/wp/spry091/spry091.pdf
You are aware that CE is not "free"?
This is a white paper about the Codec Engine interface TI supplies, and that I would use as a basis in dsputils to manage the load on different DSPs: http://focus.ti.com/lit/wp/spry091/spry091.pdf You are aware that CE is not "free"?
Yes, I am. But that doesn't seem to be anything non-free about that white paper. I didn't sign anything to obtain it and there is no confidentiality clause. Or am I supposed to forget I read it? =)
Ramiro Polla wrote:
This is a white paper about the Codec Engine interface TI supplies, and that I would use as a basis in dsputils to manage the load on different DSPs: http://focus.ti.com/lit/wp/spry091/spry091.pdf You are aware that CE is not "free"?
Yes, I am. But that doesn't seem to be anything non-free about that white paper. I didn't sign anything to obtain it and there is no confidentiality clause. Or am I supposed to forget I read it? =)
No, of course not. I was just wondering how you would "use" CE after reading the white paper :-) Regards, Vladimir
participants (8)
-
diego@biurrun.de -
lu_zero@gentoo.org -
mans@mansr.com -
mike@multimedia.cx -
news@artaylor.co.uk -
pan@nt.tu-darmstadt.de -
ramiro.polla@gmail.com -
ramiro@lisha.ufsc.br