This mostly consists of ifdeffing out parts selectively from
opengl.c based on whether shaders or the fixed pipeline are
absent.
Both the ES1 and ES2 outputs have been tested on Ubuntu on
a pandaboard. They seem to mostly work fine, but overlay
subpictures seem garbled.
Signed-off-by: Martin Storsjö <martin@martin.st>
The version string for ES 1 is "OpenGL ES-CM 1.x" or
"OpenGL ES-CL 1.x". For ES 2 it is "OpenGL ES 2.0", while it
seems to be only "3.x" for ES 3.
Since the code is mostly built for either ES 1 or ES 2 (only
Apple support targeting both at the same time, from the same
built object code - but we only use ES 2 on iOS), simplify
this down to a compile time decision.
Signed-off-by: Martin Storsjö <martin@martin.st>
This partially reverts and adapts commit cde81e52f2.
This is mostly related to Palette and Options
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
All headers except OMX_Component.h seemed to be stored with dos
newlines for some unknown reason. In the OpenMAX IL 1.1.2 header
zip file provided by Khronos, they are provided with unix newlines,
which also is the norm for the VLC codebase.
Signed-off-by: Martin Storsjö <martin@martin.st>
The 64 bit timestamp fields can be defined either as 64 bit
integers or as structs with two 32 bit members. If the
struct variant is being used, we need to convert to/from it
with helper functions.
Signed-off-by: Martin Storsjö <martin@martin.st>
Instead just set the flag to disabled, since this obviously
isn't used at the moment.
Also fix a case in DecodeVideo where the b_direct flag for the
wrong port was checked.
This simplifies enabling the direct buffer behaviour for the
cases where it actually is desired.
Signed-off-by: Martin Storsjö <martin@martin.st>
Vimeo injects garbage into pages fetched by any user agent recognisable as
being VLC. Amended parse routine to check the current user agent; if the user
agent is set to VLC then parse returns a replacement playlist entry with the
same url but with an option setting the user agent to something that vimeo will
not trash.
The main playlist parsing loop then re-opens the stream with the correct agent
and calls vimeo.lua a second time; the stream is then parsed as before to get
the actual shortlived video url.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Before dictionaries there was a loop, so if-else way was ok, but not now. Also, locale-dependent atof().
Remove unnecessary replaygain stuff from flac demuxer.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>