mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
video-scaler: remove color range argument
We just need to clip to the format limits, if there is extra headroom in the range we can use that without problems.
This commit is contained in:
parent
90dca4b3dc
commit
daf20d5e09
3 changed files with 4 additions and 9 deletions
|
@ -1154,7 +1154,7 @@ do_hscale_lines (GstLineCache * cache, gint line, GstVideoConverter * convert)
|
||||||
|
|
||||||
GST_DEBUG ("hresample line %d", line);
|
GST_DEBUG ("hresample line %d", line);
|
||||||
gst_video_scaler_horizontal (convert->h_scaler, GST_VIDEO_FORMAT_AYUV,
|
gst_video_scaler_horizontal (convert->h_scaler, GST_VIDEO_FORMAT_AYUV,
|
||||||
GST_VIDEO_COLOR_RANGE_0_255, lines[0], destline, 0, convert->out_width);
|
lines[0], destline, 0, convert->out_width);
|
||||||
|
|
||||||
gst_line_cache_add_line (cache, line, destline);
|
gst_line_cache_add_line (cache, line, destline);
|
||||||
|
|
||||||
|
@ -1174,8 +1174,7 @@ do_vscale_lines (GstLineCache * cache, gint line, GstVideoConverter * convert)
|
||||||
|
|
||||||
GST_DEBUG ("vresample line %d %d-%d", line, sline, sline + n_lines - 1);
|
GST_DEBUG ("vresample line %d %d-%d", line, sline, sline + n_lines - 1);
|
||||||
gst_video_scaler_vertical (convert->v_scaler, GST_VIDEO_FORMAT_AYUV,
|
gst_video_scaler_vertical (convert->v_scaler, GST_VIDEO_FORMAT_AYUV,
|
||||||
GST_VIDEO_COLOR_RANGE_0_255, lines, destline, line,
|
lines, destline, line, convert->v_scale_width);
|
||||||
convert->v_scale_width);
|
|
||||||
|
|
||||||
gst_line_cache_add_line (cache, line, destline);
|
gst_line_cache_add_line (cache, line, destline);
|
||||||
|
|
||||||
|
|
|
@ -494,8 +494,7 @@ video_scale_v_ntap_8888 (GstVideoScaler * scale,
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gst_video_scaler_horizontal (GstVideoScaler * scale, GstVideoFormat format,
|
gst_video_scaler_horizontal (GstVideoScaler * scale, GstVideoFormat format,
|
||||||
GstVideoColorRange range, gpointer src, gpointer dest, guint dest_offset,
|
gpointer src, gpointer dest, guint dest_offset, guint width)
|
||||||
guint width)
|
|
||||||
{
|
{
|
||||||
GstVideoScalerHFunc func;
|
GstVideoScalerHFunc func;
|
||||||
|
|
||||||
|
@ -534,8 +533,7 @@ gst_video_scaler_horizontal (GstVideoScaler * scale, GstVideoFormat format,
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gst_video_scaler_vertical (GstVideoScaler * scale, GstVideoFormat format,
|
gst_video_scaler_vertical (GstVideoScaler * scale, GstVideoFormat format,
|
||||||
GstVideoColorRange range, gpointer srcs[], gpointer dest, guint dest_offset,
|
gpointer srcs[], gpointer dest, guint dest_offset, guint width)
|
||||||
guint width)
|
|
||||||
{
|
{
|
||||||
GstVideoScalerVFunc func;
|
GstVideoScalerVFunc func;
|
||||||
|
|
||||||
|
|
|
@ -64,12 +64,10 @@ const gdouble * gst_video_scaler_get_coeff (GstVideoScaler *scale,
|
||||||
|
|
||||||
void gst_video_scaler_horizontal (GstVideoScaler *scale,
|
void gst_video_scaler_horizontal (GstVideoScaler *scale,
|
||||||
GstVideoFormat format,
|
GstVideoFormat format,
|
||||||
GstVideoColorRange range,
|
|
||||||
gpointer src, gpointer dest,
|
gpointer src, gpointer dest,
|
||||||
guint dest_offset, guint width);
|
guint dest_offset, guint width);
|
||||||
void gst_video_scaler_vertical (GstVideoScaler *scale,
|
void gst_video_scaler_vertical (GstVideoScaler *scale,
|
||||||
GstVideoFormat format,
|
GstVideoFormat format,
|
||||||
GstVideoColorRange range,
|
|
||||||
gpointer src_lines[], gpointer dest,
|
gpointer src_lines[], gpointer dest,
|
||||||
guint out_offset, guint width);
|
guint out_offset, guint width);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue