xine-lib  1.2.9
Data Structures | Enumerations | Functions | Variables
nal.h File Reference
#include <stdint.h>
#include <vdpau/vdpau.h>

Go to the source code of this file.

Data Structures

struct  hrd_parameters
 
struct  seq_parameter_set_rbsp
 
struct  pic_parameter_set_rbsp
 
struct  sei_message
 
struct  slice_header
 
struct  nal_unit
 
struct  nal_buffer
 

Enumerations

enum  nal_unit_types {
  NAL_UNSPECIFIED = 0, NAL_SLICE, NAL_PART_A, NAL_PART_B,
  NAL_PART_C, NAL_SLICE_IDR, NAL_SEI, NAL_SPS,
  NAL_PPS, NAL_AU_DELIMITER, NAL_END_OF_SEQUENCE, NAL_END_OF_STREAM,
  NAL_FILLER_DATA, NAL_SPS_EXT
}
 
enum  pic_struct {
  DISP_FRAME = 0, DISP_TOP, DISP_BOTTOM, DISP_TOP_BOTTOM,
  DISP_BOTTOM_TOP, DISP_TOP_BOTTOM_TOP, DISP_BOTTOM_TOP_BOTTOM, DISP_FRAME_DOUBLING,
  DISP_FRAME_TRIPLING
}
 
enum  ct_type { CT_PROGRESSIVE = 0, CT_INTERLACED, CT_UNKNOWN, CT_RESERVED }
 
enum  slice_types {
  SLICE_P = 0, SLICE_B, SLICE_I, SLICE_SP,
  SLICE_SI
}
 
enum  aspect_ratio {
  ASPECT_UNSPECIFIED = 0, ASPECT_1_1, ASPECT_12_11, ASPECT_10_11,
  ASPECT_16_11, ASPECT_40_33, ASPECT_24_11, ASPECT_20_11,
  ASPECT_32_11, ASPECT_80_33, ASPECT_18_11, ASPECT_15_11,
  ASPECT_64_33, ASPECT_160_99, ASPECT_4_3, ASPECT_3_2,
  ASPECT_2_1, ASPECT_RESERVED, ASPECT_EXTENDED_SAR = 255, ASPECT_UNSPECIFIED = 0,
  ASPECT_1_1, ASPECT_12_11, ASPECT_10_11, ASPECT_16_11,
  ASPECT_40_33, ASPECT_24_11, ASPECT_20_11, ASPECT_32_11,
  ASPECT_80_33, ASPECT_18_11, ASPECT_15_11, ASPECT_64_33,
  ASPECT_160_99, ASPECT_4_3, ASPECT_3_2, ASPECT_2_1,
  ASPECT_RESERVED, ASPECT_EXTENDED_SAR =255
}
 

Functions

static uint32_t slice_type (uint32_t slice_type)
 
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_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_unitnal_buffer_get_last (struct nal_buffer *nal_buffer)
 
static struct nal_unitcreate_nal_unit (void)
 
static void lock_nal_unit (struct nal_unit *nal)
 
static void release_nal_unit (struct nal_unit *nal)
 

Variables

static const uint8_t zigzag_4x4 [16]
 
static const uint8_t zigzag_8x8 [64]
 

Enumeration Type Documentation

◆ aspect_ratio

Enumerator
ASPECT_UNSPECIFIED 
ASPECT_1_1 
ASPECT_12_11 
ASPECT_10_11 
ASPECT_16_11 
ASPECT_40_33 
ASPECT_24_11 
ASPECT_20_11 
ASPECT_32_11 
ASPECT_80_33 
ASPECT_18_11 
ASPECT_15_11 
ASPECT_64_33 
ASPECT_160_99 
ASPECT_4_3 
ASPECT_3_2 
ASPECT_2_1 
ASPECT_RESERVED 
ASPECT_EXTENDED_SAR 
ASPECT_UNSPECIFIED 
ASPECT_1_1 
ASPECT_12_11 
ASPECT_10_11 
ASPECT_16_11 
ASPECT_40_33 
ASPECT_24_11 
ASPECT_20_11 
ASPECT_32_11 
ASPECT_80_33 
ASPECT_18_11 
ASPECT_15_11 
ASPECT_64_33 
ASPECT_160_99 
ASPECT_4_3 
ASPECT_3_2 
ASPECT_2_1 
ASPECT_RESERVED 
ASPECT_EXTENDED_SAR 

◆ ct_type

enum ct_type
Enumerator
CT_PROGRESSIVE 
CT_INTERLACED 
CT_UNKNOWN 
CT_RESERVED 

◆ nal_unit_types

Enumerator
NAL_UNSPECIFIED 
NAL_SLICE 
NAL_PART_A 
NAL_PART_B 
NAL_PART_C 
NAL_SLICE_IDR 
NAL_SEI 
NAL_SPS 
NAL_PPS 
NAL_AU_DELIMITER 
NAL_END_OF_SEQUENCE 
NAL_END_OF_STREAM 
NAL_FILLER_DATA 
NAL_SPS_EXT 

◆ pic_struct

enum pic_struct
Enumerator
DISP_FRAME 
DISP_TOP 
DISP_BOTTOM 
DISP_TOP_BOTTOM 
DISP_BOTTOM_TOP 
DISP_TOP_BOTTOM_TOP 
DISP_BOTTOM_TOP_BOTTOM 
DISP_FRAME_DOUBLING 
DISP_FRAME_TRIPLING 

◆ slice_types

Enumerator
SLICE_P 
SLICE_B 
SLICE_I 
SLICE_SP 
SLICE_SI 

Function Documentation

◆ create_nal_buffer()

static struct nal_buffer* create_nal_buffer ( uint8_t  max_size)
static

◆ create_nal_unit()

static struct nal_unit* create_nal_unit ( void  )
static

◆ free_nal_buffer()

static void free_nal_buffer ( struct nal_buffer nal_buffer)
static

◆ 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

◆ 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

◆ slice_type()

static uint32_t slice_type ( uint32_t  slice_type)
inlinestatic

Variable Documentation

◆ zigzag_4x4

const uint8_t zigzag_4x4[16]
static
Initial value:
= {
0+0*4, 1+0*4, 0+1*4, 0+2*4,
1+1*4, 2+0*4, 3+0*4, 2+1*4,
1+2*4, 0+3*4, 1+3*4, 2+2*4,
3+1*4, 3+2*4, 2+3*4, 3+3*4,
}

◆ zigzag_8x8

const uint8_t zigzag_8x8[64]
static
Initial value:
= {
0+0*8, 1+0*8, 0+1*8, 0+2*8,
1+1*8, 2+0*8, 3+0*8, 2+1*8,
1+2*8, 0+3*8, 0+4*8, 1+3*8,
2+2*8, 3+1*8, 4+0*8, 5+0*8,
4+1*8, 3+2*8, 2+3*8, 1+4*8,
0+5*8, 0+6*8, 1+5*8, 2+4*8,
3+3*8, 4+2*8, 5+1*8, 6+0*8,
7+0*8, 6+1*8, 5+2*8, 4+3*8,
3+4*8, 2+5*8, 1+6*8, 0+7*8,
1+7*8, 2+6*8, 3+5*8, 4+4*8,
5+3*8, 6+2*8, 7+1*8, 7+2*8,
6+3*8, 5+4*8, 4+5*8, 3+6*8,
2+7*8, 3+7*8, 4+6*8, 5+5*8,
6+4*8, 7+3*8, 7+4*8, 6+5*8,
5+6*8, 4+7*8, 5+7*8, 6+6*8,
7+5*8, 7+6*8, 6+7*8, 7+7*8,
}