History

avutil/frame: add a side data prop to signal channel layout dependent types

James Almer committed 1 year ago

Commit ea3c3b41 parent 0bed1b84 files · +13 −3Browse files

Unified · Split

4 files
  1. doc/APIchanges +3 −0
  2. libavutil/frame.c +2 −2
  3. libavutil/frame.h +7 −0
  4. libavutil/version.h +1 −1
doc/APIchanges+3−0
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2024-03-07 · 1 unmodified line
22
33 API changes, most recent first:
44
5+2025-01-25 - xxxxxxxxxx - lavu 59.56.100 - frame.h
6+ Add AV_SIDE_DATA_PROP_CHANNEL_DEPENDENT.
7+
58 2025-01-25 - xxxxxxxxxx - lavfi 10.9.100 - buffersink.h
69 Add av_buffersink_get_side_data().
710
libavutil/frame.c+2−2
@@ -31,8 +31,8 @@ · 30 unmodified lines
3131 static const AVSideDataDescriptor sd_props[] = {
3232 [AV_FRAME_DATA_PANSCAN] = { "AVPanScan", AV_SIDE_DATA_PROP_SIZE_DEPENDENT },
3333 [AV_FRAME_DATA_A53_CC] = { "ATSC A53 Part 4 Closed Captions" },
34− [AV_FRAME_DATA_MATRIXENCODING] = { "AVMatrixEncoding" },
35− [AV_FRAME_DATA_DOWNMIX_INFO] = { "Metadata relevant to a downmix procedure" },
34+ [AV_FRAME_DATA_MATRIXENCODING] = { "AVMatrixEncoding", AV_SIDE_DATA_PROP_CHANNEL_DEPENDENT },
35+ [AV_FRAME_DATA_DOWNMIX_INFO] = { "Metadata relevant to a downmix procedure", AV_SIDE_DATA_PROP_CHANNEL_DEPENDENT },
3636 [AV_FRAME_DATA_AFD] = { "Active format description" },
3737 [AV_FRAME_DATA_MOTION_VECTORS] = { "Motion vectors", AV_SIDE_DATA_PROP_SIZE_DEPENDENT },
3838 [AV_FRAME_DATA_SKIP_SAMPLES] = { "Skip samples" },
libavutil/frame.h+7−0
@@ -297,6 +297,13 @@ enum AVSideDataProps { · 296 unmodified lines
297297 * adapting to a different set of primaries or transfer characteristics.
298298 */
299299 AV_SIDE_DATA_PROP_COLOR_DEPENDENT = (1 << 3),
300+
301+ /**
302+ * Side data depends on the channel layout. Side data with this property
303+ * loses its meaning when downmixing or upmixing, unless either recomputed
304+ * or adjusted to the new layout.
305+ */
306+ AV_SIDE_DATA_PROP_CHANNEL_DEPENDENT = (1 << 4),
300307 };
301308
302309 /**
libavutil/version.h+1−1
@@ -79,7 +79,7 @@ · 78 unmodified lines
7979 */
8080
8181 #define LIBAVUTIL_VERSION_MAJOR 59
82−#define LIBAVUTIL_VERSION_MINOR 55
82+#define LIBAVUTIL_VERSION_MINOR 56
8383 #define LIBAVUTIL_VERSION_MICRO 100
8484
8585 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \

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