Typos found and reworked from codespell.
(cherry picked from commit 6b7a57f984) (edited)
edited:
* some files don't exist in 3.0
* some 3.0 code around changes is different (vlc_tick_t)
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
This resyncs the integer type definition with the official
OpenMAX IL 1.1.2 sources. In particular, this fixes U32 and S32 which
were wrongly defined as long thus breaking binary compatibility on
Linux/arm64.
Fixes LP#1913530.
(cherry picked from commit 368c2f3762)
When I tested it, cf. 71fd3326ea, I'm pretty sure
that this hack was not needed for HEVC. It seems to be needed now, so let's
enable for every codecs.
(cherry picked from commit bf2fa8adf9)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
The AVC MediaCodec implementation of Amazon Fire TV devices report the surface
output size instead of the input video size.
These are the only know devices that need this HACK.
(cherry picked from commit 4e76bcfd50)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Some implementations return the surface output size instead of the input video
size. In that case, use the size parsed by the hxxx_helper.
(cherry picked from commit 669505d184)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
(cherry picked from commit 2142b90d7ecb2d38bb7e11db36344d3d8ed80335)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
(cherry picked from commit 0cdd6619555ddbee99f1097ecfbaefe22c7dafab)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
mpeg2 output frames don't need to be re-ordered.
And ignore blocks when SEQUENCE_HEADER_STARTCODE is invalid.
(cherry picked from commit d172e0f40e)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Add MPEG2 support with Mediacodec on Android.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
(cherry picked from commit 5b36000c03)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Fix the source aspect ratio of MPEG2 video decoded with mediacodec.
It extracts the aspect_ratio_information from any block containing
a SEQUENCE_HEADER and applies it in the UpdateVout function.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
(cherry picked from commit 2b056e5def)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Use intermediates variables i_input_width, i_input_height for size comparison.
(cherry picked from commit 183acdca3d)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Fail if the profile is not supported. This fixes HEVC 10bits sw fallback when
HW can only do HEVC Main.
(cherry picked from commit cff8462187)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Use more generic functions name that can work with more than one chroma. For
example, CopyFromYv12ToYv12 is renamed to Copy420_P_to_P (planar to planar).
Add picture_SwapUV(): just swap U, V planes of a tri-planar picture.
Remove CopyFromNv12ToYv12 (replaced by Copy420_SP_to_P() and picture_SwapUV()).
Add const qualifiers to all sources parameters in all functions.
Live window state, this was moved from display to window eight years
ago (minus one week). When the fullscreen state changes, the window
plugin emits a resize event, which triggers any necessary updates in
the display. The display does not need to know about fullscreen state
as such. But it is retained on HWND platforms due to legacy code, just
like window state before.
Rename i_original_channels to i_chan_mode. For now, chan modes can be
DOLBYSTEREO or DUALMONO.
This new value, i_chan_mode, should only be set by demuxes/codecs/packetizers
if there is a special stereo mode to handle.
Since packetizers will trigger a decoder reload when the size is finally valid.
We can open MediaCodec without having any CSDs since we can send them later
with the queueInput() method.
Rename UpdateOpaqueVout() to UpdateVout(): this function is now used for non
opaque vouts.
In case of direct rendering, UpdateVout() is called at Open to initialize the
Android Surface. UpdateVout() can be called again from the Output thread if the
video size change.