FFmpeg
Loading...
Searching...
No Matches
cbs_vp8.c File Reference
#include "libavutil/avassert.h"
#include "cbs.h"
#include "cbs_internal.h"
#include "cbs_vp8.h"
#include <stdbool.h>
#include "cbs_vp8_syntax_template.c"

Go to the source code of this file.

Data Structures

struct  CBSVP8BoolDecoder
 

Macros

#define DEFAULT_PROB   0x80
 
#define HEADER(name)
 
#define CHECK(call)
 
#define FUNC_NAME(rw, codec, name)
 
#define FUNC_VP8(rw, name)
 
#define FUNC(name)
 
#define SUBSCRIPTS(subs, ...)
 
#define f(width, name)
 
#define bc_f(width, name)
 
#define bc_s(width, name)
 
#define bc_fs(width, name, subs, ...)
 
#define bc_ss(width, name, subs, ...)
 
#define bc_b(name)
 
#define bc_b_prob(prob, name)
 
#define READ
 
#define READWRITE   read
 
#define RWContext   GetBitContext
 
#define CBSVP8BoolCodingRW   CBSVP8BoolDecoder
 
#define xf(width, name, subs, ...)
 
#define fixed(width, name, value)
 
#define bc_unsigned_subs(width, prob, enable_trace, name, subs, ...)
 
#define bc_signed_subs(width, prob, name, subs, ...)
 

Functions

static int cbs_vp8_bool_decoder_init (CBSVP8BoolDecoder *decoder, GetBitContext *gbc)
 
static bool cbs_vp8_bool_decoder_fill_value (CBSVP8BoolDecoder *decoder)
 
static int cbs_vp8_bool_decoder_read_bool (CBSVP8BoolDecoder *decoder, const uint8_t prob, uint8_t *output)
 
static int cbs_vp8_bool_decoder_read_literal (CBSVP8BoolDecoder *decoder, const uint8_t prob, uint32_t num_bits, uint32_t *output)
 
static int cbs_vp8_bool_decoder_read_unsigned (CodedBitstreamContext *ctx, CBSVP8BoolDecoder *bool_decoder, int width, uint8_t prob, const char *name, const int *subscripts, uint32_t *write_to, bool trace_enable)
 
static int cbs_vp8_bool_decoder_read_signed (CodedBitstreamContext *ctx, CBSVP8BoolDecoder *bool_decoder, int width, uint8_t prob, const char *name, const int *subscripts, int32_t *write_to)
 
static int cbs_vp8_read_unsigned_le (CodedBitstreamContext *ctx, GetBitContext *gbc, int width, const char *name, const int *subscripts, uint32_t *write_to, uint32_t range_min, uint32_t range_max)
 
static int cbs_vp8_split_fragment (CodedBitstreamContext *ctx, CodedBitstreamFragment *frag, int header)
 
static int cbs_vp8_read_unit (CodedBitstreamContext *ctx, CodedBitstreamUnit *unit)
 
static int cbs_vp8_write_unit (CodedBitstreamContext *ctx, CodedBitstreamUnit *unit, PutBitContext *pbc)
 
static int cbs_vp8_assemble_fragment (CodedBitstreamContext *ctx, CodedBitstreamFragment *frag)
 

Variables

const uint8_t ff_vp8_token_update_probs [4][8][3][11]
 
static CodedBitstreamUnitTypeDescriptor cbs_vp8_unit_types []
 
const CodedBitstreamType ff_cbs_type_vp8
 

Macro Definition Documentation

◆ DEFAULT_PROB

#define DEFAULT_PROB   0x80

Definition at line 27 of file cbs_vp8.c.

◆ HEADER

#define HEADER ( name)
Value:
do { \
ff_cbs_trace_header(ctx, name); \
} while (0)
static AVFormatContext * ctx
const char * name
Definition qsvenc.c:142

Definition at line 217 of file cbs_vp8.c.

◆ CHECK

#define CHECK ( call)
Value:
do { \
int err = (call); \
if (err < 0) \
return err; \
} while (0)

Definition at line 222 of file cbs_vp8.c.

◆ FUNC_NAME

#define FUNC_NAME ( rw,
codec,
name )
Value:
cbs_##codec##_##rw##_##name
#define _

