#include "libavutil/common.h"
#include "golomb.h"
#include "hevc.h"
#include "hevc_parse.h"
#include "hevc_ps.h"
#include "hevc_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 |
◆ 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 183 of file hevc_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 260 of file hevc_parser.c.
Referenced by hevc_parse().
◆ hevc_parse()
◆ hevc_parser_close()
◆ ff_hevc_parser
static int hevc_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)