diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-02-09 00:08:08 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-02-09 00:08:08 +0000 |
commit | 6a6b92335430e700c8befe109dc9dffb35e5e9b3 (patch) | |
tree | acd044978ed10ddaf4f7fd5464b7d84110d578d8 /libmpcodecs | |
parent | 85387898fa9da6c439b083b3dc47a1686017c219 (diff) | |
download | mpv-6a6b92335430e700c8befe109dc9dffb35e5e9b3.tar.bz2 mpv-6a6b92335430e700c8befe109dc9dffb35e5e9b3.tar.xz |
removed obsolete unused cyuv.c
noticed by Mike Melanson <melanson@pcisys.net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9356 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/Makefile | 2 | ||||
-rw-r--r-- | libmpcodecs/native/cyuv.c | 84 |
2 files changed, 1 insertions, 85 deletions
diff --git a/libmpcodecs/Makefile b/libmpcodecs/Makefile index 21b01a8c23..3a5339c7ec 100644 --- a/libmpcodecs/Makefile +++ b/libmpcodecs/Makefile @@ -17,7 +17,7 @@ VIDEO_SRCS=dec_video.c vd.c $(VIDEO_SRCS_NAT) $(VIDEO_SRCS_LIB) $(VIDEO_SRCS_OPT VFILTER_SRCS=vf.c vf_vo.c vf_crop.c vf_expand.c vf_pp.c vf_scale.c vf_format.c vf_yuy2.c vf_flip.c vf_rgb2bgr.c vf_rotate.c vf_mirror.c vf_palette.c vf_lavc.c vf_dvbscale.c vf_cropdetect.c vf_test.c vf_noise.c vf_yvu9.c vf_rectangle.c vf_lavcdeint.c vf_eq.c vf_eq2.c vf_halfpack.c vf_dint.c vf_1bpp.c vf_bmovl.c vf_2xsai.c vf_unsharp.c vf_swapuv.c vf_il.c vf_boxblur.c vf_sab.c vf_smartblur.c vf_perspective.c vf_field.c vf_denoise3d.c ENCODER_SRCS=ve.c ve_divx4.c ve_lavc.c ve_vfw.c ve_rawrgb.c ve_libdv.c ve_xvid.c ve_qtvideo.c -NATIVE_SRCS=native/RTjpegN.c native/cinepak.c native/cyuv.c native/fli.c native/minilzo.c native/msvidc.c native/nuppelvideo.c native/qtrle.c native/qtrpza.c native/qtsmc.c native/roqav.c native/xa_gsm.c native/svq1.c +NATIVE_SRCS=native/RTjpegN.c native/cinepak.c native/fli.c native/minilzo.c native/msvidc.c native/nuppelvideo.c native/qtrle.c native/qtrpza.c native/qtsmc.c native/roqav.c native/xa_gsm.c native/svq1.c ifeq ($(FAME),yes) VFILTER_SRCS += vf_fame.c diff --git a/libmpcodecs/native/cyuv.c b/libmpcodecs/native/cyuv.c deleted file mode 100644 index d4bfc7d60b..0000000000 --- a/libmpcodecs/native/cyuv.c +++ /dev/null @@ -1,84 +0,0 @@ -/* ------------------------------------------------------------------------ - * Creative YUV Video Decoder - * - * Dr. Tim Ferguson, 2001. - * For more details on the algorithm: - * http://www.csse.monash.edu.au/~timf/videocodec.html - * - * This is a very simple predictive coder. A video frame is coded in YUV411 - * format. The first pixel of each scanline is coded using the upper four - * bits of its absolute value. Subsequent pixels for the scanline are coded - * using the difference between the last pixel and the current pixel (DPCM). - * The DPCM values are coded using a 16 entry table found at the start of the - * frame. Thus four bits per component are used and are as follows: - * UY VY YY UY VY YY UY VY... - * This code assumes the frame width will be a multiple of four pixels. This - * should probably be fixed. - * ------------------------------------------------------------------------ */ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <sys/types.h> -#include <unistd.h> - -#include "img_format.h" - -/* ------------------------------------------------------------------------ - * This function decodes a buffer containing a CYUV encoded frame. - * - * buf - the input buffer to be decoded - * size - the size of the input buffer - * frame - the output frame buffer (UYVY format) - * width - the width of the output frame - * height - the height of the output frame - * format - the requested output format - */ -void decode_cyuv(unsigned char *buf, int size, unsigned char *frame, int width, int height, int format) -{ -unsigned int i, xpos, ypos; -unsigned char *delta_y_tbl, *delta_c_tbl, *ptr; - - delta_y_tbl = buf + 16; - delta_c_tbl = buf + 32; - ptr = buf + (16 * 3); - - for(ypos = 0; ypos < height; ypos++) - for(xpos = 0; xpos < width; xpos += 2){ - unsigned char cur_Y1,cur_Y2,cur_U,cur_V; - if(xpos&2){ - i = *(ptr++); - cur_Y1 = (cur_Y2 + delta_y_tbl[i & 0x0f])/* & 0xff*/; - cur_Y2 = (cur_Y1 + delta_y_tbl[i >> 4])/* & 0xff*/; - } else { - if(xpos == 0) { /* first pixels in scanline */ - cur_U = *(ptr++); - cur_Y1= (cur_U & 0x0f) << 4; - cur_U = cur_U & 0xf0; - cur_V = *(ptr++); - cur_Y2= (cur_Y1 + delta_y_tbl[cur_V & 0x0f])/* & 0xff*/; - cur_V = cur_V & 0xf0; - } else { /* subsequent pixels in scanline */ - i = *(ptr++); - cur_U = (cur_U + delta_c_tbl[i >> 4])/* & 0xff*/; - cur_Y1= (cur_Y2 + delta_y_tbl[i & 0x0f])/* & 0xff*/; - i = *(ptr++); - cur_V = (cur_V + delta_c_tbl[i >> 4])/* & 0xff*/; - cur_Y2= (cur_Y1 + delta_y_tbl[i & 0x0f])/* & 0xff*/; - } - } - - if (format == IMGFMT_YUY2) { - *frame++ = cur_Y1; - *frame++ = cur_U; - *frame++ = cur_Y2; - *frame++ = cur_V; - } else { - *frame++ = cur_U; - *frame++ = cur_Y1; - *frame++ = cur_V; - *frame++ = cur_Y2; - } - } - -} - |