Definition at line 229 of file cbs_vp8.c.

◆ FUNC_VP8

#define FUNC_VP8 ( rw,
name )
Value:
FUNC_NAME(rw, vp8, name)
#define FUNC_NAME(rw, codec, name)
Definition cbs_av1.c:487

Definition at line 230 of file cbs_vp8.c.

◆ FUNC

#define FUNC ( name)
Value:
#define READWRITE
Definition cbs_h264.c:92
#define FUNC_VP8(rw, name)
Definition cbs_vp8.c:230

Definition at line 231 of file cbs_vp8.c.

◆ SUBSCRIPTS

#define SUBSCRIPTS ( subs,
... )
Value:
(subs > 0 ? ((int[subs + 1]){subs, __VA_ARGS__}) : NULL)
#define NULL
Definition coverity.c:32

Definition at line 233 of file cbs_vp8.c.

◆ f

#define f ( width,
name )
Value:
xf(width, name, 0, )
#define xf(width, name, subs,...)
Definition cbs_vp8.c:255
#define width
Definition dsp.h:89

Definition at line 236 of file cbs_vp8.c.

Referenced by a_weighting(), acalc_magnitudes(), add_bell(), add_frame_default(), alloc_bind_mem(), alloc_lut_if_necessary(), alloc_metrics(), alloc_sws_context(), apply_filter(), ARRAY_RENAME(), ARRAY_RENAME(), ath(), audiogen(), av1_frame_alloc(), av1_frame_unref(), av_bsf_get_by_name(), av_bsf_iterate(), av_demuxer_iterate(), av_double2int(), av_fifo_alloc2(), av_fifo_auto_grow_limit(), av_fifo_can_read(), av_fifo_can_write(), av_fifo_drain2(), av_fifo_elem_size(), av_fifo_freep2(), av_fifo_grow2(), av_fifo_peek(), av_fifo_peek_to_cb(), av_fifo_read(), av_fifo_read_to_cb(), av_fifo_reset2(), av_fifo_write(), av_fifo_write_from_cb(), av_filter_iterate(), av_float2int(), av_hex_dump(), av_muxer_iterate(), av_pkt_dump2(), av_probe_input_buffer2(), av_vk_frame_alloc(), avc_loopfilter_luma_inter_edge_ver_msa(), avfilter_get_by_name(), avfilter_graph_segment_create_filters(), b_weighting(), bands_dist(), batch_assign(), binary_export(), bl_intrp(), blur(), build_frame_code(), burn_frame16(), burn_frame8(), butterworth_bp_filter(), c_weighting(), calc_bark(), calc_channel_magnitudes(), calc_squared_error_and_weight(), cas_slice16(), cas_slice8(), celt_apply_preemph_filter(), celt_decode_coarse_energy(), celt_decode_final_energy(), celt_decode_fine_energy(), celt_decode_tf_changes(), celt_denormalize(), celt_enc_quant_pfilter(), celt_enc_tf(), celt_encode_frame(), celt_frame_mdct(), celt_frame_setup_input(), celt_gauge_psy_weight(), celt_postfilter(), celt_quant_coarse(), celt_quant_final(), celt_quant_fine(), celt_rng(), celt_search_for_dual_stereo(), celt_search_for_intensity(), celt_search_for_tf(), chebyshev1_bp_filter(), chebyshev2_bp_filter(), check_field_queue(), check_progress_consistency(), checkasm_check_key(), checkasm_fprintf(), checkasm_vfprintf(), checkasm_vfprintf(), choose_rct_params(), choose_rct_params_bayer(), close_filter_param(), color_config(), color_inc(), colormap_slice(), complex_stereo_interpolate_imag(), compress_texture(), compute_affinity(), compute_cache_c(), compute_contrast_function(), compute_error(), compute_kernel(), compute_lpc_coefs(), compute_max_lut(), compute_max_row(), compute_min_lut(), compute_min_row(), compute_quant_matrix(), compute_row(), config_input(), config_input(), copy_frame(), copy_frame_default(), cpu_fprintf(), create_file(), create_frame(), create_sink(), cudascale_filter_init(), d3d12va_transfer_data(), decfloat(), decide_frame_length(), decipher(), decode_adaptive45(), decode_adaptive6(), decode_bayer_frame(), decode_end(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_header(), decode_i2_frame(), decode_i_block(), decode_i_frame(), decode_i_mb(), decode_init(), decode_init(), decode_init_static(), decode_line_TMPL(), decode_p_block(), decode_p_frame(), decode_plane(), decode_remap(), decode_rgb_frame_TMPL(), decode_sb(), decode_sb_mem(), decode_slice(), decode_slice_header(), decode_slices(), decode_tiles(), decode_wmv9(), decompose_transform(), deflicker16(), deflicker8(), demux_bsf_flush(), demux_final_stats(), demux_send(), demux_stream_alloc(), demux_stream_group_alloc(), demuxer_from_ifile(), detect_colorspace(), difference(), difference2(), dilate(), disp_tree(), do_apply_filter(), do_chromahold16_slice(), do_chromahold_slice(), do_hsvhold16_slice(), do_hsvhold_slice(), do_init_filter(), draw_curves(), draw_dots(), draw_dots16(), draw_idots(), draw_idots16(), draw_line(), dshow_read_close(), dump_curves(), encipher(), encode_bayer_frame(), encode_float32_remap(), encode_float32_rgb_frame(), encode_frame(), encode_generate_icc_profile(), encode_histogram_remap(), encode_line_TMPL(), encode_plane(), encode_residual_fixed(), encode_rgb_frame_TMPL(), encode_slice(), encode_slice_header(), equalizer(), erode(), eval_expr(), evrc_decode_frame(), exec_discard_deps(), exp_quant_coarse(), extract_extradata_check(), extract_extradata_init(), ff_af_queue_add(), ff_append_inpad(), ff_append_inpad_free_name(), ff_append_outpad(), ff_append_outpad_free_name(), ff_bsf_child_class_iterate(), ff_celt_bitalloc(), ff_celt_decode_frame(), ff_celt_flush(), ff_celt_free(), ff_celt_init(), ff_celt_quant_bands(), ff_channel_layouts_ref(), ff_create_memory_sample(), ff_d3d12va_common_end_frame(), ff_d3d12va_get_surface_index(), ff_default_query_formats(), ff_ffv1_allocate_initial_states(), ff_ffv1_clear_slice_state(), ff_ffv1_compute_bits_per_plane(), ff_ffv1_encode_buffer_size(), ff_ffv1_init_slice_contexts(), ff_ffv1_init_slice_state(), ff_ffv1_init_slices_state(), ff_ffv1_parse_header(), ff_ffv1_read_extra_header(), ff_ffv1_vk_init_consts(), ff_ffv1_vk_set_common_sl(), ff_ffv1_write_extradata(), ff_formats_ref(), ff_free_mf(), ff_hevc_output_frames(), ff_img_read_packet(), ff_instantiate_mf(), ff_mpv_export_qp_table(), ff_mpv_pic_check_linesize(), ff_mpv_pic_check_linesize(), ff_opus_psy_celt_frame_init(), ff_opus_psy_celt_frame_process(), ff_opus_psy_postencode_update(), ff_progress_frame_alloc(), ff_progress_frame_await(), ff_progress_frame_get_buffer(), ff_progress_frame_report(), ff_progress_frame_unref(), ff_rtjpeg_decode_frame_yuv420(), ff_sbr_hf_apply_noise_0_rvv(), ff_sbr_hf_apply_noise_1_rvv(), ff_sbr_hf_apply_noise_2_rvv(), ff_sbr_hf_apply_noise_3_rvv(), ff_sipr_decode_frame_16k(), ff_slice_coord(), ff_thread_await_progress(), ff_thread_await_progress(), ff_thread_get_buffer(), ff_thread_get_ext_buffer(), ff_thread_release_ext_buffer(), ff_thread_report_progress(), ff_thread_report_progress(), ff_tx_init_tabs(), ff_tx_rdft_init(), ff_vc1_mc_4mv_luma(), ff_vc1_pred_b_mv_intfi(), ff_vfscanf(), ff_vk_aspect_flag(), ff_vk_count_images(), ff_vk_create_imageview(), ff_vk_create_imageviews(), ff_vk_exec_add_dep_frame(), ff_vk_exec_add_dep_sw_frame(), ff_vk_exec_mirror_sem_value(), ff_vk_exec_submit(), ff_vk_exec_update_frame(), ff_vk_map_usage_to_feats(), ff_vk_shader_update_img_array(), ff_vp9_decode_block(), ff_vp9_loopfilter_sb(), ff_vsscanf(), ff_vvc_inv_dct2_16(), ff_vvc_inv_dct2_32(), ff_vvc_inv_dct2_8(), fffilter(), fffloatscan(), ffintscan(), ffshgetc(), ffshlim(), ffstring_read(), fftoread(), FFTypedCBHandler< Iface, F, Args >::FFTypedCBHandler(), ffuflow(), ffv1_vk_buffer_size(), fget_next_word(), fifo_check_space(), fifo_peek_common(), fifo_write_common(), file_exists(), fill_lut(), filter_channel(), filter_channel(), filter_channels(), filter_channels(), filter_child_class_iterate(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_is_buffersrc(), filter_level_for_mb(), filter_mb(), filter_mb_row(), filter_mb_simple(), filter_opt_apply(), filter_parse(), filters(), filters(), filters(), finalize_frame(), find_first_break(), find_next_slice(), find_sidx(), fixstride(), flac_fifo_alloc(), flac_fifo_drain(), flac_fifo_free(), flac_fifo_grow(), flac_fifo_read(), flac_fifo_read_wrap(), flac_fifo_size(), flac_fifo_space(), flac_fifo_write(), flip_swap_frame(), float2half(), flush(), formats_declared(), frac_add(), frac_init(), frame_erasure(), frame_queue_destroy(), frame_queue_init(), frame_queue_last_pos(), frame_queue_nb_remaining(), frame_queue_next(), frame_queue_peek(), frame_queue_peek_last(), frame_queue_peek_next(), frame_queue_peek_readable(), frame_queue_peek_writable(), frame_queue_push(), frame_queue_signal(), frame_shift(), frame_size(), frame_tag(), free_field_queue(), fsize(), func_get(), func_uninit(), g726_decode(), gammafilter(), get(), get_am_factor(), get_bsize(), get_buffer_with_edge(), get_cm_factor(), get_float(), get_free_frame(), get_gm_factor(), get_height(), get_hm_factor(), get_l1dist(), get_lsp_poly(), get_matching_parameters(), get_median_factor(), get_packet(), get_pixel_format(), get_pm_factor(), get_preset_file(), get_qm_factor(), get_sx(), get_width(), graph_check_links(), graph_config_pointers(), graph_config_pointers(), graph_is_meta(), graph_parse(), guess_mv(), h263_handle_packet(), h264_export_enc_params(), hable(), half2float(), hdcd_analyze_prepare(), hdcd_integrate(), hex_dump_internal(), hexfloat(), highds(), hmuladd(), hn_lpf(), hom(), i2f(), idct(), idct_1d(), idct_put(), if(), ifile_close(), ifile_open(), indexof(), init(), init_com_mf(), init_decode_shader(), init_encode_shader(), init_filter(), init_indirect(), init_indirect(), init_mv(), init_reset_shader(), init_segment(), init_setup_shader(), inout_add(), input_packet_process(), input_thread(), int_cos(), interp_cubic_hermite_half(), interpolation_filter(), is_windows_reserved_device_name(), ist_iter(), istg_add(), istg_parse_lcevc(), istg_parse_tile_grid(), lead_decode_frame(), lerp(), lerpf(), lerpf(), lerpf(), lerpf(), lerpf(), lerpf(), lerpf(), lerpf(), lerpf(), lerpi16(), lerpi8(), link_inputs(), link_outputs(), LLVMFuzzerTestOneInput(), load_plane(), load_rgb_float32_frame(), load_rgb_frame_TMPL(), loop_filter(), loop_filter_params(), lpc2lsp(), lsf2poly(), lsp2poly(), lsp2polyf(), main(), main(), main(), make_field_queue(), mf_create(), midi(), mismatches_ref(), modplug_load_metadata(), mov_read_mfra(), mpegaudio_tableinit(), mpegaudiodec_common_tableinit(), mpegts_push_data(), mv_compression(), new_stream_video(), offset_audio(), open_filter_param(), open_model(), opt_preset(), output_frame(), parse(), parse_3dl(), parse_cinespace(), parse_cube(), parse_dat(), parse_fade(), parse_frames(), parse_high_res_grid(), parse_lpc(), parse_m3d(), parse_postfilter(), pgm_save(), pgmyuv_save(), pkt_dump_internal(), plot_freq(), plot_freqs(), png_write_chunk(), pnm_decode_frame(), pow_m1_4(), precalc_coefs(), pred_angular_h(), pred_angular_v(), prepare_picture(), print_audio_bytes(), print_bench_iter(), print_filter_formats(), print_flags(), print_functions(), process_anticollapse(), process_float(), process_get_band_noise(), projection_matrix(), pullup_release_frame(), pullup_submit_field(), put_float(), pvq_band_cost(), qdm2_fft_generate_tone(), quant_band_template(), quant_dn(), QUANT_FN(), QUANT_FN(), quantization_params(), query_formats(), queue_length(), read16_fft_bin(), read8_fft_bin(), read_fft_data(), read_header(), read_huffman_tables(), read_mfra(), read_tfra(), read_tfra(), readrate_sleep(), recon_frame_process(), refine_full(), refine_residual(), render_size(), renew_table3(), resolve_divisor(), ripemd128_transform(), ripemd160_transform(), ripemd256_transform(), ripemd320_transform(), rkmpp_set_sw_frame(), rndf(), rnnoise_model_from_file(), run_channel_fft(), run_psnr(), run_rct_search(), run_remap(), run_self_tests(), run_sort32(), rv20_decode_picture_header(), safe_filename(), safe_filename(), sanitizef(), saturation_matrix(), sbr_sum64x5_c(), scaler_sample(), scan_float(), scanexp(), scc_write_packet(), scte_data_cb(), segmentation_params(), send_packet(), set(), set_channel_layout(), set_micro_version(), set_rc_state_tab(), sha256_transform(), sha512_transform(), shift(), should_use_color(), slice_set_damaged(), spawn_empty_frame(), spawn_empty_frame(), spi_OpConstantFloat(), superframe_index(), swri_dither_init(), synth_lpc(), synth_window(), synthfilt_build_sb_samples(), thread_get_buffer_internal(), thread_set_name(), transform_step(), tree_balance(), tree_rotate(), uncompressed_header(), uninit_com_mf(), update_band_masking(), update_histogram_frame(), update_max_lut(), update_min_lut(), update_model2_to_6(), update_model3_to_7(), update_model5_to_6(), update_model6_to_7(), update_pts(), update_residue_parameter(), vk_decode_ffv1_init(), vk_ffv1_decode_slice(), vk_ffv1_end_frame(), vk_ffv1_start_frame(), vk_prores_end_frame(), vp8_alloc_frame(), vp8_release_frame(), vp9_decode_frame(), vp9_frame_alloc(), vp9_frame_unref(), vulkan_encode_ffv1_init(), vulkan_encode_ffv1_submit_frame(), vulkan_encode_init(), vulkan_frame_free(), vulkan_frames_init(), vulkan_free_internal(), vulkan_pool_alloc(), walk_band_high(), walk_band_low(), write_header(), wv_get_value_float(), xcbgrab_reposition(), and xml_export().

◆ bc_f

#define bc_f ( width,
name )
Value:
#define DEFAULT_PROB
Definition cbs_vp8.c:27
#define bc_unsigned_subs(width, prob, enable_trace, name, subs,...)
Definition cbs_vp8.c:271

Definition at line 239 of file cbs_vp8.c.

Referenced by frame_header(), mode_ref_lf_deltas(), quantization_params(), and update_segmentation().

◆ bc_s

#define bc_s ( width,
name )
Value:
#define bc_signed_subs(width, prob, name, subs,...)
Definition cbs_vp8.c:280

