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
.gitignore
Makefile
alldevices.c
alsa.c
alsa.h
alsa_dec.c
alsa_enc.c
android_camera.c
audiotoolbox.m
avdevice.c
avdevice.h
avdeviceres.rc
avfoundation.m
bktr.c
caca.c
decklink_common.cpp
decklink_common.h
decklink_common_c.h
decklink_dec.cpp
decklink_dec.h
decklink_dec_c.c
decklink_enc.cpp
decklink_enc.h
decklink_enc_c.c
dshow.c
dshow_capture.h
dshow_common.c
dshow_crossbar.c
dshow_enummediatypes.c
dshow_enumpins.c
dshow_filter.c
dshow_pin.c
fbdev_common.c
fbdev_common.h
fbdev_dec.c
fbdev_enc.c
file_open.c
gdigrab.c
iec61883.c
internal.h
jack.c
kmsgrab.c
lavfi.c
libavdevice.v
libcdio.c
libdc1394.c
openal-dec.c
opengl_enc.c
opengl_enc_shaders.h
oss.c
oss.h
oss_dec.c
oss_enc.c
pulse_audio_common.c
pulse_audio_common.h
pulse_audio_dec.c
pulse_audio_enc.c
reverse.c
sdl2.c
sndio.c
sndio.h
sndio_dec.c
sndio_enc.c
timefilter.c
timefilter.h
utils.c
v4l2-common.c
v4l2-common.h
v4l2.c
v4l2enc.c
version.c
version.h
version_major.h
vfwcap.c
xcbgrab.c
xv.c