xine-lib  1.2.9
Functions
nal.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "nal.h"
#include <xine/xine_internal.h>

Functions

static struct nal_buffercreate_nal_buffer (uint8_t max_size)
 
static void free_nal_buffer (struct nal_buffer *nal_buffer)
 
static void nal_buffer_append (struct nal_buffer *nal_buffer, struct nal_unit *nal)
 
static void nal_buffer_remove (struct nal_buffer *nal_buffer, struct nal_unit *nal)
 
static struct nal_unitnal_buffer_get_last (struct nal_buffer *nal_buffer)
 
static struct nal_unitnal_buffer_get_by_sps_id (struct nal_buffer *nal_buffer, uint32_t seq_parameter_set_id)
 
static struct nal_unitnal_buffer_get_by_pps_id (struct nal_buffer *nal_buffer, uint32_t pic_parameter_set_id)
 
static struct nal_unitcreate_nal_unit ()
 
static void lock_nal_unit (struct nal_unit *nal)
 
static void release_nal_unit (struct nal_unit *nal)
 

Function Documentation

◆ create_nal_buffer()

static struct nal_buffer* create_nal_buffer ( uint8_t  max_size)
static

References nal_buffer::max_size.

Referenced by init_parser().

◆ create_nal_unit()

static struct nal_unit* create_nal_unit ( void  )
static

create a new nal unit, with a lock_counter of 1

References nal_unit::lock_counter.

Referenced by parse_nal_header().

◆ free_nal_buffer()

static void free_nal_buffer ( struct nal_buffer nal_buffer)
static

destroys a nal buffer. all referenced nals are released

References nal_buffer::first, nal_unit::next, and release_nal_unit().

Referenced by free_parser().

◆ lock_nal_unit()

static void lock_nal_unit ( struct nal_unit nal)
static

◆ nal_buffer_append()

static void nal_buffer_append ( struct nal_buffer nal_buffer,
struct nal_unit nal 
)
static

◆ nal_buffer_get_by_pps_id()

static struct nal_unit* nal_buffer_get_by_pps_id ( struct nal_buffer nal_buffer,
uint32_t  pic_parameter_set_id 
)
static

◆ nal_buffer_get_by_sps_id()

static struct nal_unit* nal_buffer_get_by_sps_id ( struct nal_buffer nal_buffer,
uint32_t  seq_parameter_set_id 
)
static

◆ nal_buffer_get_last()

static struct nal_unit* nal_buffer_get_last ( struct nal_buffer nal_buffer)
static

returns the last element in the buffer

References nal_buffer::last.

Referenced by parse_sei().

◆ nal_buffer_remove()

static void nal_buffer_remove ( struct nal_buffer nal_buffer,
struct nal_unit nal 
)
static

◆ release_nal_unit()

static void release_nal_unit ( struct nal_unit nal)
static