mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
avcodec/proresenc_anatoliy: simplify get()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f6b1cd3936
commit
82efa24c51
@ -264,14 +264,12 @@ static void encode_ac_coeffs(AVCodecContext *avctx, PutBitContext *pb,
|
||||
|
||||
static void get(uint8_t *pixels, int stride, int16_t* block)
|
||||
{
|
||||
int16_t *p = (int16_t*)pixels;
|
||||
int i;
|
||||
|
||||
stride >>= 1;
|
||||
for (i = 0; i < 8; i++) {
|
||||
AV_WN64(block, AV_RN64(p));
|
||||
AV_WN64(block+4, AV_RN64(p+4));
|
||||
p += stride;
|
||||
AV_WN64(block, AV_RN64(pixels));
|
||||
AV_WN64(block+4, AV_RN64(pixels+8));
|
||||
pixels += stride;
|
||||
block += 8;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user