1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00
FFmpeg/libavdevice
Anton Khirnov 27f8c9b27b lavu/frame: deprecate AVFrame.pkt_{pos,size}
These fields are supposed to store information about the packet the
frame was decoded from, specifically the byte offset it was stored at
and its size.

However,
- the fields are highly ad-hoc - there is no strong reason why
  specifically those (and not any other) packet properties should have a
  dedicated field in AVFrame; unlike e.g. the timestamps, there is no
  fundamental link between coded packet offset/size and decoded frames
- they only make sense for frames produced by decoding demuxed packets,
  and even then it is not always the case that the encoded data was
  stored in the file as a contiguous sequence of bytes (in order for pos
  to be well-defined)
- pkt_pos was added without much explanation, apparently to allow
  passthrough of this information through lavfi in order to handle byte
  seeking in ffplay. That is now implemented using arbitrary user data
  passthrough in AVFrame.opaque_ref.
- several filters use pkt_pos as a variable available to user-supplied
  expressions, but there seems to be no established motivation for using them.
- pkt_size was added for use in ffprobe, but that too is now handled
  without using this field. Additonally, the values of this field
  produced by libavcodec are flawed, as described in the previous
  ffprobe conversion commit.

In summary - these fields are ill-defined and insufficiently motivated,
so deprecate them.
2023-03-20 10:42:09 +01:00
..
tests Merge commit '93fed46a92bab8be176d3e67be4354189a8dbe7f' 2017-03-19 16:08:27 +01:00
.gitignore lavfi,lavd: add gitignore for generated static component lists 2018-04-05 22:08:53 +01:00
alldevices.c avformat/avformat: Move AVOutputFormat internals out of public header 2023-02-09 15:24:15 +01:00
alsa_dec.c alsa: convert to new channel layout API 2022-03-15 09:42:30 -03:00
alsa_enc.c avformat/avformat: Move AVOutputFormat internals out of public header 2023-02-09 15:24:15 +01:00
alsa.c configure: Use a separate config_components.h header for $ALL_COMPONENTS 2022-03-16 14:12:49 +02:00
alsa.h avdevice/alsa_dec: make sure we have enough data in non-blocking mode 2021-03-12 23:55:30 +01:00
android_camera.c libavcodec, libavdevice: Remove unnecessary includes of version.h 2022-02-24 22:36:15 +02:00
audiotoolbox.m avformat/avformat: Move AVOutputFormat internals out of public header 2023-02-09 15:24:15 +01:00
avdevice.c avdevice: remove FF_API_DEVICE_CAPABILITIES 2023-02-09 15:35:14 +01:00
avdevice.h avdevice: remove FF_API_DEVICE_CAPABILITIES 2023-02-09 15:35:14 +01:00
avdeviceres.rc
avfoundation.m avdevice/avfoundation: convert to new channel layout-API 2022-11-08 14:08:05 -03:00
bktr.c avutil/internal: Move avpriv-file API to a header of its own 2022-09-03 15:41:44 +02:00
caca.c avformat/avformat: Move AVOutputFormat internals out of public header 2023-02-09 15:24:15 +01:00
decklink_common_c.h avdevice/decklink_(common_c|dec|enc).h: Fix checkheaders 2022-02-21 13:09:48 +01:00
decklink_common.cpp avdevice/decklink: support for more duplex mode for Decklink 8K Pro 2021-08-16 10:00:39 +08:00
decklink_common.h avdevice/decklink_enc: don't take for granted that first frame to decklink output will be PTS 0 2023-03-08 23:53:15 +01:00
decklink_dec_c.c avdevice/decklink: support for more duplex mode for Decklink 8K Pro 2021-08-16 10:00:39 +08:00
decklink_dec.cpp decklink: convert to new channel layout API 2022-03-15 09:42:31 -03:00
decklink_dec.h avdevice/decklink_(common_c|dec|enc).h: Fix checkheaders 2022-02-21 13:09:48 +01:00
decklink_enc_c.c avformat/avformat: Move AVOutputFormat internals out of public header 2023-02-09 15:24:15 +01:00
decklink_enc.cpp avdevice/decklink_enc: fix unused variable compiler warnings 2023-03-08 23:53:26 +01:00
decklink_enc.h avdevice/decklink_(common_c|dec|enc).h: Fix checkheaders 2022-02-21 13:09:48 +01:00
dshow_capture.h avcodec/packet_internal: Add proper PacketList struct 2022-01-04 13:16:50 +01:00
dshow_common.c
dshow_crossbar.c avdevice/dshow: tv_tuner_audio_dialog cleanup missing 2022-01-04 17:40:29 +05:30
dshow_enummediatypes.c avdevice/dshow: fix crash on x86 2022-01-04 17:40:54 +05:30
dshow_enumpins.c avdevice/dshow: fix crash on x86 2022-01-04 17:40:54 +05:30
dshow_filter.c avdevice/dshow: fix crash on x86 2022-01-04 17:40:54 +05:30
dshow_pin.c avdevice/dshow: fix crash on x86 2022-01-04 17:40:54 +05:30
dshow.c avdevice/dshow: reuse unused variables. 2022-05-12 22:06:44 -03:00
fbdev_common.c avutil/internal: Move avpriv-file API to a header of its own 2022-09-03 15:41:44 +02:00
fbdev_common.h
fbdev_dec.c avutil/internal: Move avpriv-file API to a header of its own 2022-09-03 15:41:44 +02:00
fbdev_enc.c avformat/avformat: Move AVOutputFormat internals out of public header 2023-02-09 15:24:15 +01:00
file_open.c
gdigrab.c avdevice: Constify all devices 2021-04-27 11:48:05 -03:00
iec61883.c configure: Use a separate config_components.h header for $ALL_COMPONENTS 2022-03-16 14:12:49 +02:00
internal.h avformat: Constify the API wrt AV(In|Out)putFormat 2021-04-27 10:43:08 -03:00
jack.c avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
kmsgrab.c avdevice: Constify all devices 2021-04-27 11:48:05 -03:00
lavfi.c lavu/frame: deprecate AVFrame.pkt_{pos,size} 2023-03-20 10:42:09 +01:00
libavdevice.v Merge commit '535a742c2695a9e0c586b50d7fa76e318232ff24' 2016-06-27 17:56:47 +02:00
libcdio.c avformat/demux: Add new demux.h header 2022-05-10 07:37:38 +02:00
libdc1394.c avdevice: Constify all devices 2021-04-27 11:48:05 -03:00
Makefile configure: always enable gnu_windres if available 2022-08-13 14:42:36 +02:00
openal-dec.c openal: convert to new channel layout API 2022-03-15 09:42:35 -03:00
opengl_enc_shaders.h all: Make header guard names consistent 2016-01-31 15:44:11 -08:00
opengl_enc.c avformat/avformat: Move AVOutputFormat internals out of public header 2023-02-09 15:24:15 +01:00
oss_dec.c avdevice/oss_dec: account for sample size when computing timestamp 2022-06-19 23:01:20 +02:00
oss_enc.c avformat/avformat: Move AVOutputFormat internals out of public header 2023-02-09 15:24:15 +01:00
oss.c avutil/internal: Move avpriv-file API to a header of its own 2022-09-03 15:41:44 +02:00
oss.h avdevice/oss_dec: account for sample size when computing timestamp 2022-06-19 23:01:20 +02:00
pulse_audio_common.c avdevice/pulse_audio_common: Use av_freep(), avoid leaving stale pointers 2014-11-21 18:02:01 +01:00
pulse_audio_common.h avdevice/pulse_audio_common: add av_warn_unused_result 2015-10-22 19:03:50 -04:00
pulse_audio_dec.c avdevice/pulse_audio_dec: deprecate frame_size option 2022-06-16 21:28:20 +02:00
pulse_audio_enc.c avformat/avformat: Move AVOutputFormat internals out of public header 2023-02-09 15:24:15 +01:00
reverse.c avdevice: make ff_reverse available on shared builds 2017-07-20 00:33:29 -03:00
sdl2.c avformat/avformat: Move AVOutputFormat internals out of public header 2023-02-09 15:24:15 +01:00
sndio_dec.c sndio: convert to new channel layout API 2022-03-15 09:42:37 -03:00
sndio_enc.c avformat/avformat: Move AVOutputFormat internals out of public header 2023-02-09 15:24:15 +01:00
sndio.c Merge commit '8d26c193fb42d08602ac93ece039d4718d029adc' 2015-04-09 21:36:42 +02:00
sndio.h Merge commit '8d26c193fb42d08602ac93ece039d4718d029adc' 2015-04-09 21:36:42 +02:00
timefilter.c Remove unnecessary libavutil/(avutil|common|internal).h inclusions 2022-02-24 12:56:49 +01:00
timefilter.h avdevice/timefilter: remove obsolete comments from the docs 2021-02-27 21:30:41 +01:00
utils.c avformat: Constify the API wrt AV(In|Out)putFormat 2021-04-27 10:43:08 -03:00
v4l2-common.c lavd/v4l2-common: Add an entry for Z16. 2019-03-22 12:30:47 +01:00
v4l2-common.h avdevice/v4l2*: Improve included headers 2022-05-10 07:38:01 +02:00
v4l2.c avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
v4l2enc.c avformat/avformat: Move AVOutputFormat internals out of public header 2023-02-09 15:24:15 +01:00
version_major.h Bump major versions of all libraries 2023-02-09 15:35:14 +01:00
version.c lib*/version: Move library version functions into files of their own 2022-05-10 06:49:32 +02:00
version.h version.h: Bump minor post 6.0 branch 2023-02-19 18:37:36 +01:00
vfwcap.c avcodec/packet_internal: Add proper PacketList struct 2022-01-04 13:16:50 +01:00
xcbgrab.c av(codec|device): Don't cast pointers to int 2021-11-21 00:35:30 +01:00
xv.c avformat/avformat: Move AVOutputFormat internals out of public header 2023-02-09 15:24:15 +01:00