add some extra, commonly used, aspect flags for skins
[rbp/omxplayer] Go directly from executing to idle in OMX_Clock

OMX spec says there's no need to go through pause state
[rbp/omxplayer] Improve the player diagnostics overlay
[rbp/omxplayer] Increase audio buffering to gpu

When the arm is busy the gpu fifo can underrun, especially when audio codec uses short duration packets (like DTS)
Also increasing the packet size makes better utilisation of the audio queue inside the GPU
[rbp/omxplayer] Handle the case where EOS message fails.

When GPU fifo is full, the attempt to send the eos message may timeout. Increase the timeout and if that still fails then consider the stream to have ended.
[rbp/omxplayer] Enable zoom and pixel ratio in video OSD
[rbp/omxplayer] Need to populate channel layout for passthrough

Currently 6.1 channel dts is rejected as the channel count is zero. Fill in something plausible (it will not be used).
fixed: reimplementing ID3v1::StringHandler to get non-ISO-8859-1 tags correctly like we do for ID3v2::Latin1StringHandler
[rbp/omxplayer] Support both analogue and hdmi audio

Thanks to stupid-boy for the original implementation.
[rbp/omxplayer] Add Dynamic Range Compression scheme

This adds a DRC scheme. A number of dBs of amplification can be chosen.
The audio_decode component is setup to do the usual downmix operation early
before most of the audio buffering. This means we get a second or two to
detect if the downmix would overflow. This allows the amplification to be
attenuated in time to avoid the clipping.
The attenuation gradually decays when overflow condition stops.

Also adds a gui setting to boost centre channel.

Requires updated firmware
[3D] Support switching to 3D resolutions

Include matching 3D flags (SBS/TAB) in the score of a resolution to switch to, to enable switching to 3d modes.
Also remove the old code that treated 3D modes differently when assigning a score.

I've also added a small weight to higher multiples of the desired framerate, so if display supports 30, 60 and 120Hz
and the video is 30fps then 30 will now be chosen rather than 120. This reduces the overhead of rendering the gui.
[confluence] Use animated gif as a cheaper working spinner
[rbp/omxplayer] Do we need discontinuity handling?

So far I've not seen what this is needed for and it does cause problems for some files.
[rbp/omxplayer] Cosmetics
[utils] Speed up sorting code used by library views

Sort a table of references to maps, rather than shuffling the maps themselves.
Should speed up time taken to enter library views like movies.
h264_parser: Initialize the h264dsp context in the parser as well

Each AVStream struct for an H.264 elementary stream actually has two
copies of the H264DSPContext struct (and in fact all the other members
of H264Context as well):

((H264Context *) ((AVStream *)st)->codec->priv_data)->h264dsp
((H264Context *) ((AVStream *)st)->parser->priv_data)->h264dsp

but only the first of these was actually being initialised. This
prevented the addition of platform-specific implementations of
parser-related functions.

Signed-off-by: Martin Storsjö <martin@martin.st>
h264dsp: Factorize code into a new function, h264_find_start_code_candidate

This performs the start code search which was previously part of
h264_find_frame_end() - the most CPU intensive part of the function.

By itself, this results in a performance regression:
              Before          After
              Mean   StdDev   Mean   StdDev  Change
Overall time  2925.6 26.2     3068.5 31.7    -4.7%

but this can more than be made up for by platform-optimised
implementations of the function.

Signed-off-by: Martin Storsjö <martin@martin.st>
arm: Add assembly version of h264_find_start_code_candidate

               Before          After
               Mean   StdDev   Mean   StdDev  Change
This function   508.8 23.4      185.4  9.0    +174.4%
Overall        3068.5 31.7     2752.1 29.4     +11.5%

In combination with the preceding patch:
                Before          After
                Mean   StdDev   Mean   StdDev  Change
Overall         2925.6 26.2     2752.1 29.4     +6.3%

Signed-off-by: Martin Storsjö <martin@martin.st>
[ffmpeg] Backport of h264_find_start_code_candidate optimisation
[utils] Speed up url processing on music library

This reduces url processing when entering music/song view, and reduced time takes from 23 to 13 seconds