Mercurial > mplayer.hg
view libmpcodecs/native/common1428.h @ 14715:1fab95e4513c
Improved NV12/NV21 support.
- Fixed PlanarToNV12Wrapper() and made it handle NV21.
- Added yuv2nv12XinC() to handle software scaling.
- Added NV12/NV21 handling to various places.
- Removed NV12 from vf_hue and vf_spp as they don't look like they can
actually handle it.
author | syrjala |
---|---|
date | Wed, 16 Feb 2005 23:47:00 +0000 |
parents | 597ad4eb02fc |
children |
line wrap: on
line source
#ifndef COMMON_H #define COMMON_H #include <stdlib.h> #include <unistd.h> #include <string.h> #include <math.h> #define DATABLOCK1 20 /* size of 14.4 input block in bytes */ #define DATABLOCK2 38 /* size of 28.8 input block in bytes */ #define DATACHUNK1 1440 /* size of 14.4 input chunk in bytes */ #define DATACHUNK2 2736 /* size of 28.8 input chunk in bytes */ #define AUDIOBLOCK 160 /* size of output block in 16-bit words (320 bytes) */ //#define AUDIOBUFFER 11520 /* size of output buffer in 16-bit words (23040 bytes) */ #define AUDIOBUFFER 12288 /* size of output buffer in 16-bit words (24576 bytes) */ typedef void Real_144; typedef void Real_288; typedef void Real_dnet; /* common prototypes */ Real_144 *init_144 (void); Real_288 *init_288 (void); Real_dnet *init_dnet (void); void free_144 (Real_144 *global); void free_288 (Real_288 *global); void free_dnet (Real_dnet *global); void deinterleave (unsigned char *in, unsigned char *out, unsigned int size); void swapbytes (unsigned char *in, unsigned char *out, unsigned int len); void decode_144 (Real_144 *global, unsigned char *source, signed short *target); void decode_288 (Real_288 *global, unsigned char *in, signed short *out); int decode_dnet (Real_dnet *global, unsigned char *in, signed short *out, int *freq, int chans); #endif /* !COMMON_H */