|
|
@ -3788,8 +3788,7 @@ static int hadamard8_intra8x8_c(/*MpegEncContext*/ void *s, uint8_t *src, uint8_ |
|
|
|
|
|
|
|
|
|
|
|
static int dct_sad8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){ |
|
|
|
static int dct_sad8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){ |
|
|
|
MpegEncContext * const s= (MpegEncContext *)c; |
|
|
|
MpegEncContext * const s= (MpegEncContext *)c; |
|
|
|
DECLARE_ALIGNED_16(uint64_t, aligned_temp)[sizeof(DCTELEM)*64/8]; |
|
|
|
DECLARE_ALIGNED_16(DCTELEM, temp)[64]; |
|
|
|
DCTELEM * const temp= (DCTELEM*)aligned_temp; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assert(h==8); |
|
|
|
assert(h==8); |
|
|
|
|
|
|
|
|
|
|
@ -3853,8 +3852,7 @@ static int dct264_sad8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *s |
|
|
|
|
|
|
|
|
|
|
|
static int dct_max8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){ |
|
|
|
static int dct_max8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){ |
|
|
|
MpegEncContext * const s= (MpegEncContext *)c; |
|
|
|
MpegEncContext * const s= (MpegEncContext *)c; |
|
|
|
DECLARE_ALIGNED_16(uint64_t, aligned_temp)[sizeof(DCTELEM)*64/8]; |
|
|
|
DECLARE_ALIGNED_16(DCTELEM, temp)[64]; |
|
|
|
DCTELEM * const temp= (DCTELEM*)aligned_temp; |
|
|
|
|
|
|
|
int sum=0, i; |
|
|
|
int sum=0, i; |
|
|
|
|
|
|
|
|
|
|
|
assert(h==8); |
|
|
|
assert(h==8); |
|
|
@ -3870,9 +3868,8 @@ static int dct_max8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2 |
|
|
|
|
|
|
|
|
|
|
|
static int quant_psnr8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){ |
|
|
|
static int quant_psnr8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){ |
|
|
|
MpegEncContext * const s= (MpegEncContext *)c; |
|
|
|
MpegEncContext * const s= (MpegEncContext *)c; |
|
|
|
DECLARE_ALIGNED_16(uint64_t, aligned_temp)[sizeof(DCTELEM)*64*2/8]; |
|
|
|
DECLARE_ALIGNED_16(DCTELEM, temp)[64*2]; |
|
|
|
DCTELEM * const temp= (DCTELEM*)aligned_temp; |
|
|
|
DCTELEM * const bak = temp+64; |
|
|
|
DCTELEM * const bak = ((DCTELEM*)aligned_temp)+64; |
|
|
|
|
|
|
|
int sum=0, i; |
|
|
|
int sum=0, i; |
|
|
|
|
|
|
|
|
|
|
|
assert(h==8); |
|
|
|
assert(h==8); |
|
|
@ -3895,12 +3892,9 @@ static int quant_psnr8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *s |
|
|
|
static int rd8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){ |
|
|
|
static int rd8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){ |
|
|
|
MpegEncContext * const s= (MpegEncContext *)c; |
|
|
|
MpegEncContext * const s= (MpegEncContext *)c; |
|
|
|
const uint8_t *scantable= s->intra_scantable.permutated; |
|
|
|
const uint8_t *scantable= s->intra_scantable.permutated; |
|
|
|
DECLARE_ALIGNED_16(uint64_t, aligned_temp)[sizeof(DCTELEM)*64/8]; |
|
|
|
DECLARE_ALIGNED_16(DCTELEM, temp)[64]; |
|
|
|
DECLARE_ALIGNED_16(uint64_t, aligned_src1)[8]; |
|
|
|
DECLARE_ALIGNED_16(uint8_t, lsrc1)[64]; |
|
|
|
DECLARE_ALIGNED_16(uint64_t, aligned_src2)[8]; |
|
|
|
DECLARE_ALIGNED_16(uint8_t, lsrc2)[64]; |
|
|
|
DCTELEM * const temp= (DCTELEM*)aligned_temp; |
|
|
|
|
|
|
|
uint8_t * const lsrc1 = (uint8_t*)aligned_src1; |
|
|
|
|
|
|
|
uint8_t * const lsrc2 = (uint8_t*)aligned_src2; |
|
|
|
|
|
|
|
int i, last, run, bits, level, distortion, start_i; |
|
|
|
int i, last, run, bits, level, distortion, start_i; |
|
|
|
const int esc_length= s->ac_esc_length; |
|
|
|
const int esc_length= s->ac_esc_length; |
|
|
|
uint8_t * length; |
|
|
|
uint8_t * length; |
|
|
@ -3974,8 +3968,7 @@ static int rd8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int |
|
|
|
static int bit8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){ |
|
|
|
static int bit8x8_c(/*MpegEncContext*/ void *c, uint8_t *src1, uint8_t *src2, int stride, int h){ |
|
|
|
MpegEncContext * const s= (MpegEncContext *)c; |
|
|
|
MpegEncContext * const s= (MpegEncContext *)c; |
|
|
|
const uint8_t *scantable= s->intra_scantable.permutated; |
|
|
|
const uint8_t *scantable= s->intra_scantable.permutated; |
|
|
|
DECLARE_ALIGNED_16(uint64_t, aligned_temp)[sizeof(DCTELEM)*64/8]; |
|
|
|
DECLARE_ALIGNED_16(DCTELEM, temp)[64]; |
|
|
|
DCTELEM * const temp= (DCTELEM*)aligned_temp; |
|
|
|
|
|
|
|
int i, last, run, bits, level, start_i; |
|
|
|
int i, last, run, bits, level, start_i; |
|
|
|
const int esc_length= s->ac_esc_length; |
|
|
|
const int esc_length= s->ac_esc_length; |
|
|
|
uint8_t * length; |
|
|
|
uint8_t * length; |
|
|
|