Definition at line 240 of file cbs_vp8.c.

Referenced by quantization_params().

◆ bc_fs

#define bc_fs ( width,
name,
subs,
... )
Value:
bc_unsigned_subs(width, DEFAULT_PROB, true, name, subs, __VA_ARGS__)

Definition at line 241 of file cbs_vp8.c.

Referenced by frame_header(), update_mv_probs(), update_segmentation(), and update_token_probs().

◆ bc_ss

#define bc_ss ( width,
name,
subs,
... )
Value:
bc_signed_subs(width, DEFAULT_PROB, name, subs, __VA_ARGS__)

Definition at line 243 of file cbs_vp8.c.

Referenced by mode_ref_lf_deltas(), and update_segmentation().

◆ bc_b

#define bc_b ( name)

◆ bc_b_prob

#define bc_b_prob ( prob,
name )
Value:
bc_unsigned_subs(1, prob, false, name, 0, )
#define prob(name, subs,...)
Definition cbs_vp9.c:252

Definition at line 248 of file cbs_vp8.c.

Referenced by update_token_probs().

◆ READ

#define READ

Definition at line 250 of file cbs_vp8.c.

◆ READWRITE

#define READWRITE   read

Definition at line 251 of file cbs_vp8.c.

◆ RWContext

#define RWContext   GetBitContext

