Commit graph

28 commits

Author SHA1 Message Date
Wim Taymans
1ede455199 videoscale: optimize merge for RGB15 and RGB16 2013-09-12 12:27:19 +02:00
Wim Taymans
85c572a57e videoscale: simplify YUYV and UYVY linear scaling
Simplify the code and make it handle odd width
2013-09-10 16:24:56 +02:00
Wim Taymans
ccf53052a0 videoscale: small cleanups
Use BLEND macro
Fix NV12 corner case
2013-09-10 16:24:56 +02:00
Wim Taymans
d365b68517 videoscale: fix RGB15 masks 2013-09-10 16:24:56 +02:00
Wim Taymans
d7c02f389f videoscale: simplify nearest scaling
Round the accumulator to avoid later checks
Remove some bound checks that would never trigger
Fix odd width scaling
2013-09-10 16:24:56 +02:00
Sebastian Dröge
5a58f8b9ec videoscale: Fix compiler errors caused by not including config.h
_stdint.h requires config.h to be included to properly
use the correct code to get uint8_t and friends.
2013-03-02 19:29:40 +01:00
Wim Taymans
aefd1a5d6d videoscale: ranem gst_video_scale_orc -> video_scale_orc
So that functions are not exported
2012-07-23 17:13:29 +02:00
Wim Taymans
d4255d4339 videoscale: prefix orc functions with gst_video_scale_orc
See https://bugzilla.gnome.org/show_bug.cgi?id=680025
2012-07-23 17:03:53 +02:00
David Schleef
beacccc396 videoscale: Add nearest/linear scaling for NV12 2012-02-04 13:41:47 -08:00
David Schleef
e1149f52c1 videoscale: Add 16-bit-channel support 2011-02-20 12:04:02 -08:00
David Schleef
0cceeb2035 videoscale: refactor using more Orc code
Convert downsampling to Orc.  Convert horizontal linear scaling
to Orc.  Combine horizontal and vertical scaling into one pass.
2010-09-14 12:33:21 -07:00
Sebastian Dröge
619e5b6e44 videoscale: Fix linear scaling of UYVY scanlines
Fixes bug #624656.
2010-07-18 15:44:14 +02:00
Sebastian Dröge
153b21fc85 videoscale: Fix resampling of ARGB scanlines
Previously we would read behind the end of the source lines.
2010-06-24 12:06:05 +02:00
David Schleef
7778ed7382 videoscale: Fix black horizontal line in image 2010-06-14 15:46:53 -07:00
Sebastian Dröge
944cfa5871 videoscale: Implement linear merging of Y16 scanlines with orc 2010-06-12 12:57:14 +02:00
David Schleef
dbfd5a5af8 videoscale: convert from liboil to orc 2010-06-07 23:58:54 -07:00
Sebastian Dröge
bbdc60fbcb videoscale: Use correct boundary checks for YUY2/UYVY
Fixes bug #613093.
2010-03-17 16:47:31 +01:00
Sebastian Dröge
2e5c946501 videoscale: Add support for 16 bit grayscale in native endianness 2009-05-26 15:26:30 +02:00
Sebastian Dröge
ab7d52c053 videoscale: Fix linear scaling for one byte components
Fixes bug #577054.
2009-03-29 12:01:33 +02:00
Sebastian Dröge
9d586e0475 videoscale: Rewrite YUYV (and friends) scaling and don't read/write over line ends
Partially fixes bug #577054, there's just one issue left now.
2009-03-28 16:08:44 +01:00
Sebastian Dröge
8eb3572eef videoscale: Don't read after the end of a line when lineary scaling YUYV/UYVY/RGB/RGBA
This case is for upscaling a frame with width=1
Partially fixes bug #577054.
2009-03-28 11:57:19 +01:00
Sebastian Dröge
b69231ad21 videoscale: Don't read after the end of a line when lineary scaling YUYV/UYVY
Partially fixes bug #577054.
2009-03-28 11:27:56 +01:00
David Schleef
25d874ec9b gst/videoscale/: Add a 4-tap image scaler. Theoretically looks much prettier.
Original commit message from CVS:
* gst/videoscale/Makefile.am:
* gst/videoscale/gstvideoscale.c:
* gst/videoscale/gstvideoscale.h:
* gst/videoscale/vs_4tap.c:
* gst/videoscale/vs_4tap.h:
* gst/videoscale/vs_image.c:
* gst/videoscale/vs_image.h:
* gst/videoscale/vs_scanline.c:
* gst/videoscale/vs_scanline.h:
Add a 4-tap image scaler.  Theoretically looks much prettier.
The tap calculation could use some improvement.
2006-11-14 23:08:38 +00:00
Edward Hervey
4cb1a6bd3a gst/videoscale/vs_scanline.c: Revert optimization in videoscale. It should go in liboil and have an appropriate liboi...
Original commit message from CVS:
* gst/videoscale/vs_scanline.c:
(vs_scanline_resample_nearest_RGBA):
Revert optimization in videoscale. It should go in liboil and have
an appropriate liboil function.
2006-02-28 12:19:11 +00:00
Edward Hervey
ced6e8445a gst/videoscale/vs_scanline.c: C-level optimization of the RGBA nearest neighbour function.
Original commit message from CVS:
Reviewed by Edward Hervey  <edward@fluendo.com>
* gst/videoscale/vs_scanline.c: (vs_scanline_resample_nearest_RGBA):
C-level optimization of the RGBA nearest neighbour function.
Eventually this might end up in liboil with vectorized versions.
2006-02-16 17:06:46 +00:00
David Schleef
eed2e762b8 gst/videoscale/vs_scanline.c: Oops, *that's* why I never checked in this change -- it requires liboil features not in...
Original commit message from CVS:
* gst/videoscale/vs_scanline.c: Oops, *that's* why I never
checked in this change -- it requires liboil features not
in 0.3.6.  Revert parts.
2006-01-28 02:13:14 +00:00
David Schleef
02389b09e8 update liboil requirement to 0.3.6
Original commit message from CVS:
* REQUIREMENTS:
* configure.ac: update liboil requirement to 0.3.6
* gst/videoscale/Makefile.am:
* gst/videoscale/vs_scanline.c: liboilify
2006-01-27 23:40:19 +00:00
Andy Wingo
4063477460 gst/videoscale: Merge David's work from 0.8 branch. Changes to come later.
Original commit message from CVS:
2005-07-01  Andy Wingo  <wingo@pobox.com>

* gst/videoscale: Merge David's work from 0.8 branch. Changes to
come later.
2005-07-01 16:55:43 +00:00