avcodec/proresenc_anatoliy: load 4 samples at a time in get()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-05-30 18:42:01 +02:00
parent 63b4d6feb8
commit f6b1cd3936

View File

@ -265,13 +265,12 @@ static void encode_ac_coeffs(AVCodecContext *avctx, PutBitContext *pb,
static void get(uint8_t *pixels, int stride, int16_t* block) static void get(uint8_t *pixels, int stride, int16_t* block)
{ {
int16_t *p = (int16_t*)pixels; int16_t *p = (int16_t*)pixels;
int i, j; int i;
stride >>= 1; stride >>= 1;
for (i = 0; i < 8; i++) { for (i = 0; i < 8; i++) {
for (j = 0; j < 8; j++) { AV_WN64(block, AV_RN64(p));
block[j] = p[j]; AV_WN64(block+4, AV_RN64(p+4));
}
p += stride; p += stride;
block += 8; block += 8;
} }