• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef GST_SUBTITLE_COMMON_H
17 #define GST_SUBTITLE_COMMON_H
18 
19 #include "gst/gst.h"
20 #include "gst_subtitle_base_parse.h"
21 
22 gchar *gst_subtitle_str_dup(const gchar *str, gboolean ndup, gsize len);
23 void gst_subtitle_free_frame(GstSubtitleBaseParse *base, GstSubtitleDecodedFrame *decoded_frame);
24 void gst_subtitle_typefind(GstTypeFind *tf, const gpointer priv,
25     const GstSubtitleFormatDetect detect_caps_pfn);
26 gsize gst_subtitle_read_line(GstSubtitleBaseParse *base, gchar **out_line);
27 GstFlowReturn gst_subtitle_push_buffer(GstSubtitleBaseParse *self,
28     const GstSubtitleDecodedFrame *decoded_frame);
29 
30 #endif // GST_SUBTITLE_COMMON_H
31