mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
adx: rename struct PREV to ADXChannelState
This commit is contained in:
parent
3a83b2461e
commit
dd1b9f7cd9
@ -33,10 +33,10 @@
|
|||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int s1,s2;
|
int s1,s2;
|
||||||
} PREV;
|
} ADXChannelState;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
PREV prev[2];
|
ADXChannelState prev[2];
|
||||||
int header_parsed;
|
int header_parsed;
|
||||||
unsigned char dec_temp[18*2];
|
unsigned char dec_temp[18*2];
|
||||||
int in_temp;
|
int in_temp;
|
||||||
|
@ -40,7 +40,8 @@ static av_cold int adx_decode_init(AVCodecContext *avctx)
|
|||||||
|
|
||||||
/* 18 bytes <-> 32 samples */
|
/* 18 bytes <-> 32 samples */
|
||||||
|
|
||||||
static void adx_decode(short *out,const unsigned char *in,PREV *prev)
|
static void adx_decode(short *out,const unsigned char *in,
|
||||||
|
ADXChannelState *prev)
|
||||||
{
|
{
|
||||||
int scale = AV_RB16(in);
|
int scale = AV_RB16(in);
|
||||||
int i;
|
int i;
|
||||||
@ -73,7 +74,8 @@ static void adx_decode(short *out,const unsigned char *in,PREV *prev)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void adx_decode_stereo(short *out,const unsigned char *in,PREV *prev)
|
static void adx_decode_stereo(short *out,const unsigned char *in,
|
||||||
|
ADXChannelState *prev)
|
||||||
{
|
{
|
||||||
short tmp[32*2];
|
short tmp[32*2];
|
||||||
int i;
|
int i;
|
||||||
|
@ -34,7 +34,8 @@
|
|||||||
|
|
||||||
/* 18 bytes <-> 32 samples */
|
/* 18 bytes <-> 32 samples */
|
||||||
|
|
||||||
static void adx_encode(unsigned char *adx,const short *wav,PREV *prev)
|
static void adx_encode(unsigned char *adx,const short *wav,
|
||||||
|
ADXChannelState *prev)
|
||||||
{
|
{
|
||||||
int scale;
|
int scale;
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
Reference in New Issue
Block a user