FFmpeg
|
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "bytestream.h"
#include "cbs.h"
#include "cbs_internal.h"
#include "cbs_h264.h"
#include "cbs_h265.h"
#include "golomb.h"
#include "h264.h"
#include "h264_sei.h"
#include "h2645_parse.h"
#include "hevc.h"
#include "hevc_sei.h"
#include "cbs_h264_syntax_template.c"
#include "cbs_h265_syntax_template.c"
Go to the source code of this file.
Macros | |
#define | HEADER(name) |
#define | CHECK(call) |
#define | FUNC_NAME(rw, codec, name) cbs_ ## codec ## _ ## rw ## _ ## name |
#define | FUNC_H264(rw, name) FUNC_NAME(rw, h264, name) |
#define | FUNC_H265(rw, name) FUNC_NAME(rw, h265, name) |
#define | SUBSCRIPTS(subs,...) (subs > 0 ? ((int[subs + 1]){ subs, __VA_ARGS__ }) : NULL) |
#define | u(width, name, range_min, range_max) xu(width, name, current->name, range_min, range_max, 0) |
#define | flag(name) u(1, name, 0, 1) |
#define | ue(name, range_min, range_max) xue(name, current->name, range_min, range_max, 0) |
#define | se(name, range_min, range_max) xse(name, current->name, range_min, range_max, 0) |
#define | us(width, name, range_min, range_max, subs,...) xu(width, name, current->name, range_min, range_max, subs, __VA_ARGS__) |
#define | flags(name, subs,...) xu(1, name, current->name, 0, 1, subs, __VA_ARGS__) |
#define | ues(name, range_min, range_max, subs,...) xue(name, current->name, range_min, range_max, subs, __VA_ARGS__) |
#define | ses(name, range_min, range_max, subs,...) xse(name, current->name, range_min, range_max, subs, __VA_ARGS__) |
#define | fixed(width, name, value) |
#define | READ |
#define | READWRITE read |
#define | RWContext GetBitContext |
#define | xu(width, name, var, range_min, range_max, subs,...) |
#define | xue(name, var, range_min, range_max, subs,...) |
#define | xse(name, var, range_min, range_max, subs,...) |
#define | infer(name, value) |
#define | more_rbsp_data(var) ((var) = cbs_h2645_read_more_rbsp_data(rw)) |
#define | byte_alignment(rw) (get_bits_count(rw) % 8) |
#define | allocate(name, size) |
#define | FUNC(name) FUNC_H264(READWRITE, name) |
#define | FUNC(name) FUNC_H265(READWRITE, name) |
#define | WRITE |
#define | READWRITE write |
#define | RWContext PutBitContext |
#define | xu(width, name, var, range_min, range_max, subs,...) |
#define | xue(name, var, range_min, range_max, subs,...) |
#define | xse(name, var, range_min, range_max, subs,...) |
#define | infer(name, value) |
#define | more_rbsp_data(var) (var) |
#define | byte_alignment(rw) (put_bits_count(rw) % 8) |
#define | allocate(name, size) |
#define | FUNC(name) FUNC_H264(READWRITE, name) |
#define | FUNC(name) FUNC_H265(READWRITE, name) |
#define | cbs_h2645_replace_ps(h26n, ps_name, ps_var, id_element) |
Variables | |
const CodedBitstreamType | ff_cbs_type_h264 |
const CodedBitstreamType | ff_cbs_type_h265 |
#define HEADER | ( | name | ) |
Definition at line 237 of file cbs_h2645.c.
#define CHECK | ( | call | ) |
Definition at line 241 of file cbs_h2645.c.
Definition at line 247 of file cbs_h2645.c.
Definition at line 248 of file cbs_h2645.c.
Definition at line 249 of file cbs_h2645.c.
Definition at line 251 of file cbs_h2645.c.
#define u | ( | width, | |
name, | |||
range_min, | |||
range_max | |||
) | xu(width, name, current->name, range_min, range_max, 0) |
Definition at line 253 of file cbs_h2645.c.
Referenced by adpcm_compress_trellis(), adpcm_decode_frame(), application_data(), apply_lut(), apply_lut10(), aud(), av_gcd(), avui_decode_frame(), aw_pulse_set2(), bitpacked_decode_yuv422p10(), build_diff_map(), build_huff(), build_huff10(), calc_combed_score(), calc_persp_luts(), calculate_codes(), cinepak_decode_codebook(), comment(), convert_input(), cpia_decode_frame(), cqt_calc(), create_chrominance_lut(), decode_aybr(), decode_aybri(), decode_byry(), decode_byryi(), decode_c82i(), decode_c82p(), decode_ca2i(), decode_ca2p(), decode_ca4i(), decode_ca4p(), decode_fint(), decode_frame(), decode_subband_slice_buffered(), decode_ybr(), decode_ybr10(), decode_ybr10i(), decode_ybri(), decode_ybyr(), decode_yry10(), decode_yry10i(), decompress(), dht(), do_chromahold_slice(), do_chromakey_slice(), dqt(), dv_decode_ac(), dxv_decompress_cgo(), encode_422_bitstream(), encode_frame(), ff_print_debug_info2(), ff_rtjpeg_decode_frame_yuv420(), ff_sws_alphablendaway(), ff_vorbis_len2vlc(), ff_yuv2rgb_c_init_tables(), fill_elements(), fill_in_tongue(), fill_lut(), filter_frame(), frame_block_to_cell(), frame_header(), generate_joint_tables(), generate_kernel(), get_benchmark_time_stamps(), get_bits(), get_s16l(), hl_decode_mb_predict_luma(), hrd_parameters(), huff_build(), huff_build10(), huff_build12(), huffman_table(), init(), intra_predict(), inv_cdf(), jp2_find_codestream(), lcg_random(), main(), mode17(), mode23(), mode24(), model256_update(), model2_update(), model_update(), monochrome_color_location(), motionpixels_tableinit(), mp_build_rgb_yuv_table(), mp_set_zero_yuv(), mp_yuv_to_rgb(), mss2_blit_wmv9_template(), nal_unit_header(), pick_color(), pow_m1_4(), pps(), print_option(), process_slice_uyvy422(), process_slice_yuv420p(), process_slice_yuv422p(), process_slice_yuv444p(), profile_tier_level(), quantisation_table(), read_block_types(), read_high_coeffs(), render_default_font(), resample_cubic(), resample_linear(), reverse_dc_prediction(), rgb16_32ToUV_c_template(), rgb2yuv_fsb(), rso_write_header(), rv34_pred_4x4_block(), rv40_weak_loop_filter(), sbr_sum_square_c(), scan_float(), scan_header(), scan_int32(), sei_content_light_level(), sei_display_orientation(), sei_mastering_display(), sei_mastering_display_colour_volume(), sei_pic_timestamp(), sei_pic_timing(), sei_recovery_point(), sei_user_data_registered(), sign_extend(), slice_header(), slice_segment_header(), sps(), sps_extension(), sps_scc_extension(), svq3_add_idct_c(), svq3_decode_mb(), sws_scale(), tm2_decode_blocks(), uninit_options(), v308_decode_frame(), v308_encode_frame(), v408_decode_frame(), v408_encode_frame(), v410_decode_frame(), v410_encode_frame(), vp9_handle_packet(), vps(), vui_parameters(), wavpack_encode_block(), wv_get_value_float(), y216_decode_frame(), y41p_decode_frame(), y41p_encode_frame(), yuv2nv12cX_c(), yuv2p010cX_c(), yuv2p016cX_c(), yuv2rgb(), yuv2yuv(), yuv4_decode_frame(), yuv4_encode_frame(), and zero12v_decode_frame().
Definition at line 255 of file cbs_h2645.c.
Definition at line 256 of file cbs_h2645.c.
Referenced by hrd_parameters(), pps(), pps_range_extension(), pps_scc_extension(), pred_weight_table(), sei_buffering_period(), sei_display_orientation(), sei_pan_scan_rect(), sei_recovery_point(), slice_header(), slice_segment_header(), sps(), sps_extension(), sps_scc_extension(), st_ref_pic_set(), vps(), and vui_parameters().
Definition at line 258 of file cbs_h2645.c.
Referenced by decode_block_progressive(), mjpeg_decode_scan_progressive_ac(), mpeg2_metadata_update_fragment(), pps(), pps_scc_extension(), pred_weight_table(), read_ts(), slice_header(), slice_segment_header(), sps(), and vaapi_encode_mpeg2_init_sequence_params().
#define us | ( | width, | |
name, | |||
range_min, | |||
range_max, | |||
subs, | |||
... | |||
) | xu(width, name, current->name, range_min, range_max, subs, __VA_ARGS__) |
Definition at line 261 of file cbs_h2645.c.
Referenced by application_data(), av_dump_format(), comment(), frame_header(), get_metadata_duration(), huffman_table(), parse_read_interval(), parse_time_or_die(), pps(), pps_scc_extension(), print_report(), quantisation_table(), ref_pic_lists_modification(), scan_header(), sei_mastering_display(), sei_mastering_display_colour_volume(), sei_user_data_unregistered(), slice_segment_header(), sps(), and sps_scc_extension().
Definition at line 263 of file cbs_h2645.c.
#define ues | ( | name, | |
range_min, | |||
range_max, | |||
subs, | |||
... | |||
) | xue(name, current->name, range_min, range_max, subs, __VA_ARGS__) |
Definition at line 265 of file cbs_h2645.c.
Referenced by hrd_parameters(), pps(), scaling_list_data(), slice_segment_header(), sps(), st_ref_pic_set(), sub_layer_hrd_parameters(), and vps().
#define ses | ( | name, | |
range_min, | |||
range_max, | |||
subs, | |||
... | |||
) | xse(name, current->name, range_min, range_max, subs, __VA_ARGS__) |
Definition at line 267 of file cbs_h2645.c.
Referenced by pps_range_extension(), pred_weight_table(), scaling_list(), scaling_list_data(), sei_pan_scan_rect(), and sps().
Definition at line 270 of file cbs_h2645.c.
#define READ |
Definition at line 276 of file cbs_h2645.c.
#define READWRITE read |
Definition at line 350 of file cbs_h2645.c.
#define RWContext GetBitContext |
Definition at line 351 of file cbs_h2645.c.
Definition at line 353 of file cbs_h2645.c.
Referenced by extension_data(), sei(), sei_buffering_period(), sei_payload(), sei_user_data_registered(), and sei_user_data_unregistered().
#define xue | ( | name, | |
var, | |||
range_min, | |||
range_max, | |||
subs, | |||
... | |||
) |
Definition at line 359 of file cbs_h2645.c.
Referenced by dec_ref_pic_marking(), and ref_pic_list_modification().
#define xse | ( | name, | |
var, | |||
range_min, | |||
range_max, | |||
subs, | |||
... | |||
) |
Definition at line 365 of file cbs_h2645.c.
Definition at line 372 of file cbs_h2645.c.
#define more_rbsp_data | ( | var | ) | ((var) = cbs_h2645_read_more_rbsp_data(rw)) |
Definition at line 381 of file cbs_h2645.c.
Referenced by pps().
#define byte_alignment | ( | rw | ) | (get_bits_count(rw) % 8) |
Definition at line 383 of file cbs_h2645.c.
Definition at line 385 of file cbs_h2645.c.
Referenced by extension_data(), pps(), sei_payload(), sei_user_data_registered(), and sei_user_data_unregistered().
#define WRITE |
Definition at line 349 of file cbs_h2645.c.
#define READWRITE write |
Definition at line 350 of file cbs_h2645.c.
#define RWContext PutBitContext |
Definition at line 351 of file cbs_h2645.c.
Definition at line 353 of file cbs_h2645.c.
#define xue | ( | name, | |
var, | |||
range_min, | |||
range_max, | |||
subs, | |||
... | |||
) |
Definition at line 359 of file cbs_h2645.c.
#define xse | ( | name, | |
var, | |||
range_min, | |||
range_max, | |||
subs, | |||
... | |||
) |
Definition at line 365 of file cbs_h2645.c.
Definition at line 372 of file cbs_h2645.c.
#define more_rbsp_data | ( | var | ) | (var) |
Definition at line 381 of file cbs_h2645.c.
#define byte_alignment | ( | rw | ) | (put_bits_count(rw) % 8) |
Definition at line 383 of file cbs_h2645.c.
Definition at line 385 of file cbs_h2645.c.
#define cbs_h2645_replace_ps | ( | h26n, | |
ps_name, | |||
ps_var, | |||
id_element | |||
) |
Definition at line 703 of file cbs_h2645.c.
|
static |
Definition at line 35 of file cbs_h2645.c.
|
static |
Definition at line 87 of file cbs_h2645.c.
|
static |
Definition at line 143 of file cbs_h2645.c.
|
static |
Definition at line 186 of file cbs_h2645.c.
|
static |
Definition at line 307 of file cbs_h2645.c.
Referenced by extension_data(), and sei().
Definition at line 417 of file cbs_h2645.c.
Referenced by cbs_h2645_replace_ps().
|
static |
Definition at line 424 of file cbs_h2645.c.
Referenced by cbs_h264_free_sei(), and ff_cbs_h264_delete_sei_message().
Definition at line 446 of file cbs_h2645.c.
Referenced by cbs_h2645_replace_ps(), and ff_cbs_h264_add_sei_message().
Definition at line 455 of file cbs_h2645.c.
Referenced by cbs_h2645_replace_ps().
Definition at line 462 of file cbs_h2645.c.
Referenced by cbs_h265_read_nal_unit().
Definition at line 469 of file cbs_h2645.c.
Referenced by cbs_h265_read_nal_unit().
Definition at line 476 of file cbs_h2645.c.
Referenced by cbs_h265_read_nal_unit().
Definition at line 483 of file cbs_h2645.c.
Referenced by cbs_h265_read_nal_unit().
|
static |
Definition at line 490 of file cbs_h2645.c.
Referenced by cbs_h265_free_sei().
Definition at line 502 of file cbs_h2645.c.
Referenced by cbs_h265_read_nal_unit().
|
static |
Definition at line 511 of file cbs_h2645.c.
Referenced by cbs_h2645_split_fragment().
|
static |
Definition at line 544 of file cbs_h2645.c.
cbs_h2645_replace_ps | ( | cbs_h2645_replace_ps( | 4, |
cbs_h2645_replace_ps( | SPS, | ||
cbs_h2645_replace_ps( | sps, | ||
seq_parameter_set_id | |||
) |
Definition at line 730 of file cbs_h2645.c.
|
static |
Definition at line 899 of file cbs_h2645.c.
|
static |
Definition at line 1053 of file cbs_h2645.c.
Referenced by cbs_h2645_write_nal_unit().
|
static |
Definition at line 1190 of file cbs_h2645.c.
Referenced by cbs_h2645_write_nal_unit().
|
static |
Definition at line 1320 of file cbs_h2645.c.
|
static |
Definition at line 1379 of file cbs_h2645.c.
|
static |
Definition at line 1466 of file cbs_h2645.c.
|
static |
Definition at line 1481 of file cbs_h2645.c.
int ff_cbs_h264_add_sei_message | ( | CodedBitstreamContext * | ctx, |
CodedBitstreamFragment * | au, | ||
const H264RawSEIPayload * | payload | ||
) |
Add an SEI message to an access unit.
Definition at line 1524 of file cbs_h2645.c.
Referenced by h264_metadata_filter().
int ff_cbs_h264_delete_sei_message | ( | CodedBitstreamContext * | ctx, |
CodedBitstreamFragment * | access_unit, | ||
CodedBitstreamUnit * | nal_unit, | ||
int | position | ||
) |
Delete an SEI message from an access unit.
Deletes from nal_unit, which must be an SEI NAL unit. If this is the last message in nal_unit, also deletes it from access_unit.
Definition at line 1586 of file cbs_h2645.c.
Referenced by h264_metadata_filter().
const CodedBitstreamType ff_cbs_type_h264 |
Definition at line 1498 of file cbs_h2645.c.
const CodedBitstreamType ff_cbs_type_h265 |
Definition at line 1511 of file cbs_h2645.c.