History

avutil/imgutils: Add wrapper for av_image_copy() to avoid casts

av_image_copy() accepts const uint8_t* const * as source; lots of user have uint8_t* const * and therefore either cast (the majority) or copy the array of pointers. This commit changes this by adding a static inline wrapper for av_image_copy() that casts between the two types so that we do not need to add casts everywhere else.

Andreas Rheinhardt committed 3 years ago

Commit 423b6a71 parent 5094d1f22 files · +79 −68Browse files

Showing the changes to doc/APIchanges (1 of 22 files). Show all

Unified · Split

doc/APIchanges+4−0
@@ -2,6 +2,10 @@ The last version increases of all libraries were on 2023-02-09 · 1 unmodified line
22
33 API changes, most recent first:
44
5+2023-09-07 - xxxxxxxxxx - lavu 58.24.100 - imgutils.h
6+ Add av_image_copy2(), a wrapper around the av_image_copy()
7+ to overcome limitations of automatic conversions.
8+
59 2023-09-07 - xxxxxxxxxx - lavu 58.23.100 - fifo.h
610 Constify the AVFifo pointees in av_fifo_peek() and av_fifo_peek_to_cb().
711

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t