OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caaf098
)
Add a macro to pack 4 bytes into native byte-order so they can be written
author
Ronald S. Bultje
<rsbultje@gmail.com>
Tue, 22 Jun 2010 19:15:27 +0000
(19:15 +0000)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Tue, 22 Jun 2010 19:15:27 +0000
(19:15 +0000)
at once using a single 32-bit store.
Originally committed as revision 23715 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mathops.h
patch
|
blob
|
history
diff --git
a/libavcodec/mathops.h
b/libavcodec/mathops.h
index
df692fd
..
917112b
100644
(file)
--- a/
libavcodec/mathops.h
+++ b/
libavcodec/mathops.h
@@
-146,5
+146,13
@@
if ((y) < (x)) {\
# define NEG_USR32(a,s) (((uint32_t)(a))>>(32-(s)))
#endif
+#ifndef PACK4x8
+# if HAVE_BIGENDIAN
+# define PACK4x8(a,b,c,d) (((a) << 24) | ((b) << 16) | ((c) << 8) | (d))
+# else
+# define PACK4x8(a,b,c,d) (((d) << 24) | ((c) << 16) | ((b) << 8) | (a))
+# endif
+#endif
+
#endif /* AVCODEC_MATHOPS_H */