sei.c File Reference

Functions to implement SEI messages. More...

#include "contributors.h"
#include <math.h>
#include "global.h"
#include "memalloc.h"
#include "sei.h"
#include "vlc.h"
#include "header.h"
#include "mbuffer.h"
#include "parset.h"

Include dependency graph for sei.c:

Go to the source code of this file.

Data Structures

struct  tone_mapping_struct_tmp
 Interpret the HDR tone-mapping SEI message (JVT-T060). More...

Functions

void InterpretSEIMessage (byte *msg, int size, ImageParameters *img)
void interpret_spare_pic (byte *payload, int size, ImageParameters *img)
void interpret_subsequence_info (byte *payload, int size, ImageParameters *img)
void interpret_subsequence_layer_characteristics_info (byte *payload, int size, ImageParameters *img)
void interpret_subsequence_characteristics_info (byte *payload, int size, ImageParameters *img)
void interpret_scene_information (byte *payload, int size, ImageParameters *img)
void interpret_filler_payload_info (byte *payload, int size, ImageParameters *img)
void interpret_user_data_unregistered_info (byte *payload, int size, ImageParameters *img)
void interpret_user_data_registered_itu_t_t35_info (byte *payload, int size, ImageParameters *img)
void interpret_pan_scan_rect_info (byte *payload, int size, ImageParameters *img)
void interpret_recovery_point_info (byte *payload, int size, ImageParameters *img)
void interpret_dec_ref_pic_marking_repetition_info (byte *payload, int size, ImageParameters *img)
void interpret_full_frame_freeze_info (byte *payload, int size, ImageParameters *img)
void interpret_full_frame_freeze_release_info (byte *payload, int size, ImageParameters *img)
void interpret_full_frame_snapshot_info (byte *payload, int size, ImageParameters *img)
void interpret_progressive_refinement_start_info (byte *payload, int size, ImageParameters *img)
void interpret_progressive_refinement_end_info (byte *payload, int size, ImageParameters *img)
void interpret_motion_constrained_slice_group_set_info (byte *payload, int size, ImageParameters *img)
void interpret_film_grain_characteristics_info (byte *payload, int size, ImageParameters *img)
void interpret_deblocking_filter_display_preference_info (byte *payload, int size, ImageParameters *img)
void interpret_stereo_video_info_info (byte *payload, int size, ImageParameters *img)
void interpret_reserved_info (byte *payload, int size, ImageParameters *img)
void interpret_buffering_period_info (byte *payload, int size, ImageParameters *img)
void interpret_picture_timing_info (byte *payload, int size, ImageParameters *img)
void interpret_tone_mapping (byte *payload, int size, ImageParameters *img)
void interpret_post_filter_hints_info (byte *payload, int size, ImageParameters *img)

Variables

int UsedBits
seq_parameter_set_rbsp_t SeqParSet [MAXSPS]


Detailed Description

Functions to implement SEI messages.

Author:
Main contributors (see contributors.h for copyright, address and affiliation details)

Definition in file sei.c.


Function Documentation

void interpret_buffering_period_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the Buffering period SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 1587 of file sei.c.

References Bitstream::bitstream_length, Bitstream::frame_bitoffset, Bitstream::streamBuffer, u_v(), and ue_v().

Referenced by InterpretSEIMessage().

Here is the call graph for this function:

void interpret_deblocking_filter_display_preference_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the deblocking filter display preference SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 1443 of file sei.c.

References Bitstream::bitstream_length, Bitstream::frame_bitoffset, Bitstream::streamBuffer, u_1(), and ue_v().

Referenced by InterpretSEIMessage().

Here is the call graph for this function:

void interpret_dec_ref_pic_marking_repetition_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the Decoded Picture Buffer Management Repetition SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 948 of file sei.c.

References Bitstream::bitstream_length, dec_ref_pic_marking(), DecRefPicMarking_s::difference_of_pic_nums_minus1, Bitstream::frame_bitoffset, DecRefPicMarking_s::long_term_frame_idx, DecRefPicMarking_s::long_term_pic_num, DecRefPicMarking_s::max_long_term_frame_idx_plus1, DecRefPicMarking_s::memory_management_control_operation, DecRefPicMarking_s::Next, Bitstream::streamBuffer, u_1(), and ue_v().

Referenced by InterpretSEIMessage().

Here is the call graph for this function:

void interpret_filler_payload_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the Filler payload SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 698 of file sei.c.

Referenced by InterpretSEIMessage().

void interpret_film_grain_characteristics_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the film grain characteristics SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 1329 of file sei.c.

References Bitstream::bitstream_length, Bitstream::frame_bitoffset, se_v(), Bitstream::streamBuffer, u_1(), u_v(), and ue_v().

Referenced by InterpretSEIMessage().

Here is the call graph for this function:

void interpret_full_frame_freeze_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the Full-frame freeze SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 1081 of file sei.c.

References Bitstream::bitstream_length, Bitstream::frame_bitoffset, Bitstream::streamBuffer, and ue_v().

Referenced by InterpretSEIMessage().

Here is the call graph for this function:

void interpret_full_frame_freeze_release_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the Full-frame freeze release SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 1117 of file sei.c.

Referenced by InterpretSEIMessage().

