/third_party/ffmpeg/libavcodec/ |
H A D | h264_cabac.c | 1262 void ff_h264_init_cabac_states(const H264Context *h, H264SliceContext *sl) in ff_h264_init_cabac_states() argument 1266 const int slice_qp = av_clip(sl->qscale - 6*(h->ps.sps->bit_depth_luma-8), 0, 51); in ff_h264_init_cabac_states() 1268 if (sl->slice_type_nos == AV_PICTURE_TYPE_I) tab = cabac_context_init_I; in ff_h264_init_cabac_states() 1269 else tab = cabac_context_init_PB[sl->cabac_init_idc]; in ff_h264_init_cabac_states() 1279 sl->cabac_state[i] = pre; in ff_h264_init_cabac_states() 1292 static int decode_cabac_field_decoding_flag(const H264Context *h, H264SliceContext *sl) in decode_cabac_field_decoding_flag() argument 1294 const int mbb_xy = sl->mb_xy - 2*h->mb_stride; in decode_cabac_field_decoding_flag() 1298 ctx += sl->mb_field_decoding_flag & !!sl->mb_x; //for FMO:(s->current_picture.mb_type[mba_xy] >> 7) & (h->slice_table[mba_xy] == h->slice_num); in decode_cabac_field_decoding_flag() 1299 ctx += (h->cur_pic.mb_type[mbb_xy] >> 7) & (h->slice_table[mbb_xy] == sl in decode_cabac_field_decoding_flag() 1304 decode_cabac_intra_mb_type(H264SliceContext *sl, int ctx_base, int intra_slice) decode_cabac_intra_mb_type() argument 1336 decode_cabac_mb_skip(const H264Context *h, H264SliceContext *sl, int mb_x, int mb_y) decode_cabac_mb_skip() argument 1373 decode_cabac_mb_intra4x4_pred_mode(H264SliceContext *sl, int pred_mode) decode_cabac_mb_intra4x4_pred_mode() argument 1387 decode_cabac_mb_chroma_pre_mode(const H264Context *h, H264SliceContext *sl) decode_cabac_mb_chroma_pre_mode() argument 1412 decode_cabac_mb_cbp_luma(H264SliceContext *sl) decode_cabac_mb_cbp_luma() argument 1429 decode_cabac_mb_cbp_chroma(H264SliceContext *sl) decode_cabac_mb_cbp_chroma() argument 1449 decode_cabac_p_mb_sub_type(H264SliceContext *sl) decode_cabac_p_mb_sub_type() argument 1459 decode_cabac_b_mb_sub_type(H264SliceContext *sl) decode_cabac_b_mb_sub_type() argument 1477 decode_cabac_mb_ref(H264SliceContext *sl, int list, int n) decode_cabac_mb_ref() argument 1506 decode_cabac_mb_mvd(H264SliceContext *sl, int ctxbase, int amvd, int *mvda) decode_cabac_mb_mvd() argument 1558 get_cabac_cbf_ctx(H264SliceContext *sl, int cat, int idx, int max_coeff, int is_dc) get_cabac_cbf_ctx() argument 1591 decode_cabac_residual_internal(const H264Context *h, H264SliceContext *sl, int16_t *block, int cat, int n, const uint8_t *scantable, const uint32_t *qmul, int max_coeff, int is_dc, int chroma422) decode_cabac_residual_internal() argument 1778 decode_cabac_residual_dc_internal(const H264Context *h, H264SliceContext *sl, int16_t *block, int cat, int n, const uint8_t *scantable, int max_coeff) decode_cabac_residual_dc_internal() argument 1788 decode_cabac_residual_dc_internal_422(const H264Context *h, H264SliceContext *sl, int16_t *block, int cat, int n, const uint8_t *scantable, int max_coeff) decode_cabac_residual_dc_internal_422() argument 1798 decode_cabac_residual_nondc_internal(const H264Context *h, H264SliceContext *sl, int16_t *block, int cat, int n, const uint8_t *scantable, const uint32_t *qmul, int max_coeff) decode_cabac_residual_nondc_internal() argument 1821 decode_cabac_residual_dc(const H264Context *h, H264SliceContext *sl, int16_t *block, int cat, int n, const uint8_t *scantable, int max_coeff) decode_cabac_residual_dc() argument 1837 decode_cabac_residual_dc_422(const H264Context *h, H264SliceContext *sl, int16_t *block, int cat, int n, const uint8_t *scantable, int max_coeff) decode_cabac_residual_dc_422() argument 1850 decode_cabac_residual_nondc(const H264Context *h, H264SliceContext *sl, int16_t *block, int cat, int n, const uint8_t *scantable, const uint32_t *qmul, int max_coeff) decode_cabac_residual_nondc() argument 1870 decode_cabac_luma_residual(const H264Context *h, H264SliceContext *sl, const uint8_t *scan, const uint8_t *scan8x8, int pixel_shift, int mb_type, int cbp, int p) decode_cabac_luma_residual() argument 1920 ff_h264_decode_mb_cabac(const H264Context *h, H264SliceContext *sl) ff_h264_decode_mb_cabac() argument [all...] |
H A D | h264_mb.c | 39 static inline int get_lowest_part_list_y(H264SliceContext *sl, in get_lowest_part_list_y() argument 42 int raw_my = sl->mv_cache[list][scan8[n]][1]; in get_lowest_part_list_y() 52 static inline void get_lowest_part_y(const H264Context *h, H264SliceContext *sl, in get_lowest_part_y() argument 59 y_offset += 16 * (sl->mb_y >> MB_FIELD(sl)); in get_lowest_part_y() 62 int ref_n = sl->ref_cache[0][scan8[n]]; in get_lowest_part_y() 63 H264Ref *ref = &sl->ref_list[0][ref_n]; in get_lowest_part_y() 70 my = get_lowest_part_list_y(sl, n, height, y_offset, 0); in get_lowest_part_y() 78 int ref_n = sl->ref_cache[1][scan8[n]]; in get_lowest_part_y() 79 H264Ref *ref = &sl in get_lowest_part_y() 96 await_references(const H264Context *h, H264SliceContext *sl) await_references() argument 205 mc_dir_part(const H264Context *h, H264SliceContext *sl, H264Ref *pic, int n, int square, int height, int delta, int list, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, int src_x_offset, int src_y_offset, const qpel_mc_func *qpix_op, h264_chroma_mc_func chroma_op, int pixel_shift, int chroma_idc) mc_dir_part() argument 321 mc_part_std(const H264Context *h, H264SliceContext *sl, int n, int square, int height, int delta, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, int x_offset, int y_offset, const qpel_mc_func *qpix_put, h264_chroma_mc_func chroma_put, const qpel_mc_func *qpix_avg, h264_chroma_mc_func chroma_avg, int list0, int list1, int pixel_shift, int chroma_idc) mc_part_std() argument 369 mc_part_weighted(const H264Context *h, H264SliceContext *sl, int n, int square, int height, int delta, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, int x_offset, int y_offset, const qpel_mc_func *qpix_put, h264_chroma_mc_func chroma_put, h264_weight_func luma_weight_op, h264_weight_func chroma_weight_op, h264_biweight_func luma_weight_avg, h264_biweight_func chroma_weight_avg, int list0, int list1, int pixel_shift, int chroma_idc) mc_part_weighted() argument 483 prefetch_motion(const H264Context *h, H264SliceContext *sl, int list, int pixel_shift, int chroma_idc) prefetch_motion() argument 508 xchg_mb_border(const H264Context *h, H264SliceContext *sl, uint8_t *src_y, uint8_t *src_cb, uint8_t *src_cr, int linesize, int uvlinesize, int xchg, int chroma444, int simple, int pixel_shift) xchg_mb_border() argument 613 hl_decode_mb_predict_luma(const H264Context *h, H264SliceContext *sl, int mb_type, int simple, int transform_bypass, int pixel_shift, const int *block_offset, int linesize, uint8_t *dest_y, int p) hl_decode_mb_predict_luma() argument 727 hl_decode_mb_idct_luma(const H264Context *h, H264SliceContext *sl, int mb_type, int simple, int transform_bypass, int pixel_shift, const int *block_offset, int linesize, uint8_t *dest_y, int p) hl_decode_mb_idct_luma() argument 799 ff_h264_hl_decode_mb(const H264Context *h, H264SliceContext *sl) ff_h264_hl_decode_mb() argument [all...] |
H A D | h264_direct.c | 37 static int get_scale_factor(H264SliceContext *sl, in get_scale_factor() argument 40 int poc0 = sl->ref_list[0][i].poc; in get_scale_factor() 45 avpriv_request_sample(sl->h264->avctx, "pocdiff overflow"); in get_scale_factor() 47 if (td == 0 || sl->ref_list[0][i].parent->long_ref) { in get_scale_factor() 55 av_log(sl->h264->avctx, AV_LOG_DEBUG, "pocdiff0 overflow\n"); in get_scale_factor() 62 H264SliceContext *sl) in ff_h264_direct_dist_scale_factor() 66 const int poc1 = sl->ref_list[1][0].poc; in ff_h264_direct_dist_scale_factor() 72 const int poc1 = sl->ref_list[1][0].parent->field_poc[field]; in ff_h264_direct_dist_scale_factor() 73 for (i = 0; i < 2 * sl->ref_count[0]; i++) in ff_h264_direct_dist_scale_factor() 74 sl in ff_h264_direct_dist_scale_factor() 61 ff_h264_direct_dist_scale_factor(const H264Context *const h, H264SliceContext *sl) ff_h264_direct_dist_scale_factor() argument 82 fill_colmap(const H264Context *h, H264SliceContext *sl, int map[2][16 + 32], int list, int field, int colfield, int mbafi) fill_colmap() argument 120 ff_h264_direct_ref_list_init(const H264Context *const h, H264SliceContext *sl) ff_h264_direct_ref_list_init() argument 199 pred_spatial_direct_motion(const H264Context *const h, H264SliceContext *sl, int *mb_type) pred_spatial_direct_motion() argument 486 pred_temp_direct_motion(const H264Context *const h, H264SliceContext *sl, int *mb_type) pred_temp_direct_motion() argument 720 ff_h264_pred_direct_motion(const H264Context *const h, H264SliceContext *sl, int *mb_type) ff_h264_pred_direct_motion() argument [all...] |
H A D | h264_mb_template.c | 41 static av_noinline void FUNC(hl_decode_mb)(const H264Context *h, H264SliceContext *sl) in hl_decode_mb() argument 43 const int mb_x = sl->mb_x; in hl_decode_mb() 44 const int mb_y = sl->mb_y; in hl_decode_mb() 45 const int mb_xy = sl->mb_xy; in hl_decode_mb() 51 const int transform_bypass = !SIMPLE && (sl->qscale == 0 && h->ps.sps->transform_bypass); in hl_decode_mb() 56 dest_y = h->cur_pic.f->data[0] + ((mb_x << PIXEL_SHIFT) + mb_y * sl->linesize) * 16; in hl_decode_mb() 57 dest_cb = h->cur_pic.f->data[1] + (mb_x << PIXEL_SHIFT) * 8 + mb_y * sl->uvlinesize * block_h; in hl_decode_mb() 58 dest_cr = h->cur_pic.f->data[2] + (mb_x << PIXEL_SHIFT) * 8 + mb_y * sl->uvlinesize * block_h; in hl_decode_mb() 60 h->vdsp.prefetch(dest_y + (sl->mb_x & 3) * 4 * sl in hl_decode_mb() 256 hl_decode_mb_444(const H264Context *h, H264SliceContext *sl) hl_decode_mb_444() argument [all...] |
H A D | h264_cavlc.c | 285 static inline int pred_non_zero_count(const H264Context *h, H264SliceContext *sl, int n) in pred_non_zero_count() argument 288 const int left = sl->non_zero_count_cache[index8 - 1]; in pred_non_zero_count() 289 const int top = sl->non_zero_count_cache[index8 - 8]; in pred_non_zero_count() 432 static int decode_residual(const H264Context *h, H264SliceContext *sl, in decode_residual() argument 451 total_coeff= pred_non_zero_count(h, sl, (n - LUMA_DC_BLOCK_INDEX)*16); in decode_residual() 455 total_coeff= pred_non_zero_count(h, sl, n); in decode_residual() 460 sl->non_zero_count_cache[scan8[n]] = total_coeff; in decode_residual() 467 av_log(h->avctx, AV_LOG_ERROR, "corrupted macroblock %d %d (total_coeff=%d)\n", sl->mb_x, sl->mb_y, total_coeff); in decode_residual() 617 av_log(h->avctx, AV_LOG_ERROR, "negative number of zero coeffs at %d %d\n", sl in decode_residual() 625 decode_luma_residual(const H264Context *h, H264SliceContext *sl, GetBitContext *gb, const uint8_t *scan, const uint8_t *scan8x8, int pixel_shift, int mb_type, int cbp, int p) decode_luma_residual() argument 695 ff_h264_decode_mb_cavlc(const H264Context *h, H264SliceContext *sl) ff_h264_decode_mb_cavlc() argument [all...] |
H A D | h264_slice.c | 131 static int alloc_scratch_buffers(H264SliceContext *sl, int linesize) in alloc_scratch_buffers() argument 133 const H264Context *h = sl->h264; in alloc_scratch_buffers() 136 av_fast_malloc(&sl->bipred_scratchpad, &sl->bipred_scratchpad_allocated, 16 * 6 * alloc_size); in alloc_scratch_buffers() 139 av_fast_malloc(&sl->edge_emu_buffer, &sl->edge_emu_buffer_allocated, alloc_size * 2 * 21); in alloc_scratch_buffers() 141 av_fast_mallocz(&sl->top_borders[0], &sl->top_borders_allocated[0], in alloc_scratch_buffers() 143 av_fast_mallocz(&sl->top_borders[1], &sl in alloc_scratch_buffers() 590 backup_mb_border(const H264Context *h, H264SliceContext *sl, uint8_t *src_y, uint8_t *src_cb, uint8_t *src_cr, int linesize, int uvlinesize, int simple) backup_mb_border() argument 692 implicit_weight_table(const H264Context *h, H264SliceContext *sl, int field) implicit_weight_table() argument 1010 H264SliceContext *sl = &h->slice_ctx[i]; h264_slice_header_init() local 1041 h264_init_ps(H264Context *h, const H264SliceContext *sl, int first_slice) h264_init_ps() argument 1540 h264_field_start(H264Context *h, const H264SliceContext *sl, const H2645NAL *nal, int first_slice) h264_field_start() argument 1832 h264_slice_header_parse(const H264Context *h, H264SliceContext *sl, const H2645NAL *nal) h264_slice_header_parse() argument 2051 h264_slice_init(H264Context *h, H264SliceContext *sl, const H2645NAL *nal) h264_slice_init() argument 2189 H264SliceContext *sl = h->slice_ctx + h->nb_slice_ctx_queued; ff_h264_queue_decode_slice() local 2312 ff_h264_get_slice_type(const H264SliceContext *sl) ff_h264_get_slice_type() argument 2330 fill_filter_caches_inter(const H264Context *h, H264SliceContext *sl, int mb_type, int top_xy, int left_xy[LEFT_MBS], int top_type, int left_type[LEFT_MBS], int mb_xy, int list) fill_filter_caches_inter() argument 2414 fill_filter_caches(const H264Context *h, H264SliceContext *sl, int mb_type) fill_filter_caches() argument 2556 loop_filter(const H264Context *h, H264SliceContext *sl, int start_x, int end_x) loop_filter() argument 2626 predict_field_decoding_flag(const H264Context *h, H264SliceContext *sl) predict_field_decoding_flag() argument 2639 decode_finish_row(const H264Context *h, H264SliceContext *sl) decode_finish_row() argument 2670 er_add_slice(H264SliceContext *sl, int startx, int starty, int endx, int endy, int status) er_add_slice() argument 2684 H264SliceContext *sl = arg; decode_slice() local 2897 H264SliceContext *sl; ff_h264_execute_decode_slices() local [all...] |
H A D | h264_mvpred.h | 37 static av_always_inline int fetch_diagonal_mv(const H264Context *h, H264SliceContext *sl, in fetch_diagonal_mv() argument 41 const int topright_ref = sl->ref_cache[list][i - 8 + part_width]; in fetch_diagonal_mv() 52 sl->mv_cache[list][scan8[0] - 2][0] = mv[0]; \ in fetch_diagonal_mv() 53 sl->mv_cache[list][scan8[0] - 2][1] = mv[1] MV_OP; \ in fetch_diagonal_mv() 58 && sl->ref_cache[list][scan8[0] - 1] != PART_NOT_AVAILABLE) { in fetch_diagonal_mv() 61 AV_ZERO32(sl->mv_cache[list][scan8[0] - 2]); in fetch_diagonal_mv() 62 *C = sl->mv_cache[list][scan8[0] - 2]; in fetch_diagonal_mv() 64 if (!MB_FIELD(sl) && IS_INTERLACED(sl->left_type[0])) { in fetch_diagonal_mv() 65 SET_DIAG_MV(* 2, >> 1, sl in fetch_diagonal_mv() 94 pred_motion(const H264Context *const h, H264SliceContext *sl, int n, int part_width, int list, int ref, int *const mx, int *const my) pred_motion() argument 159 pred_16x8_motion(const H264Context *const h, H264SliceContext *sl, int n, int list, int ref, int *const mx, int *const my) pred_16x8_motion() argument 200 pred_8x16_motion(const H264Context *const h, H264SliceContext *sl, int n, int list, int ref, int *const mx, int *const my) pred_8x16_motion() argument 256 pred_pskip_motion(const H264Context *const h, H264SliceContext *sl) pred_pskip_motion() argument 355 fill_decode_neighbors(const H264Context *h, H264SliceContext *sl, int mb_type) fill_decode_neighbors() argument 444 fill_decode_caches(const H264Context *h, H264SliceContext *sl, int mb_type) fill_decode_caches() argument 802 decode_mb_skip(const H264Context *h, H264SliceContext *sl) decode_mb_skip() argument [all...] |
H A D | h264_mc_template.c | 37 static void mc_part(const H264Context *h, H264SliceContext *sl, in mc_part() argument 51 if ((sl->pwt.use_weight == 2 && list0 && list1 && in mc_part() 52 (sl->pwt.implicit_weight[sl->ref_cache[0][scan8[n]]][sl->ref_cache[1][scan8[n]]][sl->mb_y & 1] != 32)) || in mc_part() 53 sl->pwt.use_weight == 1) in mc_part() 54 mc_part_weighted(h, sl, n, square, height, delta, dest_y, dest_cb, dest_cr, in mc_part() 59 mc_part_std(h, sl, n, square, height, delta, dest_y, dest_cb, dest_cr, in mc_part() 64 static void MCFUNC(hl_motion)(const H264Context *h, H264SliceContext *sl, in hl_motion() argument [all...] |
H A D | h264dec.h | 66 #define MB_FIELD(sl) (sl)->mb_field_decoding_flag 75 #define MB_FIELD(sl) 0 562 int ff_h264_get_slice_type(const H264SliceContext *sl); 570 int ff_h264_decode_ref_pic_list_reordering(H264SliceContext *sl, void *logctx); 571 int ff_h264_build_ref_list(H264Context *h, H264SliceContext *sl); 579 int ff_h264_decode_ref_pic_marking(H264SliceContext *sl, GetBitContext *gb, 582 void ff_h264_hl_decode_mb(const H264Context *h, H264SliceContext *sl); 589 int ff_h264_decode_mb_cavlc(const H264Context *h, H264SliceContext *sl); 595 int ff_h264_decode_mb_cabac(const H264Context *h, H264SliceContext *sl); 655 pred_intra_mode(const H264Context *h, H264SliceContext *sl, int n) pred_intra_mode() argument 671 write_back_intra_pred_mode(const H264Context *h, H264SliceContext *sl) write_back_intra_pred_mode() argument 683 write_back_non_zero_count(const H264Context *h, H264SliceContext *sl) write_back_non_zero_count() argument 707 write_back_motion_list(const H264Context *h, H264SliceContext *sl, int b_stride, int b_xy, int b8_xy, int mb_type, int list) write_back_motion_list() argument 743 write_back_motion(const H264Context *h, H264SliceContext *sl, int mb_type) write_back_motion() argument 770 get_dct8x8_allowed(const H264Context *h, H264SliceContext *sl) get_dct8x8_allowed() argument [all...] |
H A D | h264_loopfilter.c | 235 H264SliceContext *sl, in h264_filter_mb_fast_internal() 248 int mb_xy = sl->mb_xy; in h264_filter_mb_fast_internal() 249 int left_type = sl->left_type[LTOP]; in h264_filter_mb_fast_internal() 250 int top_type = sl->top_type; in h264_filter_mb_fast_internal() 253 int a = 52 + sl->slice_alpha_c0_offset - qp_bd_offset; in h264_filter_mb_fast_internal() 254 int b = 52 + sl->slice_beta_offset - qp_bd_offset; in h264_filter_mb_fast_internal() 259 int qp1 = h->cur_pic.qscale_table[sl->top_mb_xy]; in h264_filter_mb_fast_internal() 360 if( IS_8x8DCT(mb_type) && (sl->cbp&7) == 7 && !chroma444 ) { in h264_filter_mb_fast_internal() 370 edges = 4 - 3*((mb_type>>3) & !(sl->cbp & 15)); //(mb_type & MB_TYPE_16x16) && !(h->cbp & 15) ? 1 : 4; in h264_filter_mb_fast_internal() 371 h->h264dsp.h264_loop_filter_strength(bS, sl in h264_filter_mb_fast_internal() 234 h264_filter_mb_fast_internal(const H264Context *h, H264SliceContext *sl, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize, int pixel_shift) h264_filter_mb_fast_internal() argument 416 ff_h264_filter_mb_fast(const H264Context *h, H264SliceContext *sl, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize) ff_h264_filter_mb_fast() argument 438 check_mv(H264SliceContext *sl, long b_idx, long bn_idx, int mvy_limit) check_mv() argument 468 filter_mb_dir(const H264Context *h, H264SliceContext *sl, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize, int mb_xy, int mb_type, int mvy_limit, int first_vertical_edge_done, int a, int b, int chroma, int dir) filter_mb_dir() argument 716 ff_h264_filter_mb(const H264Context *h, H264SliceContext *sl, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize) ff_h264_filter_mb() argument [all...] |
H A D | h264_refs.c | 134 static void h264_initialise_ref_list(H264Context *h, H264SliceContext *sl) in h264_initialise_ref_list() argument 139 if (sl->slice_type_nos == AV_PICTURE_TYPE_B) { in h264_initialise_ref_list() 154 len = build_def_list(sl->ref_list[list], FF_ARRAY_ELEMS(sl->ref_list[0]), in h264_initialise_ref_list() 156 len += build_def_list(sl->ref_list[list] + len, in h264_initialise_ref_list() 157 FF_ARRAY_ELEMS(sl->ref_list[0]) - len, in h264_initialise_ref_list() 161 if (len < sl->ref_count[list]) in h264_initialise_ref_list() 162 memset(&sl->ref_list[list][len], 0, sizeof(H264Ref) * (sl->ref_count[list] - len)); in h264_initialise_ref_list() 168 sl in h264_initialise_ref_list() 273 h264_fill_mbaff_ref_list(H264SliceContext *sl) h264_fill_mbaff_ref_list() argument 298 ff_h264_build_ref_list(H264Context *h, H264SliceContext *sl) ff_h264_build_ref_list() argument 422 ff_h264_decode_ref_pic_list_reordering(H264SliceContext *sl, void *logctx) ff_h264_decode_ref_pic_list_reordering() argument 833 ff_h264_decode_ref_pic_marking(H264SliceContext *sl, GetBitContext *gb, const H2645NAL *nal, void *logctx) ff_h264_decode_ref_pic_marking() argument [all...] |
H A D | vaapi_h264.c | 197 const H264SliceContext *sl = &h->slice_ctx[0]; in fill_vaapi_plain_pred_weight_table() local 200 *luma_weight_flag = sl->pwt.luma_weight_flag[list]; in fill_vaapi_plain_pred_weight_table() 201 *chroma_weight_flag = sl->pwt.chroma_weight_flag[list]; in fill_vaapi_plain_pred_weight_table() 203 for (i = 0; i < sl->ref_count[list]; i++) { in fill_vaapi_plain_pred_weight_table() 206 if (sl->pwt.luma_weight_flag[list]) { in fill_vaapi_plain_pred_weight_table() 207 luma_weight[i] = sl->pwt.luma_weight[i][list][0]; in fill_vaapi_plain_pred_weight_table() 208 luma_offset[i] = sl->pwt.luma_weight[i][list][1]; in fill_vaapi_plain_pred_weight_table() 210 luma_weight[i] = 1 << sl->pwt.luma_log2_weight_denom; in fill_vaapi_plain_pred_weight_table() 214 if (sl->pwt.chroma_weight_flag[list]) { in fill_vaapi_plain_pred_weight_table() 215 chroma_weight[i][j] = sl in fill_vaapi_plain_pred_weight_table() 314 H264SliceContext *sl = &h->slice_ctx[0]; vaapi_h264_end_frame() local 334 const H264SliceContext *sl = &h->slice_ctx[0]; vaapi_h264_decode_slice() local [all...] |
H A D | dxva2_h264.c | 222 H264SliceContext *sl = &h->slice_ctx[0]; in fill_slice_long() local 231 slice->first_mb_in_slice = (sl->mb_y >> FIELD_OR_MBAFF_PICTURE(h)) * h->mb_width + sl->mb_x; in fill_slice_long() 233 slice->BitOffsetToSliceData = get_bits_count(&sl->gb) - 8; in fill_slice_long() 234 slice->slice_type = ff_h264_get_slice_type(sl); in fill_slice_long() 235 if (sl->slice_type_fixed) in fill_slice_long() 237 slice->luma_log2_weight_denom = sl->pwt.luma_log2_weight_denom; in fill_slice_long() 238 slice->chroma_log2_weight_denom = sl->pwt.chroma_log2_weight_denom; in fill_slice_long() 239 if (sl->list_count > 0) in fill_slice_long() 240 slice->num_ref_idx_l0_active_minus1 = sl in fill_slice_long() 472 const H264SliceContext *sl = &h->slice_ctx[0]; dxva2_h264_decode_slice() local 502 H264SliceContext *sl = &h->slice_ctx[0]; dxva2_h264_end_frame() local [all...] |
H A D | hevc_ps.c | 750 static void set_default_scaling_list_data(ScalingList *sl) in set_default_scaling_list_data() argument 756 memset(sl->sl[0][matrixId], 16, 16); in set_default_scaling_list_data() 757 sl->sl_dc[0][matrixId] = 16; // default for 16x16 in set_default_scaling_list_data() 758 sl->sl_dc[1][matrixId] = 16; // default for 32x32 in set_default_scaling_list_data() 760 memcpy(sl->sl[1][0], default_scaling_list_intra, 64); in set_default_scaling_list_data() 761 memcpy(sl->sl[1][1], default_scaling_list_intra, 64); in set_default_scaling_list_data() 762 memcpy(sl in set_default_scaling_list_data() 780 scaling_list_data(GetBitContext *gb, AVCodecContext *avctx, ScalingList *sl, HEVCSPS *sps) scaling_list_data() argument [all...] |
H A D | h264dec.c | 68 H264SliceContext *sl = &h->slice_ctx[0]; in h264_er_decode_mb() local 70 sl->mb_x = mb_x; in h264_er_decode_mb() 71 sl->mb_y = mb_y; in h264_er_decode_mb() 72 sl->mb_xy = mb_x + mb_y * h->mb_stride; in h264_er_decode_mb() 73 memset(sl->non_zero_count_cache, 0, sizeof(sl->non_zero_count_cache)); in h264_er_decode_mb() 79 if (ref >= sl->ref_count[0]) in h264_er_decode_mb() 81 if (!sl->ref_list[0][ref].data[0]) { in h264_er_decode_mb() 85 if ((sl->ref_list[0][ref].reference&3) != 3) { in h264_er_decode_mb() 89 fill_rectangle(&h->cur_pic.ref_index[0][4 * sl in h264_er_decode_mb() 99 ff_h264_draw_horiz_band(const H264Context *h, H264SliceContext *sl, int y, int height) ff_h264_draw_horiz_band() argument 165 H264SliceContext *sl = &h->slice_ctx[i]; ff_h264_free_tables() local 258 ff_h264_slice_context_init(H264Context *h, H264SliceContext *sl) ff_h264_slice_context_init() argument 641 H264SliceContext *sl = h->slice_ctx + h->nb_slice_ctx_queued; decode_nal_units() local 764 H264SliceContext *sl = h->slice_ctx; decode_nal_units() local [all...] |
/third_party/pulseaudio/src/daemon/ |
H A D | server-lookup.c | 78 pa_dbusobj_server_lookup *sl = user_data; in unregister_cb() local 80 pa_assert(sl); in unregister_cb() 81 pa_assert(sl->path_registered); in unregister_cb() 83 sl->path_registered = false; in unregister_cb() 86 static DBusHandlerResult handle_introspect(DBusConnection *conn, DBusMessage *msg, pa_dbusobj_server_lookup *sl) { in handle_introspect() argument 140 static DBusHandlerResult handle_get_address(DBusConnection *conn, DBusMessage *msg, pa_dbusobj_server_lookup *sl) { in handle_get_address() argument 149 pa_assert(sl); in handle_get_address() 151 switch (get_address(sl->core->server_type, &address)) { in handle_get_address() 201 static DBusHandlerResult handle_get(DBusConnection *conn, DBusMessage *msg, pa_dbusobj_server_lookup *sl) { in handle_get() argument 209 pa_assert(sl); in handle_get() 251 handle_set(DBusConnection *conn, DBusMessage *msg, pa_dbusobj_server_lookup *sl) handle_set() argument 309 handle_get_all(DBusConnection *conn, DBusMessage *msg, pa_dbusobj_server_lookup *sl) handle_get_all() argument 408 pa_dbusobj_server_lookup *sl = user_data; message_cb() local 448 pa_dbusobj_server_lookup *sl; pa_dbusobj_server_lookup_new() local 479 pa_dbusobj_server_lookup_free(pa_dbusobj_server_lookup *sl) pa_dbusobj_server_lookup_free() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/ripemd/asm/ |
H A D | rmd-586.pl | 55 @sl=( 11,14,15,12, 5, 8, 7, 9,11,13,14,15, 6, 7, 9, 8, 359 &RIP1($A,$B,$C,$D,$E,$wl[ 0],$sl[ 0],-1); 360 &RIP1($E,$A,$B,$C,$D,$wl[ 1],$sl[ 1],0); 361 &RIP1($D,$E,$A,$B,$C,$wl[ 2],$sl[ 2],0); 362 &RIP1($C,$D,$E,$A,$B,$wl[ 3],$sl[ 3],0); 363 &RIP1($B,$C,$D,$E,$A,$wl[ 4],$sl[ 4],0); 364 &RIP1($A,$B,$C,$D,$E,$wl[ 5],$sl[ 5],0); 365 &RIP1($E,$A,$B,$C,$D,$wl[ 6],$sl[ 6],0); 366 &RIP1($D,$E,$A,$B,$C,$wl[ 7],$sl[ 7],0); 367 &RIP1($C,$D,$E,$A,$B,$wl[ 8],$sl[ [all...] |
/third_party/openssl/crypto/ripemd/asm/ |
H A D | rmd-586.pl | 55 @sl=( 11,14,15,12, 5, 8, 7, 9,11,13,14,15, 6, 7, 9, 8, 359 &RIP1($A,$B,$C,$D,$E,$wl[ 0],$sl[ 0],-1); 360 &RIP1($E,$A,$B,$C,$D,$wl[ 1],$sl[ 1],0); 361 &RIP1($D,$E,$A,$B,$C,$wl[ 2],$sl[ 2],0); 362 &RIP1($C,$D,$E,$A,$B,$wl[ 3],$sl[ 3],0); 363 &RIP1($B,$C,$D,$E,$A,$wl[ 4],$sl[ 4],0); 364 &RIP1($A,$B,$C,$D,$E,$wl[ 5],$sl[ 5],0); 365 &RIP1($E,$A,$B,$C,$D,$wl[ 6],$sl[ 6],0); 366 &RIP1($D,$E,$A,$B,$C,$wl[ 7],$sl[ 7],0); 367 &RIP1($C,$D,$E,$A,$B,$wl[ 8],$sl[ [all...] |
/third_party/libwebsockets/lib/cose/ |
H A D | cose_validate.c | 238 lws_cose_validate_param_stack_t *sl = &cps->st[cps->sp], *sl0 = &cps->st[0]; in create_alg() local 248 ck = lws_cose_key_from_set(cps->info.keyset, sl->kid.buf, sl->kid.len); in create_alg() 251 lwsl_hexdump_notice(sl->kid.buf, sl->kid.len); in create_alg() 326 if (sl->ph_pos[2] < 2) { in create_alg() 328 sl->ph[2][0] = LWS_CBOR_MAJTYP_BSTR; in create_alg() 329 p = &sl->ph[2][0]; in create_alg() 332 if (sl->ph_pos[2] < 24) { in create_alg() 333 sl in create_alg() 448 lws_cose_validate_param_stack_t *sl; cb_cose_sig() local [all...] |
/third_party/libsnd/src/ |
H A D | test_nms_adpcm.c | 248 int i, j, sl ; in test_nms_adpcm_32() local 259 { sl = pcm_data_src [i * NMS_SAMPLES_PER_BLOCK + j] ; in test_nms_adpcm_32() 260 code = nms_adpcm_encode_sample (&nms, sl) ; in test_nms_adpcm_32() 278 { sl = nms_adpcm_decode_sample (&nms, buffer [j]) ; in test_nms_adpcm_32() 279 if (sl != pcm_data_out32 [i * NMS_SAMPLES_PER_BLOCK + j]) in test_nms_adpcm_32() 281 i * NMS_SAMPLES_PER_BLOCK + j, i, j, pcm_data_out32 [i * NMS_SAMPLES_PER_BLOCK + j], sl) ; in test_nms_adpcm_32() 299 int i, j, sl ; in test_nms_adpcm_24() local 311 { sl = pcm_data_src [i * NMS_SAMPLES_PER_BLOCK + j] ; in test_nms_adpcm_24() 312 code = nms_adpcm_encode_sample (&nms, sl) ; in test_nms_adpcm_24() 331 { sl in test_nms_adpcm_24() 350 int i, j, sl ; test_nms_adpcm_16() local [all...] |
/third_party/vk-gl-cts/modules/glshared/ |
H A D | glsShaderConstExprTests.cpp | 40 static void addOutputVar (glu::sl::ValueBlock* dst, glu::DataType type, float output) in addOutputVar() 42 dst->outputs.push_back(glu::sl::Value()); in addOutputVar() 45 glu::sl::Value& value = dst->outputs.back(); in addOutputVar() 158 glu::sl::ShaderCaseSpecification spec; in createTests() 161 spec.expectResult = glu::sl::EXPECT_PASS; in createTests() 162 spec.caseType = glu::sl::CASETYPE_VERTEX_ONLY; in createTests() 179 glu::sl::ShaderCaseSpecification spec; in createTests() 182 spec.expectResult = glu::sl::EXPECT_PASS; in createTests() 183 spec.caseType = glu::sl::CASETYPE_FRAGMENT_ONLY; in createTests() 212 glu::sl in createTests() [all...] |
/third_party/musl/porting/liteos_a/kernel/src/math/ |
H A D | sqrtl.c | 231 u128 rl, sl, dl, ul; in sqrtl() local 234 sl = mul128(ml, rl); in sqrtl() 235 dl = mul128(sl, rl); in sqrtl() 237 sl = mul128(ul, sl); /* repr: 3.125 */ in sqrtl() 239 sl = rsh(sub64(sl, 4), 125-(LDBL_MANT_DIG-1)); in sqrtl() 244 d0 = sub128(lsh(ml, 2*(LDBL_MANT_DIG-1)-126), mul128_tail(sl,sl)); in sqrtl() 245 d1 = sub128(sl, d in sqrtl() [all...] |
/third_party/musl/src/math/ |
H A D | sqrtl.c | 231 u128 rl, sl, dl, ul; in sqrtl() local 234 sl = mul128(ml, rl); in sqrtl() 235 dl = mul128(sl, rl); in sqrtl() 237 sl = mul128(ul, sl); /* repr: 3.125 */ in sqrtl() 239 sl = rsh(sub64(sl, 4), 125-(LDBL_MANT_DIG-1)); in sqrtl() 244 d0 = sub128(lsh(ml, 2*(LDBL_MANT_DIG-1)-126), mul128_tail(sl,sl)); in sqrtl() 245 d1 = sub128(sl, d in sqrtl() [all...] |
/third_party/mesa3d/src/intel/vulkan/ |
H A D | genX_state.c | 714 const struct vk_sample_locations_state *sl) in emit_multisample() 716 if (sl != NULL) { in emit_multisample() 717 assert(sl->per_pixel == samples); in emit_multisample() 718 assert(sl->grid_size.width == 1); in emit_multisample() 719 assert(sl->grid_size.height == 1); in emit_multisample() 721 sl = vk_standard_sample_locations_state(samples); in emit_multisample() 738 INTEL_SAMPLE_POS_1X_ARRAY(ms.Sample, sl->locations); in emit_multisample() 741 INTEL_SAMPLE_POS_2X_ARRAY(ms.Sample, sl->locations); in emit_multisample() 744 INTEL_SAMPLE_POS_4X_ARRAY(ms.Sample, sl->locations); in emit_multisample() 747 INTEL_SAMPLE_POS_8X_ARRAY(ms.Sample, sl in emit_multisample() 713 emit_multisample(struct anv_batch *batch, uint32_t samples, const struct vk_sample_locations_state *sl) emit_multisample() argument 758 emit_sample_pattern(struct anv_batch *batch, const struct vk_sample_locations_state *sl) emit_sample_pattern() argument [all...] |
/third_party/icu/icu4j/samples/src/com/ibm/icu/samples/shaping/ |
H A D | ArabicShapingSample.java | 28 int sl = -1; in main() 126 sl = Integer.parseInt(val); in main() 152 if (sl < 0) { in main() 153 sl = text.length() - ss; in main() 154 System.out.println("sl defaulting to " + sl); in main() 157 dl = 2 * sl; in main() 165 System.out.println(" input: '" + escapedText(src, ss, sl) + "'"); in main() 167 System.out.println("start: " + ss + " length: " + sl + " total length: " + src.length); in main() 177 result = shaper.shape(src, ss, sl, des in main() [all...] |