Alexandre Janniaux
71a0e80e40
mediacodec: separate configure behaviour from start
start was creating the codec, configuring it and eventually starting it
in the end. Splitting this behaviour into configure + start allows code
sharing with mediacodec encoder.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
8 years ago
Alexandre Janniaux
68fee62f28
mediacodec: rename configure into prepare
mc_api.configure only try to get configuration option but doesn't
actually neither create nor configure the codec.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
8 years ago
Francois Cartegnie
6722a7e01e
codec: vorbis: be more verbose on init failure
8 years ago
Steve Lhomme
bd94f108cc
vt_utils: fix build
after 0fd485e7a1
8 years ago
Romain Vimont
0fd485e7a1
core: use refcounter helper for vt_utils
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
8 years ago
Rémi Denis-Courmont
0642c2efd2
block: have block_Init() set the callbacks
Also document block_Init().
8 years ago
Rémi Denis-Courmont
a17540a521
block: move callback to separate const structure
8 years ago
Steve Lhomme
be8197f572
modules: use the vlc_tick_t/ms conversion macros for hardcoded values
8 years ago
Steve Lhomme
8aa92d1bb5
modules: use the vlc_tick_t/ms conversion macros for hardcoded values
8 years ago
Steve Lhomme
66d4e4ca4f
dvbsub: convert vlc_tick_t to seconds explicitly using SEC_FROM_VLC_TICK()
8 years ago
Steve Lhomme
25d7af9c59
modules: transform milliseconds value into vlc_tick_t with VLC_TICK_FROM_MS
8 years ago
Steve Lhomme
28436c10d1
videotoolbox: replace hardcoded CLOCK_FREQ fractions by VLC_TICK_FROM_MS()
Easier to read and more explicit.
8 years ago
Francois Cartegnie
eda6add483
codec: avcodec: drain only on real discontinuity
8 years ago
Steve Lhomme
343f022047
aribsub: convert microseconds to ticks using VLC_TICK_FROM_US()
8 years ago
Steve Lhomme
470b84a68b
dmo: use msftime_t macro to convert to/from ticks
8 years ago
Tristan Matthews
1b09b95e0e
aom: treat unsupported bitstream errors as fatal
This avoids repeatedly trying to decode an impossible to decode stream.
Cherry-picked from 0beabcc772
8 years ago
Steve Lhomme
911569be2c
modules: convert variables in seconds to ticks using vlc_tick_from_sec()
8 years ago
Steve Lhomme
0223136621
modules: replace hardcoded CLOCK_FREQ fractions/multiples by VLC_TICK macros
8 years ago
Tristan Matthews
a5b4bbb9f2
aom: flush decoder on close
Fixes #20788
8 years ago
Steve Lhomme
d5e794f802
modules: replace hardcoded CLOCK_FREQ multiples by VTICK_FROM_SEC()
8 years ago
Steve Lhomme
ded62a069f
rename VLC_TS_0 to VLC_TICK_0
8 years ago
Steve Lhomme
1f17997348
rename VLC_TS_INVALID to VLC_TICK_INVALID
8 years ago
Thomas Guillem
f9b1f67b4a
lpcm: prepare dec->fmt_out
In order to set i_bytes_per_frame and i_frame_length.
Fixes #20753
8 years ago
Zhao Zhili
0fff484a85
codec: vpx: use VLC_TS_INVALID
Signed-off-by: Tristan Matthews <tmatth@videolan.org>
8 years ago
Zhao Zhili
efff6ccbf7
codec: aom: use VLC_TS_INVALID
Signed-off-by: Tristan Matthews <tmatth@videolan.org>
8 years ago
Tristan Matthews
18b909f4fb
aom: decoder: update video resolution if it changes mid-stream
Cherry-picked from 93a3f58b7a
8 years ago
Tristan Matthews
ff5adfedea
aom: decoder: fallback to dts if pts is invalid
Cherry-picked from 043cde8a16
8 years ago
Tristan Matthews
c8132e3a8e
aom: decoder: pass metadata from demuxer
Cherry-picked from commits:
5bf3ee0129
8bb28646fa
8 years ago
Tristan Matthews
a9d4ee5e83
aom: decoder: pass sar values through
Cherry-picked from 7d69fdb7d8
8 years ago
Francois Cartegnie
1a5484aa04
Revert "codec: cc: make captions default background half opaque"
This reverts commit e51f96aa07 .
8 years ago
Steve Lhomme
33cc4f2b1f
dxva: allow blacklisting based on the driver build
Not used for now.
8 years ago
Steve Lhomme
79c56aadae
dxva: allow blacklisting for different codecs
8 years ago
Steve Lhomme
9daba7a1f7
dxva: allow per-vendor HEVC black listing
8 years ago
Steve Lhomme
ec1313ce0a
codec: add a specific source file to handle GPU blacklisting
8 years ago
Steve Lhomme
b4dfbc6283
rename mdate() to vlc_tick_now()
The lua "mdate" remains the same.
8 years ago
Steve Lhomme
8b0c6bb9fa
rename msleep() to vlc_tick_sleep()
8 years ago
Steve Lhomme
ff56c92a5e
rename mtime_t to vlc_tick_t
Keep a copy of vlc_tick_tfor backward compatibility.
8 years ago
Zhao Zhili
69fb11904e
codec: kate: prepare to put pf_packetize and pf_decode into a union
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
8 years ago
Zhao Zhili
833187d417
codec: spudec: check malloc
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
8 years ago
Zhao Zhili
463eda9880
codec: rawvideo: set pf_flush callback for packetizer
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
8 years ago
Zhao Zhili
72845f7400
codec: theora: prepare to put pf_packetize and pf_decode into a union
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
8 years ago
Zhao Zhili
ff94873670
codec: speex: prepare to put pf_packetize and pf_decode into a union
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
8 years ago
Zhao Zhili
a585cb1af0
codec: daala: prepare to put pf_packetize and pf_decode into a union
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
8 years ago
Zhao Zhili
05298fb399
codec: oggspots: prepare to put pf_packetize and pf_decode into a union
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
8 years ago
Zhao Zhili
97cd77ef35
codec: lpcm: prepare to put pf_packetize and pf_decode into a union
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
8 years ago
Zhao Zhili
1c820ca4e0
codec: spudec: prepare to put pf_packetize and pf_decode into a union
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
8 years ago
Zhao Zhili
f0db636b03
codec: cvdsub: prepare to put pf_packetize and pf_decode into a union
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
8 years ago
Zhao Zhili
6a20d09cd2
codec: svcdsub: prepare to put pf_packetize and pf_decode into a union
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
8 years ago
Zhao Zhili
e5ece5e5ee
codec: vorbis: prepare to put pf_packetize and pf_decode into a union
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
8 years ago
Zhao Zhili
00dbb2deb1
codec: aes3: prepare to put pf_packetize and pf_decode into a union
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
8 years ago