Searched refs:num_h_slices (Results 1 – 4 of 4) sorted by relevance
/third_party/ffmpeg/libavcodec/ |
D | ffv1.c | 55 s->num_h_slices = 1; in ff_ffv1_common_init() 113 int i, max_slice_count = f->num_h_slices * f->num_v_slices; in ff_ffv1_init_slice_contexts() 118 int sx = i % f->num_h_slices; in ff_ffv1_init_slice_contexts() 119 int sy = i / f->num_h_slices; in ff_ffv1_init_slice_contexts() 120 int sxs = f->avctx->width * sx / f->num_h_slices; in ff_ffv1_init_slice_contexts() 121 int sxe = f->avctx->width * (sx + 1) / f->num_h_slices; in ff_ffv1_init_slice_contexts()
|
D | ffv1enc.c | 376 (fs->slice_x + 1) * f->num_h_slices / f->width, 0); in write_header() 380 (fs->slice_width + 1) * f->num_h_slices / f->width - 1, in write_header() 432 put_symbol(c, state, f->num_h_slices - 1, 0); in write_extradata() 858 … for (s->num_h_slices = s->num_v_slices; s->num_h_slices < 2*s->num_v_slices; s->num_h_slices++) { in encode_init() 859 int maxw = (avctx->width + s->num_h_slices - 1) / s->num_h_slices; in encode_init() 861 if (s->num_h_slices > max_h_slices || s->num_v_slices > max_v_slices) in encode_init() 865 …if (avctx->slices == s->num_h_slices * s->num_v_slices && avctx->slices <= MAX_SLICES || !avctx->s… in encode_init() 911 put_symbol(c, state, (fs->slice_x +1)*f->num_h_slices / f->width , 0); in encode_slice_header() 913 put_symbol(c, state, (fs->slice_width +1)*f->num_h_slices / f->width -1, 0); in encode_slice_header()
|
D | ffv1dec.c | 184 if (sx > f->num_h_slices - sw || sy > f->num_v_slices - sh) in decode_slice_header() 187 fs->slice_x = sx * (int64_t)f->width / f->num_h_slices; in decode_slice_header() 189 fs->slice_width = (sx + sw) * (int64_t)f->width / f->num_h_slices - fs->slice_x; in decode_slice_header() 464 f->num_h_slices = 1 + get_symbol(c, state, 0); in read_extra_header() 473 if (f->num_h_slices > (unsigned)f->width || !f->num_h_slices || in read_extra_header() 480 if (f->num_h_slices > MAX_SLICES / f->num_v_slices) { in read_extra_header() 538 f->num_h_slices, f->num_v_slices, in read_extra_header() 794 if (sx > f->num_h_slices - sw || sy > f->num_v_slices - sh) in read_header() 797 fs->slice_x = sx * (int64_t)f->width / f->num_h_slices; in read_header() 799 fs->slice_width = (sx + sw) * (int64_t)f->width / f->num_h_slices - fs->slice_x; in read_header() [all …]
|
D | ffv1.h | 126 int num_h_slices; member
|