Open Broadcaster Software
Free, open source software for live streaming and recording
video-scaler.h
Go to the documentation of this file.
1 /******************************************************************************
2  Copyright (C) 2014 by Hugh Bailey <obs.jim@gmail.com>
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16 ******************************************************************************/
17 
18 #pragma once
19 
20 #include "../util/c99defs.h"
21 #include "video-io.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 struct video_scaler;
28 typedef struct video_scaler video_scaler_t;
29 
30 #define VIDEO_SCALER_SUCCESS 0
31 #define VIDEO_SCALER_BAD_CONVERSION -1
32 #define VIDEO_SCALER_FAILED -2
33 
35  const struct video_scale_info *dst,
36  const struct video_scale_info *src,
37  enum video_scale_type type);
39 
40 EXPORT bool video_scaler_scale(video_scaler_t *scaler, uint8_t *output[],
41  const uint32_t out_linesize[],
42  const uint8_t *const input[],
43  const uint32_t in_linesize[]);
44 
45 #ifdef __cplusplus
46 }
47 #endif
video_scaler_scale
EXPORT bool video_scaler_scale(video_scaler_t *scaler, uint8_t *output[], const uint32_t out_linesize[], const uint8_t *const input[], const uint32_t in_linesize[])
video-io.h
EXPORT
#define EXPORT
Definition: c99defs.h:37
video_scaler_destroy
EXPORT void video_scaler_destroy(video_scaler_t *scaler)
video_scaler_create
EXPORT int video_scaler_create(video_scaler_t **scaler, const struct video_scale_info *dst, const struct video_scale_info *src, enum video_scale_type type)
video_scaler_t
struct video_scaler video_scaler_t
Definition: video-scaler.h:28
video_scale_type
video_scale_type
Definition: video-io.h:205
video_scale_info
Definition: video-io.h:213