364 |
|
|
365 |
static int FrameCodeI(Encoder * pEnc, Bitstream * bs, uint32_t *pBits) |
static int FrameCodeI(Encoder * pEnc, Bitstream * bs, uint32_t *pBits) |
366 |
{ |
{ |
367 |
|
#ifdef LINUX |
368 |
|
DECLARE_ALIGNED_MATRIX(dct_codes,6,64,int16_t,16); |
369 |
|
DECLARE_ALIGNED_MATRIX(qcoeff,6,64,int16_t,16); |
370 |
|
#else |
371 |
CACHE_ALIGN int16_t dct_codes[6][64]; |
CACHE_ALIGN int16_t dct_codes[6][64]; |
372 |
CACHE_ALIGN int16_t qcoeff[6][64]; |
CACHE_ALIGN int16_t qcoeff[6][64]; |
373 |
|
#endif |
374 |
uint16_t x, y; |
uint16_t x, y; |
375 |
|
|
376 |
pEnc->iFrameNum = 0; |
pEnc->iFrameNum = 0; |
421 |
static int FrameCodeP(Encoder * pEnc, Bitstream * bs, uint32_t *pBits, bool force_inter, bool vol_header) |
static int FrameCodeP(Encoder * pEnc, Bitstream * bs, uint32_t *pBits, bool force_inter, bool vol_header) |
422 |
{ |
{ |
423 |
float fSigma; |
float fSigma; |
424 |
|
#ifdef LINUX |
425 |
|
DECLARE_ALIGNED_MATRIX(dct_codes,6,64,int16_t,16); |
426 |
|
DECLARE_ALIGNED_MATRIX(qcoeff,6,64,int16_t,16); |
427 |
|
#else |
428 |
CACHE_ALIGN int16_t dct_codes[6][64]; |
CACHE_ALIGN int16_t dct_codes[6][64]; |
429 |
CACHE_ALIGN int16_t qcoeff[6][64]; |
CACHE_ALIGN int16_t qcoeff[6][64]; |
430 |
|
#endif |
431 |
|
|
432 |
int iLimit; |
int iLimit; |
433 |
uint32_t x, y; |
uint32_t x, y; |