Definition at line 252 of file cbs_vp8.c.

◆ CBSVP8BoolCodingRW

◆ xf

#define xf ( width,
name,
subs,
... )
Value:
do { \
uint32_t value; \
SUBSCRIPTS(subs, __VA_ARGS__), &value, \
current->name = value; \
} while (0)
#define MAX_UINT_BITS(length)
static int cbs_vp8_read_unsigned_le(CodedBitstreamContext *ctx, GetBitContext *gbc, int width, const char *name, const int *subscripts, uint32_t *write_to, uint32_t range_min, uint32_t range_max)
Definition cbs_vp8.c:184
double value
Definition eval.c:102
static struct @111144215057303131116103221376075045141373005341 current
#define SUBSCRIPTS(subs,...)
Definition cbs_apv.c:65

Definition at line 255 of file cbs_vp8.c.

Referenced by frame_header_obu(), and perlin_get().

◆ fixed

#define fixed ( width,
name,
value )
Value:
do { \
uint32_t fixed_value; \
CHECK(cbs_vp8_read_unsigned_le(ctx, rw, width, #name, 0, &fixed_value, \
value, value)); \
} while (0)

Definition at line 264 of file cbs_vp8.c.

◆ bc_unsigned_subs

#define bc_unsigned_subs ( width,
prob,
enable_trace,
name,
subs,
... )
Value:
do { \
uint32_t value; \
ctx, bool_coding_rw, width, prob, #name, \
SUBSCRIPTS(subs, __VA_ARGS__), &value, enable_trace)); \
current->name = value; \
} while (0)
static int cbs_vp8_bool_decoder_read_unsigned(CodedBitstreamContext *ctx, CBSVP8BoolDecoder *bool_decoder, int width, uint8_t prob, const char *name, const int *subscripts, uint32_t *write_to, bool trace_enable)
Definition cbs_vp8.c:125

