Blame gst-libs/gst/video/video-scaler.h

Packit 971217
/* GStreamer
Packit 971217
 * Copyright (C) <2014> Wim Taymans <wim.taymans@gmail.com>
Packit 971217
 *
Packit 971217
 * This library is free software; you can redistribute it and/or
Packit 971217
 * modify it under the terms of the GNU Library General Public
Packit 971217
 * License as published by the Free Software Foundation; either
Packit 971217
 * version 2 of the License, or (at your option) any later version.
Packit 971217
 *
Packit 971217
 * This library is distributed in the hope that it will be useful,
Packit 971217
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 971217
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 971217
 * Library General Public License for more details.
Packit 971217
 *
Packit 971217
 * You should have received a copy of the GNU Library General Public
Packit 971217
 * License along with this library; if not, write to the
Packit 971217
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit 971217
 * Boston, MA 02110-1301, USA.
Packit 971217
 */
Packit 971217
Packit 971217
#ifndef __GST_VIDEO_SCALER_H__
Packit 971217
#define __GST_VIDEO_SCALER_H__
Packit 971217
Packit 971217
#include <gst/gst.h>
Packit 971217
Packit 971217
#include <gst/video/video-format.h>
Packit 971217
#include <gst/video/video-color.h>
Packit 971217
#include <gst/video/video-resampler.h>
Packit 971217
Packit 971217
G_BEGIN_DECLS
Packit 971217
Packit 971217
/**
Packit 971217
 * GST_VIDEO_SCALER_OPT_DITHER_METHOD:
Packit 971217
 *
Packit 971217
 * #GST_TYPE_VIDEO_DITHER_METHOD, The dither method to use for propagating
Packit 971217
 * quatization errors.
Packit 971217
 */
Packit 971217
#define GST_VIDEO_SCALER_OPT_DITHER_METHOD   "GstVideoScaler.dither-method"
Packit 971217
Packit 971217
/**
Packit 971217
 * GstVideoScalerFlags:
Packit 971217
 * @GST_VIDEO_SCALER_FLAG_NONE: no flags
Packit 971217
 * @GST_VIDEO_SCALER_FLAG_INTERLACED: Set up a scaler for interlaced content
Packit 971217
 *
Packit 971217
 * Different scale flags.
Packit 971217
 */
Packit 971217
typedef enum {
Packit 971217
  GST_VIDEO_SCALER_FLAG_NONE                 = (0),
Packit 971217
  GST_VIDEO_SCALER_FLAG_INTERLACED           = (1 << 0),
Packit 971217
} GstVideoScalerFlags;
Packit 971217
Packit 971217
typedef struct _GstVideoScaler GstVideoScaler;
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
GstVideoScaler *      gst_video_scaler_new            (GstVideoResamplerMethod method,
Packit 971217
                                                       GstVideoScalerFlags flags,
Packit 971217
                                                       guint n_taps,
Packit 971217
                                                       guint in_size, guint out_size,
Packit 971217
                                                       GstStructure * options);
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
void                  gst_video_scaler_free           (GstVideoScaler *scale);
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
guint                 gst_video_scaler_get_max_taps   (GstVideoScaler *scale);
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
const gdouble *       gst_video_scaler_get_coeff      (GstVideoScaler *scale,
Packit 971217
                                                       guint out_offset,
Packit 971217
                                                       guint *in_offset,
Packit 971217
                                                       guint *n_taps);
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
void                  gst_video_scaler_horizontal     (GstVideoScaler *scale,
Packit 971217
                                                       GstVideoFormat format,
Packit 971217
                                                       gpointer src, gpointer dest,
Packit 971217
                                                       guint dest_offset, guint width);
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
void                  gst_video_scaler_vertical       (GstVideoScaler *scale,
Packit 971217
                                                       GstVideoFormat format,
Packit 971217
                                                       gpointer src_lines[], gpointer dest,
Packit 971217
                                                       guint dest_offset, guint width);
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
GstVideoScaler *      gst_video_scaler_combine_packed_YUV (GstVideoScaler * y_scale,
Packit 971217
                                                           GstVideoScaler *uv_scale,
Packit 971217
                                                           GstVideoFormat in_format,
Packit 971217
                                                           GstVideoFormat out_format);
Packit 971217
Packit 971217
GST_VIDEO_API
Packit 971217
void                  gst_video_scaler_2d             (GstVideoScaler *hscale,
Packit 971217
                                                       GstVideoScaler *vscale,
Packit 971217
                                                       GstVideoFormat format,
Packit 971217
                                                       gpointer src, gint src_stride,
Packit 971217
                                                       gpointer dest, gint dest_stride,
Packit 971217
                                                       guint x, guint y,
Packit 971217
                                                       guint width, guint height);
Packit 971217
Packit 971217
G_END_DECLS
Packit 971217
Packit 971217
#endif /* __GST_VIDEO_SCALER_H__ */