projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5517dc
)
unroll tiny and trivial loop. Same speed but clearer.
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 25 Feb 2010 12:51:32 +0000
(12:51 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 25 Feb 2010 12:51:32 +0000
(12:51 +0000)
Originally committed as revision 22051 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264.h
patch
|
blob
|
history
diff --git
a/libavcodec/h264.h
b/libavcodec/h264.h
index
6f61c8a
..
f443554
100644
(file)
--- a/
libavcodec/h264.h
+++ b/
libavcodec/h264.h
@@
-1430,9
+1430,9
@@
static inline void write_back_motion(H264Context *h, int mb_type){
AV_ZERO128(mvd_dst);
else{
AV_COPY64(mvd_dst, mvd_src + 8*3);
- for(y=0; y<3; y++){
- AV_COPY16(mvd_dst + 3 +
3 - y, mvd_src + 3 + 8*y
);
- }
+ AV_COPY16(mvd_dst + 3 + 3, mvd_src + 3 + 8*0);
+ AV_COPY16(mvd_dst + 3 +
2, mvd_src + 3 + 8*1
);
+ AV_COPY16(mvd_dst + 3 + 1, mvd_src + 3 + 8*2);
}
}