FFmpeg  4.0
Data Structures | Macros | Functions
h2645_parse.h File Reference
#include <stdint.h>
#include "avcodec.h"
#include "get_bits.h"

Go to the source code of this file.

Data Structures

struct  H2645NAL
 
struct  H2645RBSP
 
struct  H2645Packet
 

Macros

#define MAX_MBPAIR_SIZE   (256*1024)
 

Functions

int ff_h2645_extract_rbsp (const uint8_t *src, int length, H2645RBSP *rbsp, H2645NAL *nal, int small_padding)
 Extract the raw (unescaped) bitstream. More...
 
int ff_h2645_packet_split (H2645Packet *pkt, const uint8_t *buf, int length, void *logctx, int is_nalff, int nal_length_size, enum AVCodecID codec_id, int small_padding)
 Split an input packet into NAL units. More...
 
void ff_h2645_packet_uninit (H2645Packet *pkt)
 Free all the allocated memory in the packet. More...
 
static int get_nalsize (int nal_length_size, const uint8_t *buf, int buf_size, int *buf_index, void *logctx)
 

Macro Definition Documentation

◆ MAX_MBPAIR_SIZE

#define MAX_MBPAIR_SIZE   (256*1024)

Definition at line 29 of file h2645_parse.h.

Referenced by ff_h2645_packet_split().

Function Documentation

◆ ff_h2645_extract_rbsp()

int ff_h2645_extract_rbsp ( const uint8_t src,
int  length,
H2645RBSP rbsp,
H2645NAL nal,
int  small_padding 
)

Extract the raw (unescaped) bitstream.

Definition at line 33 of file h2645_parse.c.

Referenced by ff_h2645_packet_split(), generate_fake_vps(), and parse_nal_units().

◆ ff_h2645_packet_split()

int ff_h2645_packet_split ( H2645Packet pkt,
const uint8_t buf,
int  length,
void logctx,
int  is_nalff,
int  nal_length_size,
enum AVCodecID  codec_id,
int  small_padding 
)

Split an input packet into NAL units.

Definition at line 263 of file h2645_parse.c.

Referenced by cbs_h2645_split_fragment(), decode_extradata_ps(), decode_nal_units(), extract_extradata_h2645(), hevc_decode_nal_units(), and parse_nal_units().

◆ ff_h2645_packet_uninit()

void ff_h2645_packet_uninit ( H2645Packet pkt)

◆ get_nalsize()

static int get_nalsize ( int  nal_length_size,
const uint8_t buf,
int  buf_size,
int buf_index,
void logctx 
)
inlinestatic

Definition at line 99 of file h2645_parse.h.

Referenced by ff_h2645_packet_split(), and parse_nal_units().