Definition at line 271 of file cbs_vp8.c.

◆ bc_signed_subs

#define bc_signed_subs ( width,
prob,
name,
subs,
... )
Value:
do { \
ctx, bool_coding_rw, width, prob, #name, \
SUBSCRIPTS(subs, __VA_ARGS__), &value)); \
current->name = value; \
} while (0)
int32_t
static int cbs_vp8_bool_decoder_read_signed(CodedBitstreamContext *ctx, CBSVP8BoolDecoder *bool_decoder, int width, uint8_t prob, const char *name, const int *subscripts, int32_t *write_to)
Definition cbs_vp8.c:151

Definition at line 280 of file cbs_vp8.c.

Function Documentation

◆ cbs_vp8_bool_decoder_init()

static int cbs_vp8_bool_decoder_init ( CBSVP8BoolDecoder * decoder,
GetBitContext * gbc )
static

Definition at line 43 of file cbs_vp8.c.

Referenced by cbs_vp8_read_unit().

◆ cbs_vp8_bool_decoder_fill_value()

static bool cbs_vp8_bool_decoder_fill_value ( CBSVP8BoolDecoder * decoder)
static

Definition at line 57 of file cbs_vp8.c.

Referenced by cbs_vp8_bool_decoder_read_bool().

◆ cbs_vp8_bool_decoder_read_bool()

