mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
59 lines
2.2 KiB
C
59 lines
2.2 KiB
C
/* GStreamer
|
|
* Copyright (C) 2022 Intel Corporation
|
|
* Author: He Junyan <junyan.he@intel.com>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library; if not, write to the0
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
* Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#ifndef __GST_VP9_BIT_WRITER_H__
|
|
#define __GST_VP9_BIT_WRITER_H__
|
|
|
|
#include <gst/codecparsers/gstvp9parser.h>
|
|
#include <gst/codecparsers/codecparsers-prelude.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/**
|
|
* GstVp9BitWriterResult:
|
|
* @GST_VP9_BIT_WRITER_OK: The writing succeeded
|
|
* @GST_VP9_BIT_WRITER_INVALID_DATA: The input data to write is invalid
|
|
* @GST_VP9_BIT_WRITER_NO_MORE_SPACE: The output does not have enough size
|
|
* @GST_VP9_BIT_WRITER_ERROR: An general error occurred when writing
|
|
*
|
|
* The result of writing VP9 data into bit stream.
|
|
*
|
|
* Since: 1.24
|
|
*/
|
|
typedef enum
|
|
{
|
|
GST_VP9_BIT_WRITER_OK,
|
|
GST_VP9_BIT_WRITER_INVALID_DATA,
|
|
GST_VP9_BIT_WRITER_NO_MORE_SPACE,
|
|
GST_VP9_BIT_WRITER_ERROR
|
|
} GstVp9BitWriterResult;
|
|
|
|
GST_CODEC_PARSERS_API
|
|
GstVp9BitWriterResult gst_vp9_bit_writer_frame_header (const GstVp9FrameHdr * frame_hdr,
|
|
guint8 * data,
|
|
guint * size);
|
|
GST_CODEC_PARSERS_API
|
|
GstVp9BitWriterResult gst_vp9_bit_writer_superframe_info (guint frame_num,
|
|
const gint * frame_size,
|
|
guint8 * data,
|
|
guint * size);
|
|
|
|
G_END_DECLS
|
|
#endif /* __GST_VP9_BIT_WRITER_H__ */
|