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 
41  uint8_t *output[], const uint32_t out_linesize[],
42  const uint8_t *const input[], const uint32_t in_linesize[]);
43 
44 #ifdef __cplusplus
45 }
46 #endif
Definition: video-io.h:157
unsigned uint32_t
Definition: vc_stdint.h:31
unsigned char uint8_t
Definition: vc_stdint.h:27
video_scale_type
Definition: video-io.h:149
struct video_scaler video_scaler_t
Definition: video-scaler.h:28
#define EXPORT
Definition: c99defs.h:49
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[])
EXPORT void video_scaler_destroy(video_scaler_t *scaler)
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)