mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-24 01:14:05 +08:00
Merge commit '458446acfa1441d283dacf9e6e545beb083b8bb0'
* commit '458446acfa1441d283dacf9e6e545beb083b8bb0':
lavc: Edge emulation with dst/src linesize
Conflicts:
libavcodec/cavs.c
libavcodec/h264.c
libavcodec/hevc.c
libavcodec/mpegvideo_enc.c
libavcodec/mpegvideo_motion.c
libavcodec/rv34.c
libavcodec/svq3.c
libavcodec/vc1dec.c
libavcodec/videodsp.h
libavcodec/videodsp_template.c
libavcodec/vp3.c
libavcodec/vp8.c
libavcodec/wmv2.c
libavcodec/x86/videodsp.asm
libavcodec/x86/videodsp_init.c
Changes to the asm are not merged, they are left for volunteers or
in their absence for later.
The changes this merge introduces are reordering of the function
arguments
See: face578d56
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1837,15 +1837,21 @@ static av_always_inline void encode_mb_internal(MpegEncContext *s,
|
||||
uint8_t *ebuf = s->edge_emu_buffer + 32;
|
||||
int cw = (s->width + s->chroma_x_shift) >> s->chroma_x_shift;
|
||||
int ch = (s->height + s->chroma_y_shift) >> s->chroma_y_shift;
|
||||
s->vdsp.emulated_edge_mc(ebuf, wrap_y, ptr_y, wrap_y, 16, 16, mb_x * 16,
|
||||
mb_y * 16, s->width, s->height);
|
||||
s->vdsp.emulated_edge_mc(ebuf, ptr_y,
|
||||
wrap_y, wrap_y,
|
||||
16, 16, mb_x * 16, mb_y * 16,
|
||||
s->width, s->height);
|
||||
ptr_y = ebuf;
|
||||
s->vdsp.emulated_edge_mc(ebuf + 18 * wrap_y, wrap_c, ptr_cb, wrap_c, mb_block_width,
|
||||
mb_block_height, mb_x * mb_block_width, mb_y * mb_block_height,
|
||||
s->vdsp.emulated_edge_mc(ebuf + 18 * wrap_y, ptr_cb,
|
||||
wrap_c, wrap_c,
|
||||
mb_block_width, mb_block_height,
|
||||
mb_x * mb_block_width, mb_y * mb_block_height,
|
||||
cw, ch);
|
||||
ptr_cb = ebuf + 18 * wrap_y;
|
||||
s->vdsp.emulated_edge_mc(ebuf + 18 * wrap_y + 16, wrap_c, ptr_cr, wrap_c, mb_block_width,
|
||||
mb_block_height, mb_x * mb_block_width, mb_y * mb_block_height,
|
||||
s->vdsp.emulated_edge_mc(ebuf + 18 * wrap_y + 16, ptr_cr,
|
||||
wrap_c, wrap_c,
|
||||
mb_block_width, mb_block_height,
|
||||
mb_x * mb_block_width, mb_y * mb_block_height,
|
||||
cw, ch);
|
||||
ptr_cr = ebuf + 18 * wrap_y + 16;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user