static int cbs_vp8_bool_decoder_read_bool ( CBSVP8BoolDecoder * decoder,
const uint8_t prob,
uint8_t * output )
static

◆ cbs_vp8_bool_decoder_read_literal()

static int cbs_vp8_bool_decoder_read_literal ( CBSVP8BoolDecoder * decoder,
const uint8_t prob,
uint32_t num_bits,
uint32_t * output )
static

◆ cbs_vp8_bool_decoder_read_unsigned()

static int cbs_vp8_bool_decoder_read_unsigned ( CodedBitstreamContext * ctx,
CBSVP8BoolDecoder * bool_decoder,
int width,
uint8_t prob,
const char * name,
const int * subscripts,
uint32_t * write_to,
bool trace_enable )
static

Definition at line 125 of file cbs_vp8.c.

◆ cbs_vp8_bool_decoder_read_signed()

static int cbs_vp8_bool_decoder_read_signed ( CodedBitstreamContext * ctx,
CBSVP8BoolDecoder * bool_decoder,
int width,
uint8_t prob,
const char * name,
const int * subscripts,
int32_t * write_to )
static

Definition at line 151 of file cbs_vp8.c.

◆ cbs_vp8_read_unsigned_le()

static int cbs_vp8_read_unsigned_le ( CodedBitstreamContext * ctx,
GetBitContext * gbc,
int width,
const char * name,
const int * subscripts,
uint32_t * write_to,
uint32_t range_min,
uint32_t range_max )
static

