#include "libavutil/mem.h"
#include "cbs.h"
#include "cbs_h266.h"
#include "parser.h"
Go to the source code of this file.
|
static int | get_format (const H266RawSPS *sps) |
|
static int | find_frame_end (AVCodecParserContext *s, const uint8_t *buf, int buf_size) |
| Find the end of the current frame in the bitstream. More...
|
|
static int | get_pict_type (const CodedBitstreamFragment *pu) |
|
static void | set_parser_ctx (AVCodecParserContext *s, AVCodecContext *avctx, const PuInfo *pu) |
|
static void | get_slice_poc (VVCParserContext *s, int *poc, const H266RawSPS *sps, const H266RawPictureHeader *ph, const H266RawSliceHeader *slice, void *log_ctx) |
|
static void | au_detector_init (AuDetector *d) |
|
static int | is_au_start (VVCParserContext *s, const PuInfo *pu, void *log_ctx) |
|
static int | get_pu_info (PuInfo *info, const CodedBitstreamH266Context *h266, const CodedBitstreamFragment *pu, void *logctx) |
|
static int | append_au (AVPacket *pkt, const uint8_t *buf, int buf_size) |
|
static int | parse_nal_units (AVCodecParserContext *s, const uint8_t *buf, int buf_size, AVCodecContext *avctx) |
| Parse NAL units of found picture and decode some basic information. More...
|
|
static int | combine_au (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **buf, int *buf_size) |
| Combine PU to AU. More...
|
|
static int | vvc_parser_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) |
|
static av_cold int | vvc_parser_init (AVCodecParserContext *s) |
|
static av_cold void | vvc_parser_close (AVCodecParserContext *s) |
|
◆ START_CODE
#define START_CODE 0x000001 |
start_code_prefix_one_3bytes
Definition at line 28 of file vvc_parser.c.
◆ IS_IDR
◆ IS_H266_SLICE
◆ get_format()
◆ find_frame_end()
Find the end of the current frame in the bitstream.
- Returns
- the position of the first byte of the next frame, or END_NOT_FOUND
Definition at line 85 of file vvc_parser.c.
Referenced by vvc_parser_parse().
◆ get_pict_type()
◆ set_parser_ctx()
◆ get_slice_poc()
◆ au_detector_init()
◆ is_au_start()
◆ get_pu_info()
◆ append_au()
static int append_au |
( |
AVPacket * |
pkt, |
|
|
const uint8_t * |
buf, |
|
|
int |
buf_size |
|
) |
| |
|
static |
◆ parse_nal_units()
Parse NAL units of found picture and decode some basic information.
- Parameters
-
s | parser context. |
avctx | codec context. |
buf | buffer with field/frame data. |
buf_size | size of the buffer. |
- Returns
- < 0 for error, == 0 for a complete au, > 0 is not a completed au.
Definition at line 342 of file vvc_parser.c.
Referenced by combine_au().
◆ combine_au()
Combine PU to AU.
- Parameters
-
s | parser context. |
avctx | codec context. |
buf | buffer to a PU. |
buf_size | size of the buffer. |
- Returns
- < 0 for error, == 0 a complete au, > 0 not a completed au.
Definition at line 390 of file vvc_parser.c.
Referenced by vvc_parser_parse().
◆ vvc_parser_parse()
◆ vvc_parser_init()
◆ vvc_parser_close()
◆ pix_fmts_8bit
◆ pix_fmts_10bit
◆ decompose_unit_types
◆ ff_vvc_parser
static int vvc_parser_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)