void interpret_full_frame_snapshot_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the Full-frame snapshot SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 1145 of file sei.c.

References Bitstream::bitstream_length, Bitstream::frame_bitoffset, Bitstream::streamBuffer, and ue_v().

Referenced by InterpretSEIMessage().

Here is the call graph for this function:

void interpret_motion_constrained_slice_group_set_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the Motion-constrained slice group set SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 1263 of file sei.c.

References Bitstream::bitstream_length, CeilLog2(), Bitstream::frame_bitoffset, Bitstream::streamBuffer, u_1(), u_v(), and ue_v().

Referenced by InterpretSEIMessage().

Here is the call graph for this function:

void interpret_pan_scan_rect_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the Pan scan rectangle SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 837 of file sei.c.

References Bitstream::bitstream_length, Bitstream::frame_bitoffset, se_v(), Bitstream::streamBuffer, u_1(), and ue_v().

Referenced by InterpretSEIMessage().

Here is the call graph for this function:

void interpret_picture_timing_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the Picture timing SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 1667 of file sei.c.

References Bitstream::bitstream_length, error(), Bitstream::frame_bitoffset, i_v(), Bitstream::streamBuffer, u_1(), and u_v().

Referenced by InterpretSEIMessage().

Here is the call graph for this function:

void interpret_post_filter_hints_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the post filter hints SEI message (JVT-U035).

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 2119 of file sei.c.

References Bitstream::bitstream_length, Bitstream::frame_bitoffset, free_mem3Dint(), get_mem3Dint(), se_v(), Bitstream::streamBuffer, u_1(), u_v(), and ue_v().

Referenced by InterpretSEIMessage().

Here is the call graph for this function:

void interpret_progressive_refinement_end_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the Progressive refinement segment end SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 1224 of file sei.c.

References Bitstream::bitstream_length, Bitstream::frame_bitoffset, Bitstream::streamBuffer, and ue_v().

Referenced by InterpretSEIMessage().

Here is the call graph for this function:

void interpret_progressive_refinement_start_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the Progressive refinement segment start SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 1183 of file sei.c.

References Bitstream::bitstream_length, Bitstream::frame_bitoffset, Bitstream::streamBuffer, and ue_v().

Referenced by InterpretSEIMessage().

Here is the call graph for this function:

void interpret_recovery_point_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the Random access point SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 898 of file sei.c.

References Bitstream::bitstream_length, Bitstream::frame_bitoffset, Bitstream::streamBuffer, u_1(), u_v(), and ue_v().

Referenced by InterpretSEIMessage().

Here is the call graph for this function:

void interpret_reserved_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the Reserved SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 1551 of file sei.c.

Referenced by InterpretSEIMessage().

void interpret_scene_information ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the Scene information SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 650 of file sei.c.

References Bitstream::bitstream_length, Bitstream::frame_bitoffset, Bitstream::streamBuffer, and ue_v().

Referenced by InterpretSEIMessage().

Here is the call graph for this function:

void interpret_spare_pic ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the spare picture SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

KS: could not check this function, description is unclear (as stated in Ed. Note)

Definition at line 197 of file sei.c.

References Bitstream::bitstream_length, Bitstream::frame_bitoffset, free_mem2Dpel(), free_mem3D(), get_mem2Dpel(), get_mem3D(), p_out, Bitstream::streamBuffer, u_1(), and ue_v().

Referenced by InterpretSEIMessage().

Here is the call graph for this function:

void interpret_stereo_video_info_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the stereo video info SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 1490 of file sei.c.

References Bitstream::bitstream_length, Bitstream::frame_bitoffset, Bitstream::streamBuffer, and u_1().

Referenced by InterpretSEIMessage().

Here is the call graph for this function:

void interpret_subsequence_characteristics_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the Sub-sequence characteristics SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 558 of file sei.c.

References Bitstream::bitstream_length, Bitstream::frame_bitoffset, Bitstream::streamBuffer, u_1(), u_v(), and ue_v().

Referenced by InterpretSEIMessage().

Here is the call graph for this function:

void interpret_subsequence_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the Sub-sequence information SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 452 of file sei.c.

References Bitstream::bitstream_length, Bitstream::frame_bitoffset, Bitstream::streamBuffer, u_1(), and ue_v().

Referenced by InterpretSEIMessage().

Here is the call graph for this function:

void interpret_subsequence_layer_characteristics_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the Sub-sequence layer characteristics SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 509 of file sei.c.

References Bitstream::bitstream_length, Bitstream::frame_bitoffset, Bitstream::streamBuffer, u_1(), u_v(), and ue_v().

Referenced by InterpretSEIMessage().

Here is the call graph for this function:

void interpret_user_data_registered_itu_t_t35_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the User data registered by ITU-T T.35 SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 791 of file sei.c.

Referenced by InterpretSEIMessage().

void interpret_user_data_unregistered_info ( byte *  payload,
int  size,
ImageParameters *  img 
)

Interpret the User data unregistered SEI message.

Parameters:
payload a pointer that point to the sei payload
size the size of the sei message
img the image pointer

Definition at line 742 of file sei.c.

Referenced by InterpretSEIMessage().

void InterpretSEIMessage ( byte *  msg,
int  size,
ImageParameters *  img 
)


Documentation generated with DoxyGen