mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
gst/videobox/gstvideobox.c: Use liboil for
Original commit message from CVS: 2005-10-27 Julien MOUTTE <julien@moutte.net> * gst/videobox/gstvideobox.c: (gst_video_box_class_init), (gst_video_box_transform_caps), (gst_video_box_set_caps), (gst_video_box_get_unit_size), (gst_video_box_copy_plane_i420), (gst_video_box_i420), (gst_video_box_ayuv): Use liboil for I420 rendering as well, doesn't bring much for my platform. Might help on some other platforms.
This commit is contained in:
parent
b08773ea83
commit
92473c6e34
2 changed files with 14 additions and 5 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2005-10-27 Julien MOUTTE <julien@moutte.net>
|
||||||
|
|
||||||
|
* gst/videobox/gstvideobox.c: (gst_video_box_class_init),
|
||||||
|
(gst_video_box_transform_caps), (gst_video_box_set_caps),
|
||||||
|
(gst_video_box_get_unit_size), (gst_video_box_copy_plane_i420),
|
||||||
|
(gst_video_box_i420), (gst_video_box_ayuv): Use liboil for
|
||||||
|
I420 rendering as well, doesn't bring much for my platform.
|
||||||
|
Might help on some other platforms.
|
||||||
|
|
||||||
2005-10-27 Zeeshan Ali <zeenix@gmail.com>
|
2005-10-27 Zeeshan Ali <zeenix@gmail.com>
|
||||||
|
|
||||||
* gst/rtp/gstrtpgsmenc.c:
|
* gst/rtp/gstrtpgsmenc.c:
|
||||||
|
|
|
@ -475,22 +475,22 @@ gst_video_box_copy_plane_i420 (GstVideoBox * video_box, guint8 * src,
|
||||||
|
|
||||||
/* top border */
|
/* top border */
|
||||||
for (j = 0; j < bt; j++) {
|
for (j = 0; j < bt; j++) {
|
||||||
memset (dest, fill_color, dest_width);
|
oil_splat_u8_ns (dest, &fill_color, dest_width);
|
||||||
dest += dest_stride;
|
dest += dest_stride;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* copy and add left and right border */
|
/* copy and add left and right border */
|
||||||
for (j = 0; j < src_crop_height; j++) {
|
for (j = 0; j < src_crop_height; j++) {
|
||||||
memset (dest, fill_color, bl);
|
oil_splat_u8_ns (dest, &fill_color, bl);
|
||||||
memcpy (dest + bl, src, src_crop_width);
|
oil_memcpy (dest + bl, src, src_crop_width);
|
||||||
memset (dest + bl + src_crop_width, fill_color, br);
|
oil_splat_u8_ns (dest + bl + src_crop_width, &fill_color, br);
|
||||||
dest += dest_stride;
|
dest += dest_stride;
|
||||||
src += src_stride;
|
src += src_stride;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* bottom border */
|
/* bottom border */
|
||||||
for (j = 0; j < bb; j++) {
|
for (j = 0; j < bb; j++) {
|
||||||
memset (dest, fill_color, dest_width);
|
oil_splat_u8_ns (dest, &fill_color, dest_width);
|
||||||
dest += dest_stride;
|
dest += dest_stride;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue