/third_party/ffmpeg/libavcodec/ |
H A D | magicyuv.c | 58 int slice_height; member 129 int height = AV_CEIL_RSHIFT(FFMIN(s->slice_height, avctx->coded_height - j * s->slice_height), s->vshift[i]); in magy_decode_slice10() 131 int sheight = AV_CEIL_RSHIFT(s->slice_height, s->vshift[i]); in magy_decode_slice10() 227 int height = FFMIN(s->slice_height, avctx->coded_height - j * s->slice_height); in magy_decode_slice10() 229 uint16_t *r = (uint16_t *)p->data[0] + j * s->slice_height * p->linesize[0] / 2; in magy_decode_slice10() 230 uint16_t *g = (uint16_t *)p->data[1] + j * s->slice_height * p->linesize[1] / 2; in magy_decode_slice10() 231 uint16_t *b = (uint16_t *)p->data[2] + j * s->slice_height * p->linesize[2] / 2; in magy_decode_slice10() 259 int height = AV_CEIL_RSHIFT(FFMIN(s->slice_height, avct in magy_decode_slice() [all...] |
H A D | utvideodec.c | 363 int slice_start, slice_height; in restore_median_planar() local 368 slice_height = ((((slice + 1) * height) / slices) & cmask) - in restore_median_planar() 371 if (!slice_height) in restore_median_planar() 379 if (slice_height <= 1) in restore_median_planar() 397 for (j = 2; j < slice_height; j++) { in restore_median_planar() 415 int slice_start, slice_height; in restore_median_planar_il() local 421 slice_height = ((((slice + 1) * height) / slices) & cmask) - in restore_median_planar_il() 423 slice_height >>= 1; in restore_median_planar_il() 424 if (!slice_height) in restore_median_planar_il() 434 if (slice_height < in restore_median_planar_il() 470 int slice_start, slice_height; restore_gradient_planar() local 511 int slice_start, slice_height; restore_gradient_planar_il() local [all...] |
H A D | mediacodec_sw_buffer.c | 100 src += s->slice_height * s->stride; in ff_mediacodec_sw_buffer_copy_yuv420_planar() 103 src += ((s->slice_height + 1) / 2) * stride; in ff_mediacodec_sw_buffer_copy_yuv420_planar() 153 src += s->slice_height * s->stride; in ff_mediacodec_sw_buffer_copy_yuv420_semi_planar() 200 src += (s->slice_height - s->crop_top / 2) * s->stride; in ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar()
|
H A D | mediacodecdec_common.c | 390 avctx->width, s->stride, avctx->height, s->slice_height, in mediacodec_wrap_sw_buffer() 467 AMEDIAFORMAT_GET_INT32(s->slice_height, "slice-height", 0); in mediacodec_dec_parse_format() 469 if (strstr(s->codec_name, "OMX.Nvidia.") && s->slice_height == 0) { in mediacodec_dec_parse_format() 470 s->slice_height = FFALIGN(s->height, 16); in mediacodec_dec_parse_format() 472 s->slice_height = avctx->height; in mediacodec_dec_parse_format() 474 } else if (s->slice_height == 0) { in mediacodec_dec_parse_format() 475 s->slice_height = s->height; in mediacodec_dec_parse_format()
|
H A D | ffv1dec.c | 190 fs->slice_height = (sy + sh) * (int64_t)f->height / f->num_v_slices - fs->slice_y; in decode_slice_header() 193 (unsigned)fs->slice_height <= f->height); in decode_slice_header() 195 && (unsigned)fs->slice_y + (uint64_t)fs->slice_height <= f->height); in decode_slice_header() 306 fs->slice_x = fs->slice_y = fs->slice_height = fs->slice_width = 0; in decode_slice() 320 height = fs->slice_height; in decode_slice() 800 fs->slice_height = (sy + sh) * (int64_t)f->height / f->num_v_slices - fs->slice_y; in read_header() 803 (unsigned)fs->slice_height <= f->height); in read_header() 805 && (unsigned)fs->slice_y + (uint64_t)fs->slice_height <= f->height); in read_header() 1003 fs->slice_height); in decode_frame() 1042 fsdst->slice_height in copy_fields() [all...] |
H A D | vc2enc.c | 175 int slice_height; member 1076 (s->slice_height & (s->slice_height - 1))) { in vc2_encode_init() 1082 (s->slice_height > avctx->height)) { in vc2_encode_init() 1157 s->slice_width, s->slice_height)) in vc2_encode_init() 1163 s->num_y = s->plane[0].dwt_height/s->slice_height; in vc2_encode_init() 1193 {"slice_height", "Slice height", offsetof(VC2EncContext, slice_height), AV_OPT_TYPE_INT, {.i64 = 16}, 8, 1024, VC2ENC_FLAGS, "slice_height"},
|
H A D | mediacodecdec_common.h | 58 int slice_height; member
|
H A D | msmpeg4enc.c | 243 s->slice_height= s->mb_height/1; in ff_msmpeg4_encode_picture_header() 244 put_bits(&s->pb, 5, 0x16 + s->mb_height/s->slice_height); in ff_msmpeg4_encode_picture_header() 328 if (s->slice_height && (s->mb_y % s->slice_height) == 0) { in ff_msmpeg4_handle_slices()
|
H A D | ffv1.h | 128 int slice_height; member
|
H A D | huffyuvdec.c | 1192 int slice_height; in decode_frame() local 1223 slice_height = AV_RL32(avpkt->data + buf_size - 8); in decode_frame() 1227 slice_height <= 0 || nb_slices * (uint64_t)slice_height > height) in decode_frame() 1230 slice_height = height; in decode_frame() 1245 y_offset = height - (slice + 1) * slice_height; in decode_frame() 1254 ret = decode_slice(avctx, p, slice_height, slice_size, y_offset, table_size); in decode_frame()
|
H A D | h263dec.c | 243 if (s->resync_mb_y + s->slice_height == s->mb_y) { in decode_slice() 650 if (s->slice_height == 0 || s->mb_x != 0 || slice_ret < 0 || in ff_h263_decode_frame() 651 (s->mb_y % s->slice_height) != 0 || get_bits_left(&s->gb) < 0) in ff_h263_decode_frame()
|
H A D | msmpeg4dec.c | 401 s->slice_height= s->mb_height; //to avoid 1/0 if the first frame is not a keyframe in ff_msmpeg4_decode_init() 450 s->slice_height = code; in ff_msmpeg4_decode_picture_header() 458 s->slice_height = s->mb_height / (code - 0x16); in ff_msmpeg4_decode_picture_header() 498 s->slice_height); in ff_msmpeg4_decode_picture_header()
|
H A D | wmv2enc.c | 67 s->slice_height = s->mb_height / code; in encode_ext_header()
|
H A D | ffv1.c | 134 fs->slice_height = sye - sys; in ff_ffv1_init_slice_contexts()
|
H A D | mpegvideo.h | 407 int slice_height; ///< in macroblocks member
|
H A D | ffv1enc.c | 383 (fs->slice_height + 1) * f->num_v_slices / f->height - 1, in write_header() 914 put_symbol(c, state, (fs->slice_height+1)*f->num_v_slices / f->height-1, 0); in encode_slice_header() 1024 int height = fs->slice_height; in encode_slice()
|
H A D | magicyuvenc.c | 61 int slice_height; member
|
H A D | wmv2dec.c | 192 s->slice_height = s->mb_height / code; in decode_ext_header()
|
H A D | vp3.c | 2097 int slice_height = sb_y + 1 + (!plane && s->chroma_y_shift); in render_slice() local 2114 for (; sb_y < slice_height; sb_y++) { in render_slice()
|
/third_party/ffmpeg/tools/ |
H A D | scale_slice_test.c | 78 int slice_height; in process_frame() local 81 slice_height = av_lfg_get(&pd->lfg) % (frame->height - slice_start); in process_frame() 82 slice_height = FFALIGN(FFMAX(1, slice_height), 1 << pd->v_shift_src); in process_frame() 89 ret = sws_scale(pd->scaler, src, frame->linesize, slice_start, slice_height, in process_frame() 94 slice_start += slice_height; in process_frame()
|
/third_party/ffmpeg/libswscale/ |
H A D | swscale.h | 286 * @param slice_height number of rows in the slice 291 unsigned int slice_height); 299 * @param slice_height number of rows in the slice; must be a multiple of 301 * (i.e. when slice_start+slice_height is equal to output 310 unsigned int slice_height);
|
H A D | swscale.c | 1110 unsigned int slice_height) in sws_send_slice() 1114 ret = ff_range_add(&c->src_ranges, slice_start, slice_height); in sws_send_slice() 1130 unsigned int slice_height) in sws_receive_slice() 1141 if ((slice_start > 0 || slice_height < c->dstH) && in sws_receive_slice() 1142 (slice_start % align || slice_height % align)) { in sws_receive_slice() 1145 slice_start, slice_height, align); in sws_receive_slice() 1154 c->dst_slice_height = slice_height; in sws_receive_slice() 1177 dst, c->frame_dst->linesize, slice_start, slice_height); in sws_receive_slice() 1220 const int slice_height = FFALIGN(FFMAX((parent->dst_slice_height + nb_jobs - 1) / nb_jobs, 1), in ff_sws_slice_worker() local 1222 const int slice_start = jobnr * slice_height; in ff_sws_slice_worker() 1109 sws_send_slice(struct SwsContext *c, unsigned int slice_start, unsigned int slice_height) sws_send_slice() argument 1129 sws_receive_slice(struct SwsContext *c, unsigned int slice_start, unsigned int slice_height) sws_receive_slice() argument [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_nnedi.c | 563 const int slice_height = (slice_end - slice_start) / 2; in filter_slice() local 612 width, slice_height - last_slice, in_scale); in filter_slice() 614 y_out += (slice_height - last_slice) * 2; in filter_slice() 617 srcbuf + 32 + srcbuf_stride * (slice_height - last_slice), in filter_slice() 622 srcbuf + 32 + srcbuf_stride * (slice_height + 1 - last_slice), in filter_slice() 627 srcbuf + 32 + srcbuf_stride * (slice_height + 2 - last_slice), in filter_slice() 652 width, slice_height, depth, out_scale); in filter_slice()
|