News for hackers. Stuff that matters.
Re:Daala: Are We Compressed Yet? by TD-Linux on Saturday December 13, 2014 @02:02PM (#8745975)
It was a bit of a surprise to wake up and see myself on HN! I'm the presenter in the video - I can answer any questions you might have here.
Re:Daala: Are We Compressed Yet? by ciupicri on Saturday December 13, 2014 @10:12PM (#8747326)
A bit off-topic, but the player does not load if I have the referer disabled, i.e.

    network.http.sendSecureXSiteReferrer;true
    network.http.sendRefererHeader;2
    network.http.referer.trimmingPolicy;0
    network.http.referer.spoofSource;true
    network.http.referer.XOriginPolicy;1
Re:Daala: Are We Compressed Yet? by derf_ on Saturday December 13, 2014 @11:51PM (#8747481)
Re:Daala: Are We Compressed Yet? by ciupicri on Sunday December 14, 2014 @12:15AM (#8747514)
Re:Daala: Are We Compressed Yet? by derf_ on Sunday December 14, 2014 @12:32AM (#8747547)
Thanks.
Re:Daala: Are We Compressed Yet? by petermonsson on Saturday December 13, 2014 @02:59PM (#8746156)
In the video you mentioned that you worked on a bit of RTL for the codec. I am curious on how the codec can be accelerated. You didn't talk much about it, so I am interested in what you have learned. Do you have some info on where most of the CPU time is spent in the codec? What did you try out?
Re:Daala: Are We Compressed Yet? by TD-Linux on Saturday December 13, 2014 @03:20PM (#8746265)
My RTL accelerated the transform stage of the codec. Because Daala has no pixel domain dependencies, the frequency domain coefficients can just be offloaded to hardware, which returns the pixel domain result. There is more information on timing on my website [1].

The transforms no longer take as much CPU time as they used to, due to having better SIMD accelerated versions. Much of the time is now spent on the PVQ decoder, which is not optimized for speed at the moment.

One thing I learned after writing large fixed-function transform hardware is that it doesn't take much extra hardware to turn them into microcoded programmable pipelines, much like a GPU. In fact, this approach is very common internal to hardware video decoders, though the firmware is not exposed to the user. One notable exception is Broadcom's Videocore IV, which is quite an interesting architecture [2].

Also, with the latest mobile processors having 8 or more ARM cores, we can also exploit CPU parallelism in much the same way. I feel it is very important to have the codec perform well on CPU alone, as not everyone will have hardware that can decode it right away. This is something I would like to play with a lot more.

[1] http://thomasdaede.com/wordpress/?cat=9 [2] http://www.broadcom.com/docs/support/videocore/VideoCoreIV-A...

Re:Daala: Are We Compressed Yet? by petermonsson on Saturday December 13, 2014 @05:30PM (#8746708)
Cool stuff. Thanks a bunch. I agree with you that software optimization takes preference, but I have also seen optimized crypto code in assembly that was completely undocumented and unreadable. I hope that Daala won't fall into that trap.
Re:Daala: Are We Compressed Yet? by TD-Linux on Saturday December 13, 2014 @06:00PM (#8746805)
All functions in Daala have a C version, along with corresponding assembly versions which have tests to make sure that the assembly version matches the C reference.
Re:Daala: Are We Compressed Yet? by yazaddaruvala on Monday December 15, 2014 @02:18AM (#8750987)
Given this is funded by Mozilla, I'm surprised its not written in Rust. Any particular reasons?
Re:Daala: Are We Compressed Yet? by higherpurpose on Saturday December 13, 2014 @05:54PM (#8746780)
ARM and its partners will probably start supporting HSA in 2016 and beyond, so you might want to look at that, too.
Re:Daala: Are We Compressed Yet? by lifthrasiir on Saturday December 13, 2014 @10:41AM (#8745369)
https://arewecompressedyet.com/ is the actual benchmark website.
Re:Daala: Are We Compressed Yet? by wldcordeiro on Saturday December 13, 2014 @06:18PM (#8746856)
Is there a list of all the arewe* sites Mozilla runs? I know of arewefastyet[0], areweslimyet[1] and arewee10syet[2]. Are there others?

[0] http://arewefastyet.com/

[1] https://areweslimyet.com/

[2] http://arewee10syet.com/

Re:Daala: Are We Compressed Yet? by ash on Saturday December 13, 2014 @06:46PM (#8746937)
Re:Daala: Are We Compressed Yet? by ancarda on Saturday December 13, 2014 @07:24PM (#8747021)
There's also http://www.areweplayingyet.org/ which appears to be by SoundCloud, not Mozilla.
Re:Daala: Are We Compressed Yet? by ehsanu1 on Sunday December 14, 2014 @02:27AM (#8747676)
http://arewewebyet.com/

Not mozilla though.

Re:Daala: Are We Compressed Yet? by iopq on Sunday December 14, 2014 @06:36AM (#8748048)
Yes, it is Mozilla, Mozilla makes Rust.
Re:Daala: Are We Compressed Yet? by cmrx64 on Sunday December 14, 2014 @07:08AM (#8748104)
No, it isn't Mozilla, it's created and maintained by a member of the community.
Re:Daala: Are We Compressed Yet? by iopq on Sunday December 14, 2014 @07:28AM (#8748145)
OH, you mean the webpage.
Re:Daala: Are We Compressed Yet? by mccr8 on Sunday December 14, 2014 @12:49AM (#8747566)
There is http://arewemetayet.com/ but it is probably incomplete.
Re:Daala: Are We Compressed Yet? by agapos on Saturday December 13, 2014 @08:27PM (#8747144)
There also is/was an arewe* site for Firefox installer size by releases, but I can't remember the URL.
Re:Daala: Are We Compressed Yet? by ash on Saturday December 13, 2014 @10:47PM (#8747388)
arewesmallyet.com, it seems to be expired and grabbed by domain squatters. And (what is probably related) Firefox installer size is now much more than 5Mb it was then :)

Also: https://github.com/ttaubert/arewesmallyet

Re:Daala: Are We Compressed Yet? by jsantell on Saturday December 13, 2014 @11:50PM (#8747479)
for fun bug tracking in the web audio tools, arewedubstepyet[0].

[0]http://arewedubstepyet.com/

Re:Daala: Are We Compressed Yet? by tekacs on Saturday December 13, 2014 @10:49AM (#8745389)
For some textual context: http://xiph.org/daala/
Re:Daala: Are We Compressed Yet? by kzrdude on Saturday December 13, 2014 @01:50PM (#8745932)
The tech demo series is fantastic.
Re:Daala: Are We Compressed Yet? by derf_ on Saturday December 13, 2014 @11:56PM (#8747488)
Link to the full set (top of the page): https://people.xiph.org/~xiphmont/demo/
Re:Daala: Are We Compressed Yet? by ape4 on Saturday December 13, 2014 @12:03PM (#8745598)
They are getting some pretty good work out of an intern.
Re:Daala: Are We Compressed Yet? by derf_ on Saturday December 13, 2014 @09:13PM (#8747231)
We certainly thought so (I was Thomas's mentor this summer).
Re:Daala: Are We Compressed Yet? by mistercow on Saturday December 13, 2014 @06:12PM (#8746839)
About damned time we had a codec with lapped transforms.
Re:Daala: Are We Compressed Yet? by kzrdude on Saturday December 13, 2014 @11:54AM (#8745561)
It seems like the HTML5 player is finally working :-)
Re:Daala: Are We Compressed Yet? by panzi on Saturday December 13, 2014 @02:24PM (#8746049)
Not for me (I use Chrome). Had to download the video.
Re:Daala: Are We Compressed Yet? by kzrdude on Saturday December 13, 2014 @05:13PM (#8746660)
Well it used to be that mozilla's web player didn't work in mozilla's browser, and now it does, and that's nice :-). (Linux / no flash).
Re:Daala: Are We Compressed Yet? by higherpurpose on Saturday December 13, 2014 @05:56PM (#8746793)
Didn't work for me either. After I refreshed the page, it did.