Home
last modified time | relevance | path

Searched refs:slice_height (Results 1 – 25 of 26) sorted by relevance

12

/third_party/ffmpeg/libavcodec/
Dmagicyuv.c57 int slice_height; member
128 …int height = AV_CEIL_RSHIFT(FFMIN(s->slice_height, avctx->coded_height - j * s->slice_height), s->… in magy_decode_slice10()
130 int sheight = AV_CEIL_RSHIFT(s->slice_height, s->vshift[i]); in magy_decode_slice10()
226 int height = FFMIN(s->slice_height, avctx->coded_height - j * s->slice_height); in magy_decode_slice10()
228 uint16_t *r = (uint16_t *)p->data[0] + j * s->slice_height * p->linesize[0] / 2; in magy_decode_slice10()
229 uint16_t *g = (uint16_t *)p->data[1] + j * s->slice_height * p->linesize[1] / 2; in magy_decode_slice10()
230 uint16_t *b = (uint16_t *)p->data[2] + j * s->slice_height * p->linesize[2] / 2; in magy_decode_slice10()
258 …int height = AV_CEIL_RSHIFT(FFMIN(s->slice_height, avctx->coded_height - j * s->slice_height), s->… in magy_decode_slice()
260 int sheight = AV_CEIL_RSHIFT(s->slice_height, s->vshift[i]); in magy_decode_slice()
359 int height = FFMIN(s->slice_height, avctx->coded_height - j * s->slice_height); in magy_decode_slice()
[all …]
Dutvideodec.c363 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 <= 1) in restore_median_planar_il()
[all …]
Dmediacodec_sw_buffer.c100 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()
Dffv1dec.c176 fs->slice_height = (get_symbol(c, state, 0) + 1) * f->height + fs->slice_y; in decode_slice_header()
181 fs->slice_height = fs->slice_height/f->num_v_slices - fs->slice_y; in decode_slice_header()
182 if ((unsigned)fs->slice_width > f->width || (unsigned)fs->slice_height > f->height) in decode_slice_header()
185 || (unsigned)fs->slice_y + (uint64_t)fs->slice_height > f->height) in decode_slice_header()
294 fs->slice_x = fs->slice_y = fs->slice_height = fs->slice_width = 0; in decode_slice()
305 height = fs->slice_height; in decode_slice()
770 fs->slice_height = (get_symbol(c, state, 0) + 1) * f->height + fs->slice_y; in read_header()
775 fs->slice_height = fs->slice_height / f->num_v_slices - fs->slice_y; in read_header()
777 (unsigned)fs->slice_height > f->height) in read_header()
780 || (unsigned)fs->slice_y + (uint64_t)fs->slice_height > f->height) in read_header()
[all …]
Dmediacodecdec_common.c400 avctx->width, s->stride, avctx->height, s->slice_height, in mediacodec_wrap_sw_buffer()
477 AMEDIAFORMAT_GET_INT32(s->slice_height, "slice-height", 0); in mediacodec_dec_parse_format()
479 if (strstr(s->codec_name, "OMX.Nvidia.") && s->slice_height == 0) { in mediacodec_dec_parse_format()
480 s->slice_height = FFALIGN(s->height, 16); in mediacodec_dec_parse_format()
482 s->slice_height = avctx->height; in mediacodec_dec_parse_format()
484 } else if (s->slice_height == 0) { in mediacodec_dec_parse_format()
485 s->slice_height = s->height; in mediacodec_dec_parse_format()
Dmsmpeg4enc.c240 s->slice_height= s->mb_height/1; in ff_msmpeg4_encode_picture_header()
241 put_bits(&s->pb, 5, 0x16 + s->mb_height/s->slice_height); in ff_msmpeg4_encode_picture_header()
325 if (s->slice_height && (s->mb_y % s->slice_height) == 0) { in ff_msmpeg4_handle_slices()
Dmediacodecdec_common.h58 int slice_height; member
Dvc2enc.c173 int slice_height; member
1075 (s->slice_height & (s->slice_height - 1))) { in vc2_encode_init()
1081 (s->slice_height > avctx->height)) { in vc2_encode_init()
1156 s->slice_width, s->slice_height)) in vc2_encode_init()
1162 s->num_y = s->plane[0].dwt_height/s->slice_height; in vc2_encode_init()
1197 …{"slice_height", "Slice height", offsetof(VC2EncContext, slice_height), AV_OPT_TYPE_INT, {.i64 = …
Dhuffyuvdec.c1200 int slice_height; in decode_frame() local
1231 slice_height = AV_RL32(avpkt->data + buf_size - 8); in decode_frame()
1235 slice_height <= 0 || nb_slices * (uint64_t)slice_height > height) in decode_frame()
1238 slice_height = height; in decode_frame()
1253 y_offset = height - (slice + 1) * slice_height; in decode_frame()
1262 ret = decode_slice(avctx, p, slice_height, slice_size, y_offset, table_size); in decode_frame()
Dmsmpeg4dec.c399 s->slice_height= s->mb_height; //to avoid 1/0 if the first frame is not a keyframe in ff_msmpeg4_decode_init()
446 s->slice_height = code; in ff_msmpeg4_decode_picture_header()
454 s->slice_height = s->mb_height / (code - 0x16); in ff_msmpeg4_decode_picture_header()
494 s->slice_height); in ff_msmpeg4_decode_picture_header()
Dffv1.h133 int slice_height; member
Dh263dec.c237 if (s->resync_mb_y + s->slice_height == s->mb_y) { in decode_slice()
648 if (s->slice_height == 0 || s->mb_x != 0 || slice_ret < 0 || in ff_h263_decode_frame()
649 (s->mb_y % s->slice_height) != 0 || get_bits_left(&s->gb) < 0) in ff_h263_decode_frame()
Dwmv2enc.c50 s->slice_height = s->mb_height / code; in encode_ext_header()
Dffv1.c139 fs->slice_height = sye - sys; in ff_ffv1_init_slice_contexts()
Dffv1enc.c383 (fs->slice_height + 1) * f->num_v_slices / f->height - 1, in write_header()
937 put_symbol(c, state, (fs->slice_height+1)*f->num_v_slices / f->height-1, 0); in encode_slice_header()
1047 int height = fs->slice_height; in encode_slice()
Dwmv2dec.c123 s->slice_height = s->mb_height / code; in decode_ext_header()
Dmagicyuvenc.c59 int slice_height; member
Dmpegvideo.h437 int slice_height; ///< in macroblocks member
Dvp3.c2093 int slice_height = sb_y + 1 + (!plane && s->chroma_y_shift); in render_slice() local
2110 for (; sb_y < slice_height; sb_y++) { in render_slice()
/third_party/gstreamer/gstplugins_bad/sys/androidmedia/
Dgstamc.c676 gint width, gint height, gint stride, gint slice_height, gint crop_left, in gst_amc_color_format_info_set() argument
696 slice_height = height; in gst_amc_color_format_info_set()
699 if (slice_height == 0) { in gst_amc_color_format_info_set()
702 slice_height = GST_ROUND_UP_16 (height); in gst_amc_color_format_info_set()
714 if (stride == 0 || slice_height == 0) { in gst_amc_color_format_info_set()
720 stride * slice_height + 2 * ((stride + 1) / 2) * ((slice_height + in gst_amc_color_format_info_set()
730 if (slice_height <= 0) in gst_amc_color_format_info_set()
731 slice_height = height; in gst_amc_color_format_info_set()
734 stride * (slice_height - crop_top / 2) + in gst_amc_color_format_info_set()
735 (GST_ROUND_UP_2 (stride) * ((slice_height + 1) / 2)); in gst_amc_color_format_info_set()
[all …]
Dgstamc.h61 gint width, height, stride, slice_height; member
69 gint color_format, gint width, gint height, gint stride, gint slice_height,
Dgstamcvideoenc.c168 gint stride, slice_height; in create_amc_format() local
265 slice_height = info->height; in create_amc_format()
266 gst_amc_format_set_int (format, "slice-height", slice_height, &err); in create_amc_format()
314 stride, slice_height, 0, 0, 0, 0)) in create_amc_format()
323 encoder->color_format_info.slice_height, in create_amc_format()
Dgstamcvideodec.c744 gint stride, slice_height; in gst_amc_video_dec_set_src_caps() local
831 !gst_amc_format_get_int (format, "slice-height", &slice_height, &err)) { in gst_amc_video_dec_set_src_caps()
843 slice_height, crop_left, crop_right, crop_top, crop_bottom)) { in gst_amc_video_dec_set_src_caps()
855 self->color_format_info.slice_height, self->color_format_info.crop_left, in gst_amc_video_dec_set_src_caps()
/third_party/ffmpeg/libavfilter/
Dvf_nnedi.c571 const int slice_height = (slice_end - slice_start) / 2; in filter_slice() local
620 width, slice_height - last_slice, in_scale); in filter_slice()
622 y_out += (slice_height - last_slice) * 2; in filter_slice()
625 srcbuf + 32 + srcbuf_stride * (slice_height - last_slice), in filter_slice()
630 srcbuf + 32 + srcbuf_stride * (slice_height + 1 - last_slice), in filter_slice()
635 srcbuf + 32 + srcbuf_stride * (slice_height + 2 - last_slice), in filter_slice()
660 width, slice_height, depth, out_scale); in filter_slice()
/third_party/ffmpeg/doc/
Dencoders.texi3444 @item slice_height
3447 32 and @option{slice_height} of 8.

12