Debian Codegraph @

gst-libs/gst/codecparsers/gstjpegbitwriter.h

raw symbols SCIP
1 /* GStreamer
2 * Copyright (C) 2024 Intel Corporation
3 * Author: He Junyan <[email protected]>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the0
17 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20
21 #ifndef __GST_JPEG_BIT_WRITER_H__
22 #define __GST_JPEG_BIT_WRITER_H__
23
24 #include <gst/codecparsers/gstjpegparser.h>
25 #include <gst/codecparsers/codecparsers-prelude.h>
26
27 G_BEGIN_DECLS
28
29 /**
30 * GstJpegBitWriterResult:
31 * @GST_JPEG_BIT_WRITER_OK: The writing succeeded
32 * @GST_JPEG_BIT_WRITER_INVALID_DATA: The input data to write is invalid
33 * @GST_JPEG_BIT_WRITER_NO_MORE_SPACE: The output does not have enough size
34 * @GST_JPEG_BIT_WRITER_ERROR: An general error occurred when writing
35 *
36 * The result of writing JPEG data into bit stream.
37 *
38 * Since: 1.24
39 */
40 typedef enum
41 {
42 GST_JPEG_BIT_WRITER_OK,
43 GST_JPEG_BIT_WRITER_INVALID_DATA,
44 GST_JPEG_BIT_WRITER_NO_MORE_SPACE,
45 GST_JPEG_BIT_WRITER_ERROR
46 } GstJpegBitWriterResult;
47 G_END_DECLS
48
49 GST_CODEC_PARSERS_API
50 GstJpegBitWriterResult gst_jpeg_bit_writer_frame_header (const GstJpegFrameHdr * frame_hdr,
51 GstJpegMarker marker,
52 guint8 * data,
53 guint * size);
54 GST_CODEC_PARSERS_API
55 GstJpegBitWriterResult gst_jpeg_bit_writer_scan_header (const GstJpegScanHdr * scan_hdr,
56 guint8 * data,
57 guint * size);
58 GST_CODEC_PARSERS_API
59 GstJpegBitWriterResult gst_jpeg_bit_writer_huffman_table (const GstJpegHuffmanTables * huff_tables,
60 guint8 * data,
61 guint * size);
62 GST_CODEC_PARSERS_API
63 GstJpegBitWriterResult gst_jpeg_bit_writer_quantization_table (const GstJpegQuantTables * quant_tables,
64 guint8 * data,
65 guint * size);
66 GST_CODEC_PARSERS_API
67 GstJpegBitWriterResult gst_jpeg_bit_writer_restart_interval (guint16 interval,
68 guint8 * data,
69 guint * size);
70 GST_CODEC_PARSERS_API
71 GstJpegBitWriterResult gst_jpeg_bit_writer_segment_with_data (GstJpegMarker marker,
72 guint8 * seg_data,
73 guint seg_size,
74 guint8 * data,
75 guint * size);
76 #endif /* __GST_JPEG_BIT_WRITER_H__ */