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
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
Steve Lhomme
b4dfbc6283
rename mdate() to vlc_tick_now()
The lua "mdate" remains the same.
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
Francois Cartegnie
10318107ac
date_t: always init to TS_INVALID
8 years ago
Thomas Guillem
a0f4ae67a0
avcodec: encoder: fix buffer over-read
It happened when the mask was not the default one.
8 years ago
Jean-Baptiste Kempf
ac64b83f24
Avcodec encoder: do not display error dialog on Win32
This messages makes no sense on Windows, where there are no
distributions
8 years ago
Steve Lhomme
178c1a4dfe
modules: fix VLC_TS_INVALID tests
8 years ago
Romain Vimont
ff2901aff3
core: remove global *_sys_t typedefs
Do not declare *_sys_t typedefs globally in vlc_common.h. Instead,
declare them locally in each module that provides a definition.
This paves the way to move C++ definitions into anonymous namespaces in
order to respect C++ ODR.
The picture_resource_t and sout_stream_id_sys_t typedefs will be handled
separately, since they require specific additional changes.
See #18033
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
8 years ago
Steve Lhomme
d6a4f1d32d
modules: remove empty curly braces initialization
They are not allowed per §6.7.9 of the 2011 ISO C Standard:
initializer:
assignment-expression
{ initializer-list }
{ initializer-list , }
initializer-list:
designation(opt) initializer
initializer-list , designation(opt) initializer
8 years ago
Steve Lhomme
b36cb077f9
avcodec: log the error code returned by the encoder
9 years ago
Thomas Guillem
c5418dab5c
avcodec: accept NV12 an input
This removes a conversion when both decoder and encoder use NV12.
8 years ago
Thomas Guillem
2d628e37d2
avcodec: fail if the specified encoder is not found
Instead of using the default avcodec encoder.
8 years ago
Thomas Guillem
c6e4f56957
avcodec: rename entry functions
This fixes duplicate symbols with a static build.
8 years ago
Thomas Guillem
be994e0f5d
avcodec/encoder: fallback to 44100hz when rate is not supported
Better than faling, the transcode sout will convert the rate.
8 years ago
Thomas Guillem
024304087c
avcodec/encoder: fix fallback to stereo
Happens if the codec doesn't support more than 2 channels (like mp3lame).
Also ask for a channel conversion instead of dropping channels.
8 years ago
Rémi Denis-Courmont
c3dea95c4a
Expand VLC_COMMON_MEMBERS
This is now a one-liner. Expansion helps readability/high-lighting.
8 years ago
Rémi Denis-Courmont
2ca454a43e
avcodec/encoder: remove useless datum
9 years ago
Rémi Denis-Courmont
6b42af3f7f
avcodec/encoder: remove no-op (refs #18697 )
Changing AVCodecContext.noise_reduction at run-time has no effects.
Libavcodec only reads it during open.
9 years ago
Rémi Denis-Courmont
1c22bbe536
avcodec/encoder: remove no-op
Same member is written a few lines below.
9 years ago
Jean-Baptiste Kempf
8ee9d4d5a4
avcodec encoder: fix sign comparison issue
9 years ago
Steve Lhomme
98e70d033e
avcodec: don't enqueue empty encoded block
There's no data, no timestamp and no flag to signal anything.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years ago
Steve Lhomme
c491eec988
avcodec: make the video_format_t color to AVCodecContext conversion more generic
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years ago
Rémi Denis-Courmont
5b7afb0f14
avcodec: simplify encoder codec look-up
9 years ago
Rémi Denis-Courmont
2826791f59
avcodec: search codec mapping by category
Category is now an input rather than output parameter.
9 years ago
Francois Cartegnie
afcdb682ba
codec/demux: output version and provider in debug
9 years ago
Hugo Beauzée-Luyssen
032ba19a41
avcodec: encoder: Fix a few deprecated options usage
9 years ago
Hugo Beauzée-Luyssen
b337da9935
avcodec: encoder: Fix win32 build
By removing some long time deprecated options
9 years ago
Hugo Beauzée-Luyssen
667c3a73b1
avcodec: vlc_av_get_options: Append to a potentially existing dict
9 years ago
Jean-Baptiste Kempf
84ce62d0a5
avcodec encoder: fix some API changes
9 years ago
Francois Cartegnie
b948167ad2
avcodec: add missing color xfer mappings
9 years ago
Ilkka Ollakka
7126070f86
avcodec: encoder: unref avpackets instead of freeing them
10 years ago
Ilkka Ollakka
b7bfbfb046
avcodec: encoder: remove unused variable
10 years ago
Ilkka Ollakka
83021a62f7
avcodec: encoder: handle avpacket key-flag
10 years ago
Ilkka Ollakka
cdc04e5b3d
avcodec: encoder: use similar timestamps with audio/video
As the flow is similar now, timestamps should be too
10 years ago
Ilkka Ollakka
5a65762906
avcodec: encoder: refactor encoding flow
Use similar flow for both of audio and video
Also complain about sending frame if we actually had frame to send.
This should fix the closing case when we want to flush encoder.
10 years ago
Ilkka Ollakka
25e13fba92
avcodec: encoder: user send_frame/receive_packet in video encoding
10 years ago
Ilkka Ollakka
cea0bac8fc
avcodec: video encoding: refactor hurry-up checking
10 years ago
Steve Lhomme
66df76dfb8
avcodec: mark encoded audio blocks as key frames/corrupted when appropriate
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
10 years ago
Steve Lhomme
4919758a95
ffmpeg: only free the options if there were any
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
10 years ago
Ilkka Ollakka
2baae89ba6
avcodec: set color settings on encoding
10 years ago
Hugo Beauzée-Luyssen
1b54a8a95f
avcodec: encoder: Always provide frame dimension and pixel format
av_frame_unref will clear most of the frame fields, including dimension
& pixel format. This causes some encoders (at least the raw encoder) to
reject the frame.
10 years ago
Hugo Beauzée-Luyssen
d1dede1ff4
avcodec: grammar fix
10 years ago
Thomas Guillem
183d5cda47
dialog: use new API
10 years ago
Felix Paul Kühne
d185cfaad5
avcodec: use directly channel_layout.h
11 years ago
Rémi Denis-Courmont
dbad0d2747
avcodec: fix compilation ( fixes #15393 )
(This is not tested.)
11 years ago
Rémi Denis-Courmont
3d2850fe72
avcodec: compilation fix (partial)
11 years ago
Ilkka Ollakka
3068a84956
avcodec: refactor frame_rate probing into own function
if codec has list of supported framerates, select highest one
unless user has provided one. If we end up using CLOCK_FREQ in
time_base, it should be quite ok in most cases. Tested with ts/mp4/webm
and mp2v/mp4v/VP80. For some cases it can select higher fps in
mpeg-codecs (60fps) in case of input fps isn't yet known in that point
or is fubared.
Also add special case for MP4V as it doesn't like CLOCK_FREQ in
time_base/frame_rates.
11 years ago