mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
9b47495dee
Test av_tdrdi_alloc with 1 and 3 displays, and the inline av_tdrdi_get_display accessor. Verifies that the returned pointer matches entries_offset + idx * entry_size, tests write/read-back of display width exponent/mantissa and view ID fields, and OOM paths via av_max_alloc. Coverage for libavutil/tdrdi.c: 0.00% -> 100.00%
15 lines
295 B
Plaintext
15 lines
295 B
Plaintext
Testing av_tdrdi_alloc()
|
|
alloc 1: size>0=yes, num_ref_displays=1
|
|
display 0: width_exp=3 width_man=100 left=0 right=1
|
|
|
|
Testing multiple displays
|
|
alloc 3: num_ref_displays=3
|
|
display 0: width_exp=1
|
|
display 1: width_exp=2
|
|
display 2: width_exp=3
|
|
|
|
alloc (no size): OK
|
|
|
|
Testing OOM paths
|
|
alloc OOM: OK
|