summaryrefslogtreecommitdiffstats
path: root/libhb/handbrake/hbavfilter.h
blob: 319b4887142a6e9abed728f9ec803bc5d50c6066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* hbavfilter.h

   Copyright (c) 2003-2019 HandBrake Team
   This file is part of the HandBrake source code
   Homepage: <http://handbrake.fr/>.
   It may be used under the terms of the GNU General Public License v2.
   For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
 */

#ifndef HB_AVFILTER_H
#define HB_AVFILTER_H

#include "handbrake/common.h"

typedef struct hb_avfilter_graph_s hb_avfilter_graph_t;

hb_avfilter_graph_t *
hb_avfilter_graph_init(hb_value_t * settings, hb_filter_init_t * init);

void    hb_avfilter_graph_close(hb_avfilter_graph_t ** _g);

const char *
hb_avfilter_graph_settings(hb_avfilter_graph_t * graph);

void    hb_avfilter_graph_update_init(hb_avfilter_graph_t * graph,
                                      hb_filter_init_t    * init);

int     hb_avfilter_add_frame(hb_avfilter_graph_t * graph, AVFrame * frame);

int     hb_avfilter_get_frame(hb_avfilter_graph_t * graph, AVFrame * frame);

int     hb_avfilter_add_buf(hb_avfilter_graph_t * graph, hb_buffer_t * in);

hb_buffer_t *
hb_avfilter_get_buf(hb_avfilter_graph_t * graph);

void    hb_avfilter_append_dict(hb_value_array_t * filters,
                                const char * name, hb_dict_t * settings);

void    hb_avfilter_combine(hb_list_t * list);

#endif // HB_AVFILTER_H