diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-23 11:54:55 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-23 11:54:55 +0000 |
commit | 3ac8704a9fa08c91f86982210430cafbc1e091d4 (patch) | |
tree | 4db653fcdbbbac96a38f3ea064dd8416c8737a52 /dec_video.c | |
parent | 79b24caa2239affc6fb967de6a456dfb0afd04d4 (diff) | |
download | mpv-3ac8704a9fa08c91f86982210430cafbc1e091d4.tar.bz2 mpv-3ac8704a9fa08c91f86982210430cafbc1e091d4.tar.xz |
shmem_alloc->memalign
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1654 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'dec_video.c')
-rw-r--r-- | dec_video.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dec_video.c b/dec_video.c index f22235990b..ebbbc8b09b 100644 --- a/dec_video.c +++ b/dec_video.c @@ -202,7 +202,7 @@ switch(sh_video->codec->driver){ DS_VideoDecoder_SetDestFmt(out_fmt&255,0); // RGB/BGR } - sh_video->our_out_buffer = shmem_alloc(sh_video->disp_w*sh_video->disp_h*bpp/8); // FIXME!!! + sh_video->our_out_buffer = memalign(64,sh_video->disp_w*sh_video->disp_h*bpp/8); // FIXME!!! DS_VideoDecoder_Start(); @@ -268,7 +268,7 @@ switch(sh_video->codec->driver){ decore(0x123, DEC_OPT_INIT, &dec_param, NULL); dec_set.postproc_level = divx_quality; decore(0x123, DEC_OPT_SETPP, &dec_set, NULL); - sh_video->our_out_buffer = shmem_alloc(((bits*dec_param.x_dim+7)/8)*dec_param.y_dim); + sh_video->our_out_buffer = memalign(64,((bits*dec_param.x_dim+7)/8)*dec_param.y_dim); // sh_video->our_out_buffer = shmem_alloc(dec_param.x_dim*dec_param.y_dim*5); } mp_msg(MSGT_DECVIDEO,MSGL_V,"INFO: OpenDivX video codec init OK!\n"); @@ -444,7 +444,7 @@ if(verbose>1){ int y; // temporary hack - FIXME if(!sh_video->our_out_buffer) - sh_video->our_out_buffer = shmem_alloc(sh_video->disp_w*sh_video->disp_h*2); + sh_video->our_out_buffer = memalign(64,sh_video->disp_w*sh_video->disp_h*2); for(y=0;y<sh_video->disp_h;y++){ unsigned char *s0=lavc_picture.data[0]+lavc_picture.linesize[0]*y; unsigned char *s1=lavc_picture.data[1]+lavc_picture.linesize[1]*y; @@ -582,7 +582,7 @@ switch(d_video->demuxer->file_format){ // sh_video=d_video->sh;sh_video->ds=d_video; mpeg2_init(); // ========= Read & process sequence header & extension ============ - videobuffer=shmem_alloc(VIDEOBUFFER_SIZE); + videobuffer=memalign(8,VIDEOBUFFER_SIZE); if(!videobuffer){ mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Cannot allocate shared memory\n"); return 0; |