1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00
FFmpeg/fftools
Anton Khirnov 9d44eb8af5 fftools/ffmpeg_filter: stop accessing encoder from pixfmt selection
ffmpeg CLI pixel format selection for filtering currently special-cases
MJPEG encoding, where it will restrict the supported list of pixel
formats depending on the value of the -strict option. In order to get
that value it will apply it from the options dict into the encoder
context, which is a highly invasive action even now, and would become a
race once encoding is moved to its own thread.

The ugliness of this code can be much reduced by moving the special
handling of MJPEG into ofilter_bind_ost(), which is called from encoder
init and is thus synchronized with it. There is also no need to write
anything to the encoder context, we can evaluate the option into our
stack variable.

There is also no need to access AVCodec at all during pixel format
selection, as the pixel formats array is already stored in
OutputFilterPriv.
2023-07-20 20:30:13 +02:00
..
cmdutils.c fftools/cmdutils: constify the argument of get_rotation() 2023-05-22 17:10:44 +02:00
cmdutils.h fftools/cmdutils: constify the argument of get_rotation() 2023-05-22 17:10:44 +02:00
ffmpeg_dec.c fftools/ffmpeg: add more structure to FrameData 2023-07-15 11:02:11 +02:00
ffmpeg_demux.c fftools/ffmpeg_demux: return errors from ist_add() instead of aborting 2023-07-15 11:02:11 +02:00
ffmpeg_enc.c fftools/ffmpeg_enc: Reindentate after the last commit 2023-07-17 16:18:12 +02:00
ffmpeg_filter.c fftools/ffmpeg_filter: stop accessing encoder from pixfmt selection 2023-07-20 20:30:13 +02:00
ffmpeg_hw.c fftools/ffmpeg_hw: inline hwaccel_decode_init() into its caller 2023-06-19 09:48:55 +02:00
ffmpeg_mux_init.c fftools/ffmpeg_filter: move "smart" pixfmt selection to ffmpeg_mux_init 2023-07-20 20:30:04 +02:00
ffmpeg_mux.c fftools/ffmpeg_mux: return errors from of_streamcopy() instead of aborting 2023-07-15 11:02:11 +02:00
ffmpeg_mux.h fftools/ffmpeg_mux: make OutputStream.pkt private 2023-06-05 16:16:13 +02:00
ffmpeg_opt.c fftools/ffmpeg: return errors from assert_file_overwrite() instead of aborting 2023-07-15 11:02:11 +02:00
ffmpeg.c fftools/ffmpeg: add more structure to FrameData 2023-07-15 11:02:11 +02:00
ffmpeg.h fftools/ffmpeg: rework -enc_time_base handling 2023-07-15 11:02:11 +02:00
ffplay.c fftools/ffplay: fix typo in frame_queue_destory 2023-07-06 21:24:47 +02:00
ffprobe.c fftools/ffprobe: print exported stream AVOptions 2023-05-08 11:04:37 -03:00
fftools.manifest fftools: add DPI awareness manifest 2022-08-13 14:42:52 +02:00
fftoolsres.rc fftools: add DPI awareness manifest 2022-08-13 14:42:52 +02:00
fopen_utf8.h fftools/fopen_utf8: support long paths on Windows for fftools 2022-06-19 01:38:23 +03:00
Makefile fftools/ffmpeg: move opening decoders to a new file 2023-04-17 12:01:40 +02:00
objpool.c fftools/objpool: Don't use return with expression when returning void 2022-07-23 18:58:35 +02:00
objpool.h fftools: add an object pool 2022-07-23 11:53:19 +02:00
opt_common.c fftools/opt_common: stop printing deprecated AV_CODEC_CAP_SUBFRAMES 2023-05-15 10:24:54 +02:00
opt_common.h fftools/cmdutils: split common option handlers into their own file 2022-03-22 18:49:43 +01:00
sync_queue.c fftools/sync_queue: make sure non-limiting streams are not used as queue head 2023-05-28 10:47:59 +02:00
sync_queue.h fftools/sync_queue: add debug logging 2023-05-28 10:47:59 +02:00
thread_queue.c fftools: add a multistream thread-safe queue 2022-07-23 11:53:19 +02:00
thread_queue.h fftools: add a multistream thread-safe queue 2022-07-23 11:53:19 +02:00