[vlc-commits] [Git][videolan/vlc][master] vpx: use plane_CopyPixels to copy pixels
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Mar 10 08:36:14 UTC 2023
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
e7d0535a by Steve Lhomme at 2023-03-10T08:21:17+00:00
vpx: use plane_CopyPixels to copy pixels
- - - - -
1 changed file:
- modules/codec/vpx.c
Changes:
=====================================
modules/codec/vpx.c
=====================================
@@ -273,17 +273,10 @@ static int Decode(decoder_t *dec, block_t *block)
return VLCDEC_SUCCESS;
for (int plane = 0; plane < pic->i_planes; plane++ ) {
- uint8_t *src = img->planes[plane];
- uint8_t *dst = pic->p[plane].p_pixels;
- int src_stride = img->stride[plane];
- int dst_stride = pic->p[plane].i_pitch;
-
- int size = __MIN( src_stride, dst_stride );
- for( int line = 0; line < pic->p[plane].i_visible_lines; line++ ) {
- memcpy( dst, src, size );
- src += src_stride;
- dst += dst_stride;
- }
+ plane_t src_plane = pic->p[plane];
+ src_plane.p_pixels = img->planes[plane];
+ src_plane.i_pitch = img->stride[plane];
+ plane_CopyPixels(&pic->p[plane], &src_plane);
}
pic->b_progressive = true; /* codec does not support interlacing */
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e7d0535a5d270efb16cfb6b34e923c8f88a37e47
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e7d0535a5d270efb16cfb6b34e923c8f88a37e47
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list