Home
last modified time | relevance | path

Searched refs:linesizes (Results 1 - 15 of 15) sorted by relevance

/third_party/ffmpeg/libavutil/
H A Dimgutils.c89 int av_image_fill_linesizes(int linesizes[4], enum AVPixelFormat pix_fmt, int width) in av_image_fill_linesizes() argument
96 memset(linesizes, 0, 4*sizeof(linesizes[0])); in av_image_fill_linesizes()
105 linesizes[i] = ret; in av_image_fill_linesizes()
112 int height, const ptrdiff_t linesizes[4]) in av_image_fill_plane_sizes()
122 if (linesizes[0] > SIZE_MAX / height) in av_image_fill_plane_sizes()
124 sizes[0] = linesizes[0] * (size_t)height; in av_image_fill_plane_sizes()
137 if (linesizes[i] > SIZE_MAX / h) in av_image_fill_plane_sizes()
139 sizes[i] = (size_t)h * linesizes[i]; in av_image_fill_plane_sizes()
146 uint8_t *ptr, const int linesizes[ in av_image_fill_pointers()
111 av_image_fill_plane_sizes(size_t sizes[4], enum AVPixelFormat pix_fmt, int height, const ptrdiff_t linesizes[4]) av_image_fill_plane_sizes() argument
145 av_image_fill_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt, int height, uint8_t *ptr, const int linesizes[4]) av_image_fill_pointers() argument
218 av_image_alloc(uint8_t *pointers[4], int linesizes[4], int w, int h, enum AVPixelFormat pix_fmt, int align) av_image_alloc() argument
[all...]
H A Dimgutils.h64 * Fill plane linesizes for an image with pixel format pix_fmt and
67 * @param linesizes array to be filled with the linesize for each plane
70 int av_image_fill_linesizes(int linesizes[4], enum AVPixelFormat pix_fmt, int width);
76 * @param linesizes the array containing the linesize for each
84 int height, const ptrdiff_t linesizes[4]);
92 * @param linesizes the array containing the linesize for each
98 uint8_t *ptr, const int linesizes[4]);
102 * fill pointers and linesizes accordingly.
110 int av_image_alloc(uint8_t *pointers[4], int linesizes[4],
140 * @note On x86, the linesizes currentl
[all...]
H A Dframe.c125 ptrdiff_t linesizes[4]; in get_video_buffer() local
152 linesizes[i] = frame->linesize[i]; in get_video_buffer()
156 padded_height, linesizes)) < 0) in get_video_buffer()
/third_party/ffmpeg/libavutil/tests/
H A Dimgutils.c41 int i, total_size, w = 64, h = 48, linesizes[4]; in main() local
44 if (av_image_fill_linesizes(linesizes, pix_fmt, w) < 0) in main()
47 linesizes1[i] = linesizes[i]; in main()
50 total_size = av_image_fill_pointers(data, pix_fmt, h, (void *)1, linesizes); in main()
57 printf(", linesizes:"); in main()
59 printf(" %3d", linesizes[i]); in main()
/third_party/ffmpeg/libavfilter/dnn/
H A Ddnn_io_proc.c199 int linesizes[4]; in ff_frame_to_dnn_classify() local
228 ret = av_image_fill_linesizes(linesizes, fmt, input->width); in ff_frame_to_dnn_classify()
230 av_log(log_ctx, AV_LOG_ERROR, "unable to get linesizes with av_image_fill_linesizes"); in ff_frame_to_dnn_classify()
247 (uint8_t *const [4]){input->data, 0, 0, 0}, linesizes); in ff_frame_to_dnn_classify()
257 int linesizes[4]; in ff_frame_to_dnn_detect() local
271 ret = av_image_fill_linesizes(linesizes, fmt, input->width); in ff_frame_to_dnn_detect()
273 av_log(log_ctx, AV_LOG_ERROR, "unable to get linesizes with av_image_fill_linesizes"); in ff_frame_to_dnn_detect()
279 (uint8_t *const [4]){input->data, 0, 0, 0}, linesizes); in ff_frame_to_dnn_detect()
/third_party/ffmpeg/libavcodec/
H A Dlibvpxdec.c268 int linesizes[4]; in vpx_decode() local
306 linesizes[0] = img->stride[VPX_PLANE_Y]; in vpx_decode()
307 linesizes[1] = img->stride[VPX_PLANE_U]; in vpx_decode()
308 linesizes[2] = img->stride[VPX_PLANE_V]; in vpx_decode()
309 linesizes[3] = in vpx_decode()
328 picture->linesize[i] = linesizes[i]; in vpx_decode()
334 linesizes, avctx->pix_fmt, img->d_w, img->d_h); in vpx_decode()
H A Dv210dec.c199 int linesizes[4]; in decode_frame() local
200 int ret = av_image_alloc(pointers, linesizes, avctx->width, avctx->height, avctx->pix_fmt, 1); in decode_frame()
204 av_image_copy(pic->data, pic->linesize, (const uint8_t **)pointers, linesizes, avctx->pix_fmt, avctx->width, avctx->height); in decode_frame()
H A Dlibsvtav1.c322 ptrdiff_t linesizes[4]; in read_in_data() local
328 linesizes[i] = frame->linesize[i]; in read_in_data()
331 linesizes); in read_in_data()
H A Dh264dec.c915 int linesizes[4]; in finalize_frame() local
923 linesizes[p] = 2*f->linesize[p]; in finalize_frame()
926 av_image_copy(dst_data, linesizes, src_data, linesizes, in finalize_frame()
/third_party/ffmpeg/libavfilter/
H A Dvf_framepack.c269 int linesizes[4]; in vertical_frame_pack() local
283 linesizes[0] = out->linesize[0] + in vertical_frame_pack()
285 linesizes[1] = out->linesize[1] + in vertical_frame_pack()
287 linesizes[2] = out->linesize[2] + in vertical_frame_pack()
290 av_image_copy(dst, linesizes, src, s->input_views[i]->linesize, in vertical_frame_pack()
H A Dframepool.c59 ptrdiff_t linesizes[4]; variable
91 linesizes[i] = pool->linesize[i];
95 linesizes) < 0) {
H A Dvf_mix.c53 int linesizes[4]; member
152 const int width = s->linesizes[p] / sizeof(type); \
160 s->linesizes[p], slice_end - slice_start); \
280 if ((ret = av_image_fill_linesizes(s->linesizes, inlink->format, inlink->w)) < 0) in config_output()
H A Dvf_atadenoise.c55 int linesizes[4]; member
361 s->linesizes[p], slice_end - slice_start); in filter_slice()
399 if ((ret = av_image_fill_linesizes(s->linesizes, inlink->format, inlink->w)) < 0) in config_input()
H A Dvf_xmedian.c51 int linesizes[4]; member
155 s->linesizes[p], slice_end - slice_start); \
267 if ((ret = av_image_fill_linesizes(s->linesizes, inlink->format, inlink->w)) < 0) in config_output()
/third_party/ffmpeg/libswscale/
H A Dswscale.c617 const int linesizes[4]) in check_image_pointers()
626 if (!data[plane] || !linesizes[plane]) in check_image_pointers()
616 check_image_pointers(const uint8_t * const data[4], enum AVPixelFormat pix_fmt, const int linesizes[4]) check_image_pointers() argument

Completed in 13 milliseconds