Definition at line 184 of file cbs_vp8.c.

◆ cbs_vp8_split_fragment()

static int cbs_vp8_split_fragment ( CodedBitstreamContext * ctx,
CodedBitstreamFragment * frag,
int header )
static

Definition at line 291 of file cbs_vp8.c.

◆ cbs_vp8_read_unit()

static int cbs_vp8_read_unit ( CodedBitstreamContext * ctx,
CodedBitstreamUnit * unit )
static

Definition at line 307 of file cbs_vp8.c.

◆ cbs_vp8_write_unit()

static int cbs_vp8_write_unit ( CodedBitstreamContext * ctx,
CodedBitstreamUnit * unit,
PutBitContext * pbc )
static

Definition at line 357 of file cbs_vp8.c.

◆ cbs_vp8_assemble_fragment()

static int cbs_vp8_assemble_fragment ( CodedBitstreamContext * ctx,
CodedBitstreamFragment * frag )
static

Definition at line 363 of file cbs_vp8.c.

Variable Documentation

◆ ff_vp8_token_update_probs

const uint8_t ff_vp8_token_update_probs[4][8][3][11]
extern

Definition at line 43 of file vp8data.c.

Referenced by update_token_probs(), and vp78_update_probability_tables().

◆ cbs_vp8_unit_types

CodedBitstreamUnitTypeDescriptor cbs_vp8_unit_types[]
static
Initial value:
= {
}
#define CBS_UNIT_TYPE_END_OF_LIST
#define CBS_UNIT_TYPE_INTERNAL_REF(type, structure, ref_field)
const char data[16]
Definition mxf.c:149

Definition at line 369 of file cbs_vp8.c.

◆ ff_cbs_type_vp8

const CodedBitstreamType ff_cbs_type_vp8
Initial value:
= {
.codec_id = AV_CODEC_ID_VP8,
.priv_data_size = 0,
.unit_types = cbs_vp8_unit_types,
.split_fragment = &cbs_vp8_split_fragment,
.read_unit = &cbs_vp8_read_unit,
.write_unit = &cbs_vp8_write_unit,
.assemble_fragment = &cbs_vp8_assemble_fragment,
}
static int cbs_vp8_assemble_fragment(CodedBitstreamContext *ctx, CodedBitstreamFragment *frag)
Definition cbs_vp8.c:363
static int cbs_vp8_read_unit(CodedBitstreamContext *ctx, CodedBitstreamUnit *unit)
Definition cbs_vp8.c:307
static int cbs_vp8_write_unit(CodedBitstreamContext *ctx, CodedBitstreamUnit *unit, PutBitContext *pbc)
Definition cbs_vp8.c:357
static CodedBitstreamUnitTypeDescriptor cbs_vp8_unit_types[]
Definition cbs_vp8.c:369
static int cbs_vp8_split_fragment(CodedBitstreamContext *ctx, CodedBitstreamFragment *frag, int header)
Definition cbs_vp8.c:291
@ AV_CODEC_ID_VP8
Definition codec_id.h:190

Definition at line 374 of file cbs_vp8.c.