mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-28 15:19:38 +03:00
Test av_frame_side_data_desc and av_frame_side_data_name on valid and invalid types, av_frame_side_data_get and its _c variant for present and absent types, av_frame_side_data_remove (including MULTI types with duplicates), av_frame_side_data_remove_by_props filtering by AV_SIDE_DATA_PROP_*, av_frame_side_data_clone with and without AV_FRAME_SIDE_DATA_FLAG_REPLACE (including the AVERROR(EEXIST) and AVERROR(EINVAL) paths) and with AV_FRAME_SIDE_DATA_FLAG_UNIQUE, av_frame_side_data_add in move mode, with AV_FRAME_SIDE_DATA_FLAG_NEW_REF and with AV_FRAME_SIDE_DATA_FLAG_REPLACE over an existing entry, and av_frame_side_data_free. Coverage for libavutil/side_data.c: 72.14% -> 86.43% Numbers measured against a full FATE run. Remaining uncovered lines are internal allocation-failure error paths requiring injected failures mid-operation. Signed-off-by: marcos ashton <marcosashiglesias@gmail.com>
61 lines
1.9 KiB
Plaintext
61 lines
1.9 KiB
Plaintext
Testing av_frame_side_data_desc() / av_frame_side_data_name()
|
|
type=2 name_match=yes props=0x1
|
|
type=17 name_match=yes props=0x8
|
|
type=13 name_match=yes props=0x5
|
|
type=4 name_match=yes props=0x10
|
|
type=20 name_match=yes props=0x2
|
|
invalid type desc=null name=null
|
|
|
|
Initial set: n=5
|
|
[0] Stereo 3D marker=100
|
|
[1] Metadata relevant to a downmix procedure marker=200
|
|
[2] H.26[45] User Data Unregistered SEI message marker=1
|
|
[3] H.26[45] User Data Unregistered SEI message marker=2
|
|
[4] Spherical Mapping marker=300
|
|
|
|
Testing av_frame_side_data_get()
|
|
stereo3d: found marker=100 payload_match=yes
|
|
mastering (absent): null
|
|
|
|
Testing av_frame_side_data_remove()
|
|
after remove SEI_UNREGISTERED: n=3
|
|
Stereo 3D: marker=100
|
|
Metadata relevant to a downmix procedure: marker=200
|
|
H.26[45] User Data Unregistered SEI message: absent
|
|
Spherical Mapping: marker=300
|
|
3x3 displaymatrix: absent
|
|
Motion vectors: absent
|
|
|
|
Testing av_frame_side_data_remove_by_props()
|
|
after remove_by_props(GLOBAL): n=1
|
|
Stereo 3D: absent
|
|
Metadata relevant to a downmix procedure: marker=200
|
|
H.26[45] User Data Unregistered SEI message: absent
|
|
Spherical Mapping: absent
|
|
3x3 displaymatrix: absent
|
|
Motion vectors: absent
|
|
|
|
Testing av_frame_side_data_clone()
|
|
clone into empty: ret=0 nb=1 marker=200
|
|
clone duplicate no REPLACE: ret==AVERROR(EEXIST)=yes
|
|
clone REPLACE: ret=0 nb=1
|
|
clone NULL sd: ret==AVERROR(EINVAL)=yes
|
|
|
|
Testing av_frame_side_data_add()
|
|
add (move): added=yes pbuf_nulled=yes
|
|
add (NEW_REF): added=yes caller_ref_kept=yes nb_mvs=2
|
|
add (REPLACE existing): added=yes marker=1234 payload_match=yes
|
|
|
|
Testing av_frame_side_data_clone() UNIQUE
|
|
clone UNIQUE: ret=0 before=3 after=3
|
|
|
|
Final dst: n=3
|
|
Stereo 3D: absent
|
|
Metadata relevant to a downmix procedure: marker=200
|
|
H.26[45] User Data Unregistered SEI message: absent
|
|
Spherical Mapping: absent
|
|
3x3 displaymatrix: marker=1234
|
|
Motion vectors: marker=42
|
|
|
|
free: set_nb=0 dst_nb=0
|