History

avutil/intreadwrite: add missing aligned read/write macros

James Almer committed 2 years ago

Commit 753f2ae1 parent 7b24f963 files · +43 −1Browse files

Unified · Split

3 files
  1. doc/APIchanges +3 −0
  2. libavutil/intreadwrite.h +39 −0
  3. 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
2 2
3API changes, most recent first:3API changes, most recent first:
4 4
52024-07-29 - xxxxxxxxx - lavu 59.31.100 - intreadwrite.h
6 Add AV_{R,W}{L,B}{16,32}A and AV_{R,W}B64A.
7
52024-07-28 - xxxxxxxxxx - lavu 59.30.100 - dovi_meta.h82024-07-28 - xxxxxxxxxx - lavu 59.30.100 - dovi_meta.h
6 Add AVDOVIDecoderConfigurationRecord.dv_md_compression.9 Add AVDOVIDecoderConfigurationRecord.dv_md_compression.
7 10
libavutil/intreadwrite.h+39−0
@@ -539,9 +539,41 @@ union unaligned_16 { uint16_t l; } __attribute__((packed)) av_alias; · 538 unmodified lines
539#if AV_HAVE_BIGENDIAN539#if AV_HAVE_BIGENDIAN
540# define AV_RLA(s, p) av_bswap##s(AV_RN##s##A(p))540# define AV_RLA(s, p) av_bswap##s(AV_RN##s##A(p))
541# define AV_WLA(s, p, v) AV_WN##s##A(p, av_bswap##s(v))541# define AV_WLA(s, p, v) AV_WN##s##A(p, av_bswap##s(v))
542# define AV_RBA(s, p) AV_RN##s##A(p)
543# define AV_WBA(s, p, v) AV_WN##s##A(p, v)
542#else544#else
543# define AV_RLA(s, p) AV_RN##s##A(p)545# define AV_RLA(s, p) AV_RN##s##A(p)
544# define AV_WLA(s, p, v) AV_WN##s##A(p, v)546# define AV_WLA(s, p, v) AV_WN##s##A(p, v)
547# define AV_RBA(s, p) av_bswap##s(AV_RN##s##A(p))
548# define AV_WBA(s, p, v) AV_WN##s##A(p, av_bswap##s(v))
549#endif
550
551#ifndef AV_RL16A
552# define AV_RL16A(p) AV_RLA(16, p)
553#endif
554#ifndef AV_WL16A
555# define AV_WL16A(p, v) AV_WLA(16, p, v)
556#endif
557
558#ifndef AV_RB16A
559# define AV_RB16A(p) AV_RBA(16, p)
560#endif
561#ifndef AV_WB16A
562# define AV_WB16A(p, v) AV_WBA(16, p, v)
563#endif
564
565#ifndef AV_RL32A
566# define AV_RL32A(p) AV_RLA(32, p)
567#endif
568#ifndef AV_WL32A
569# define AV_WL32A(p, v) AV_WLA(32, p, v)
570#endif
571
572#ifndef AV_RB32A
573# define AV_RB32A(p) AV_RBA(32, p)
574#endif
575#ifndef AV_WB32A
576# define AV_WB32A(p, v) AV_WBA(32, p, v)
545#endif577#endif
546 578
547#ifndef AV_RL64A579#ifndef AV_RL64A
@@ -551,6 +583,13 @@ union unaligned_16 { uint16_t l; } __attribute__((packed)) av_alias; · 3 unmodified lines
551# define AV_WL64A(p, v) AV_WLA(64, p, v)583# define AV_WL64A(p, v) AV_WLA(64, p, v)
552#endif584#endif
553 585
586#ifndef AV_RB64A
587# define AV_RB64A(p) AV_RBA(64, p)
588#endif
589#ifndef AV_WB64A
590# define AV_WB64A(p, v) AV_WBA(64, p, v)
591#endif
592
554/*593/*
555 * The AV_COPYxxU macros are suitable for copying data to/from unaligned594 * The AV_COPYxxU macros are suitable for copying data to/from unaligned
556 * memory locations.595 * memory locations.
libavutil/version.h+1−1
@@ -79,7 +79,7 @@ · 78 unmodified lines
79 */79 */
80 80
81#define LIBAVUTIL_VERSION_MAJOR 5981#define LIBAVUTIL_VERSION_MAJOR 59
82#define LIBAVUTIL_VERSION_MINOR 3082#define LIBAVUTIL_VERSION_MINOR 31
83#define LIBAVUTIL_VERSION_MICRO 10083#define LIBAVUTIL_VERSION_MICRO 100
84 84
85#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \85#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