#include "libavutil/common.h"
#include "libavutil/mem.h"
#include "golomb.h"
#include "hevc.h"
#include "parse.h"
#include "ps.h"
#include "sei.h"
#include "h2645_parse.h"
#include "parser.h"
Go to the source code of this file.
|
static int | hevc_parse_slice_header (AVCodecParserContext *s, H2645NAL *nal, AVCodecContext *avctx) |
|
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 | hevc_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 | hevc_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) |
|
static void | hevc_parser_close (AVCodecParserContext *s) |
|
◆ START_CODE
#define START_CODE 0x000001 |
start_code_prefix_one_3bytes
Definition at line 34 of file parser.c.
◆ IS_IRAP_NAL
#define IS_IRAP_NAL |
( |
|
nal | ) |
(nal->type >= 16 && nal->type <= 23) |
◆ IS_IDR_NAL
◆ hevc_parse_slice_header()
◆ 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. |
Definition at line 179 of file parser.c.
Referenced by hevc_parse().
◆ hevc_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 257 of file parser.c.
Referenced by hevc_parse().
◆ hevc_parse()
◆ hevc_parser_close()
◆ ff_hevc_parser
Initial value:
Definition at line 355 of file parser.c.
static int hevc_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)