Mercurial > mplayer.hg
comparison libmpcodecs/native/nuppelvideo.c @ 23457:a124f3abc1ec
Replace implicit use of fast_memcpy via macro by explicit use to allow
for future optimization.
author | reimar |
---|---|
date | Tue, 05 Jun 2007 14:27:54 +0000 |
parents | fc27312ae599 |
children | 1318e956c092 |
comparison
equal
deleted
inserted
replaced
23456:1582297cc3d2 | 23457:a124f3abc1ec |
---|---|
65 #endif | 65 #endif |
66 | 66 |
67 switch(encodedh->comptype) | 67 switch(encodedh->comptype) |
68 { | 68 { |
69 case '0': /* raw YUV420 */ | 69 case '0': /* raw YUV420 */ |
70 memcpy(decoded, encoded + 12, out_len); | 70 fast_memcpy(decoded, encoded + 12, out_len); |
71 break; | 71 break; |
72 case '1': /* RTJpeg */ | 72 case '1': /* RTJpeg */ |
73 RTjpeg_decompressYUV420 ( ( __s8 * ) encoded + 12, decoded ); | 73 RTjpeg_decompressYUV420 ( ( __s8 * ) encoded + 12, decoded ); |
74 break; | 74 break; |
75 case '2': /* RTJpeg with LZO */ | 75 case '2': /* RTJpeg with LZO */ |
100 memset ( decoded, 0, width * height ); | 100 memset ( decoded, 0, width * height ); |
101 memset ( decoded + width * height, 127, width * height / 2); | 101 memset ( decoded + width * height, 127, width * height / 2); |
102 break; | 102 break; |
103 case 'L': /* copy last frame */ | 103 case 'L': /* copy last frame */ |
104 #ifdef KEEP_BUFFER | 104 #ifdef KEEP_BUFFER |
105 memcpy ( decoded, previous_buffer, width*height*3/2); | 105 fast_memcpy ( decoded, previous_buffer, width*height*3/2); |
106 #endif | 106 #endif |
107 break; | 107 break; |
108 } | 108 } |
109 | 109 |
110 #ifdef KEEP_BUFFER | 110 #ifdef KEEP_BUFFER |
111 memcpy(previous_buffer, decoded, width*height*3/2); | 111 fast_memcpy(previous_buffer, decoded, width*height*3/2); |
112 #endif | 112 #endif |
113 break; | 113 break; |
114 } | 114 } |
115 default: | 115 default: |
116 mp_msg(MSGT_DECVIDEO, MSGL_V, "Nuppelvideo: unknwon frametype: %c\n", | 116 mp_msg(MSGT_DECVIDEO, MSGL_V, "Nuppelvideo: unknwon frametype: %c\n", |