diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-11-17 14:26:36 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-11-17 14:26:36 +0000 |
commit | bacac99192b65faed1a0047a8be5b95abf15873d (patch) | |
tree | c1ca0949f9cb222c8ef6305d8150ca4d9e85b4a7 /src/libdivx4/xine_decoder.c | |
parent | 75a1024fb27dbff9c4bfc948392910af94797683 (diff) | |
download | xine-lib-bacac99192b65faed1a0047a8be5b95abf15873d.tar.gz xine-lib-bacac99192b65faed1a0047a8be5b95abf15873d.tar.bz2 |
Add 'xine_' prefix to all of xine-utils functions (what about cpu
acceleration?). Merge xine-utils header files to a new one "xineutils.h".
Update xine-lib C/headers to reflect those changes.
dxr3 headers are no more installed ine $includdir, but $includdir/xine.
CVS patchset: 1054
CVS date: 2001/11/17 14:26:36
Diffstat (limited to 'src/libdivx4/xine_decoder.c')
-rw-r--r-- | src/libdivx4/xine_decoder.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/libdivx4/xine_decoder.c b/src/libdivx4/xine_decoder.c index cbab42157..d772b7c33 100644 --- a/src/libdivx4/xine_decoder.c +++ b/src/libdivx4/xine_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.9 2001/11/13 21:47:58 heikos Exp $ + * $Id: xine_decoder.c,v 1.10 2001/11/17 14:26:38 f1rmb Exp $ * * xine decoder plugin using divx4 * @@ -50,11 +50,10 @@ #include <dlfcn.h> #include "xine_internal.h" -#include "cpu_accel.h" #include "video_out.h" #include "buffer.h" #include "metronom.h" -#include "memcpy.h" +#include "xineutils.h" #include "decore-if.h" @@ -209,12 +208,12 @@ static inline void divx4_copy_frame(divx4_decoder_t *this, vo_frame_t *img, src_offset = 0; dst_offset = 0; if (pict.stride_y == img->width) { - fast_memcpy(img->base[0]+dst_offset, pict.y, this->biWidth*this->biHeight); + xine_fast_memcpy(img->base[0]+dst_offset, pict.y, this->biWidth*this->biHeight); dst_offset += this->biWidth * this->biHeight; } else { /* copy line by line */ for (i=0; i<this->biHeight; i++) { - fast_memcpy(img->base[0]+dst_offset, pict.y+src_offset, this->biWidth); + xine_fast_memcpy(img->base[0]+dst_offset, pict.y+src_offset, this->biWidth); src_offset += pict.stride_y; dst_offset += this->biWidth; } @@ -228,14 +227,14 @@ static inline void divx4_copy_frame(divx4_decoder_t *this, vo_frame_t *img, src_offset = 0; dst_offset = 0; if (pict.stride_uv == img->width>>1) { - fast_memcpy(img->base[1]+dst_offset, pict.u, (this->biWidth*this->biHeight)/4); - fast_memcpy(img->base[2]+dst_offset, pict.v, (this->biWidth*this->biHeight)/4); + xine_fast_memcpy(img->base[1]+dst_offset, pict.u, (this->biWidth*this->biHeight)/4); + xine_fast_memcpy(img->base[2]+dst_offset, pict.v, (this->biWidth*this->biHeight)/4); dst_offset += (this->biWidth*this->biHeight)/4; } else { for (i=0; i<this->biHeight>>1; i++) { - fast_memcpy(img->base[1]+dst_offset, pict.u+src_offset, this->biWidth/2); - fast_memcpy(img->base[2]+dst_offset, pict.v+src_offset, this->biWidth/2); + xine_fast_memcpy(img->base[1]+dst_offset, pict.u+src_offset, this->biWidth/2); + xine_fast_memcpy(img->base[2]+dst_offset, pict.v+src_offset, this->biWidth/2); src_offset += pict.stride_uv; dst_offset += this->biWidth/2; } @@ -300,7 +299,7 @@ static void divx4_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { if (! this->decoder_ok) /* don't try to do anything */ return; - fast_memcpy (&this->buf[this->size], buf->content, buf->size); + xine_fast_memcpy (&this->buf[this->size], buf->content, buf->size); this->size += buf->size; if (buf->decoder_info[0] == 2) { /* need to decode a frame */ |