img 250 doc/examples/qsvdec.c VAImage img; img 256 doc/examples/qsvdec.c img.buf = VA_INVALID_ID; img 257 doc/examples/qsvdec.c img.image_id = VA_INVALID_ID; img 260 doc/examples/qsvdec.c frame->width, frame->height, &img); img 270 doc/examples/qsvdec.c img.image_id); img 278 doc/examples/qsvdec.c err = vaMapBuffer(decode->va_dpy, img.buf, (void**)&data); img 286 doc/examples/qsvdec.c for (i = 0; i < img.num_planes; i++) img 287 doc/examples/qsvdec.c for (j = 0; j < (img.height >> (i > 0)); j++) img 288 doc/examples/qsvdec.c avio_write(output_ctx, data + img.offsets[i] + j * img.pitches[i], img.width); img 291 doc/examples/qsvdec.c if (img.buf != VA_INVALID_ID) img 292 doc/examples/qsvdec.c vaUnmapBuffer(decode->va_dpy, img.buf); img 293 doc/examples/qsvdec.c if (img.image_id != VA_INVALID_ID) img 294 doc/examples/qsvdec.c vaDestroyImage(decode->va_dpy, img.image_id); img 115 libavcodec/libopenjpegenc.c opj_image_t *img; img 201 libavcodec/libopenjpegenc.c img = opj_image_create(numcomps, cmptparm, color_space); img 205 libavcodec/libopenjpegenc.c img->x0 = 0; img 206 libavcodec/libopenjpegenc.c img->y0 = 0; img 207 libavcodec/libopenjpegenc.c img->x1 = (avctx->width - 1) * parameters->subsampling_dx + 1; img 208 libavcodec/libopenjpegenc.c img->y1 = (avctx->height - 1) * parameters->subsampling_dy + 1; img 210 libavcodec/libopenjpegenc.c return img; img 63 libavcodec/libvpxdec.c static int set_pix_fmt(AVCodecContext *avctx, struct vpx_image *img) { img 64 libavcodec/libvpxdec.c if (avctx->codec_id == AV_CODEC_ID_VP8 && img->fmt != VPX_IMG_FMT_I420) img 66 libavcodec/libvpxdec.c switch (img->fmt) { img 79 libavcodec/libvpxdec.c if (img->bit_depth == 10) { img 82 libavcodec/libvpxdec.c } else if (img->bit_depth == 12) { img 89 libavcodec/libvpxdec.c if (img->bit_depth == 10) { img 92 libavcodec/libvpxdec.c } else if (img->bit_depth == 12) { img 99 libavcodec/libvpxdec.c if (img->bit_depth == 10) { img 102 libavcodec/libvpxdec.c } else if (img->bit_depth == 12) { img 121 libavcodec/libvpxdec.c struct vpx_image *img; img 136 libavcodec/libvpxdec.c if ((img = vpx_codec_get_frame(&ctx->decoder, &iter))) { img 137 libavcodec/libvpxdec.c if ((ret = set_pix_fmt(avctx, img)) < 0) { img 140 libavcodec/libvpxdec.c img->fmt, img->bit_depth); img 143 libavcodec/libvpxdec.c img->fmt, 8); img 148 libavcodec/libvpxdec.c if ((int) img->d_w != avctx->width || (int) img->d_h != avctx->height) { img 150 libavcodec/libvpxdec.c avctx->width, avctx->height, img->d_w, img->d_h); img 151 libavcodec/libvpxdec.c ret = ff_set_dimensions(avctx, img->d_w, img->d_h); img 157 libavcodec/libvpxdec.c av_image_copy(picture->data, picture->linesize, (const uint8_t **)img->planes, img 158 libavcodec/libvpxdec.c img->stride, avctx->pix_fmt, img->d_w, img->d_h); img 170 libavcodec/libx264.c x4->pic.img.i_csp = x4->params.i_csp; img 172 libavcodec/libx264.c x4->pic.img.i_csp |= X264_CSP_HIGH_DEPTH; img 173 libavcodec/libx264.c x4->pic.img.i_plane = avfmt2_num_planes(ctx->pix_fmt); img 176 libavcodec/libx264.c for (i = 0; i < x4->pic.img.i_plane; i++) { img 177 libavcodec/libx264.c x4->pic.img.plane[i] = frame->data[i]; img 178 libavcodec/libx264.c x4->pic.img.i_stride[i] = frame->linesize[i]; img 121 libavcodec/libxavs.c x4->pic.img.i_csp = XAVS_CSP_I420; img 122 libavcodec/libxavs.c x4->pic.img.i_plane = 3; img 126 libavcodec/libxavs.c x4->pic.img.plane[i] = frame->data[i]; img 127 libavcodec/libxavs.c x4->pic.img.i_stride[i] = frame->linesize[i]; img 217 libavcodec/webp.c static void image_ctx_free(ImageContext *img) img 221 libavcodec/webp.c av_free(img->color_cache); img 222 libavcodec/webp.c if (img->role != IMAGE_ROLE_ARGB && !img->is_alpha_primary) img 223 libavcodec/webp.c av_frame_free(&img->frame); img 224 libavcodec/webp.c if (img->huffman_groups) { img 225 libavcodec/webp.c for (i = 0; i < img->nb_huffman_groups; i++) { img 227 libavcodec/webp.c ff_free_vlc(&img->huffman_groups[i * HUFFMAN_CODES_PER_META_CODE + j].vlc); img 229 libavcodec/webp.c av_free(img->huffman_groups); img 231 libavcodec/webp.c memset(img, 0, sizeof(*img)); img 464 libavcodec/webp.c ImageContext *img; img 477 libavcodec/webp.c img = &s->image[IMAGE_ROLE_ENTROPY]; img 478 libavcodec/webp.c img->size_reduction = block_bits; img 483 libavcodec/webp.c for (y = 0; y < img->frame->height; y++) { img 484 libavcodec/webp.c for (x = 0; x < img->frame->width; x++) { img 485 libavcodec/webp.c int p0 = GET_PIXEL_COMP(img->frame, x, y, 1); img 486 libavcodec/webp.c int p1 = GET_PIXEL_COMP(img->frame, x, y, 2); img 530 libavcodec/webp.c ImageContext *img; img 550 libavcodec/webp.c img = &s->image[IMAGE_ROLE_COLOR_INDEXING]; img 551 libavcodec/webp.c img->size_reduction = width_bits; img 556 libavcodec/webp.c ct = img->frame->data[0] + 4; img 557 libavcodec/webp.c for (x = 4; x < img->frame->width * 4; x++, ct++) img 563 libavcodec/webp.c static HuffReader *get_huffman_group(WebPContext *s, ImageContext *img, img 577 libavcodec/webp.c return &img->huffman_groups[group * HUFFMAN_CODES_PER_META_CODE]; img 580 libavcodec/webp.c static av_always_inline void color_cache_put(ImageContext *img, uint32_t c) img 582 libavcodec/webp.c uint32_t cache_idx = (0x1E35A7BD * c) >> (32 - img->color_cache_bits); img 583 libavcodec/webp.c img->color_cache[cache_idx] = c; img 589 libavcodec/webp.c ImageContext *img; img 593 libavcodec/webp.c img = &s->image[role]; img 594 libavcodec/webp.c img->role = role; img 596 libavcodec/webp.c if (!img->frame) { img 597 libavcodec/webp.c img->frame = av_frame_alloc(); img 598 libavcodec/webp.c if (!img->frame) img 602 libavcodec/webp.c img->frame->format = AV_PIX_FMT_ARGB; img 603 libavcodec/webp.c img->frame->width = w; img 604 libavcodec/webp.c img->frame->height = h; img 606 libavcodec/webp.c if (role == IMAGE_ROLE_ARGB && !img->is_alpha_primary) { img 607 libavcodec/webp.c ThreadFrame pt = { .f = img->frame }; img 610 libavcodec/webp.c ret = av_frame_get_buffer(img->frame, 1); img 615 libavcodec/webp.c img->color_cache_bits = get_bits(&s->gb, 4); img 616 libavcodec/webp.c if (img->color_cache_bits < 1 || img->color_cache_bits > 11) { img 618 libavcodec/webp.c img->color_cache_bits); img 621 libavcodec/webp.c img->color_cache = av_mallocz_array(1 << img->color_cache_bits, img 622 libavcodec/webp.c sizeof(*img->color_cache)); img 623 libavcodec/webp.c if (!img->color_cache) img 626 libavcodec/webp.c img->color_cache_bits = 0; img 629 libavcodec/webp.c img->nb_huffman_groups = 1; img 634 libavcodec/webp.c img->nb_huffman_groups = s->nb_huffman_groups; img 636 libavcodec/webp.c img->huffman_groups = av_mallocz_array(img->nb_huffman_groups * img 638 libavcodec/webp.c sizeof(*img->huffman_groups)); img 639 libavcodec/webp.c if (!img->huffman_groups) img 642 libavcodec/webp.c for (i = 0; i < img->nb_huffman_groups; i++) { img 643 libavcodec/webp.c hg = &img->huffman_groups[i * HUFFMAN_CODES_PER_META_CODE]; img 646 libavcodec/webp.c if (!j && img->color_cache_bits > 0) img 647 libavcodec/webp.c alphabet_size += 1 << img->color_cache_bits; img 659 libavcodec/webp.c width = img->frame->width; img 664 libavcodec/webp.c while (y < img->frame->height) { img 667 libavcodec/webp.c hg = get_huffman_group(s, img, x, y); img 671 libavcodec/webp.c uint8_t *p = GET_PIXEL(img->frame, x, y); img 676 libavcodec/webp.c if (img->color_cache_bits) img 677 libavcodec/webp.c color_cache_put(img, AV_RB32(p)); img 742 libavcodec/webp.c uint8_t *p_ref = GET_PIXEL(img->frame, ref_x, ref_y); img 743 libavcodec/webp.c uint8_t *p = GET_PIXEL(img->frame, x, y); img 746 libavcodec/webp.c if (img->color_cache_bits) img 747 libavcodec/webp.c color_cache_put(img, AV_RB32(p)); img 758 libavcodec/webp.c if (y == img->frame->height || ref_y == img->frame->height) img 763 libavcodec/webp.c uint8_t *p = GET_PIXEL(img->frame, x, y); img 766 libavcodec/webp.c if (!img->color_cache_bits) { img 770 libavcodec/webp.c if (cache_idx >= 1 << img->color_cache_bits) { img 775 libavcodec/webp.c AV_WB32(p, img->color_cache[cache_idx]); img 957 libavcodec/webp.c ImageContext *img = &s->image[IMAGE_ROLE_ARGB]; img 961 libavcodec/webp.c for (y = 0; y < img->frame->height; y++) { img 962 libavcodec/webp.c for (x = 0; x < img->frame->width; x++) { img 980 libavcodec/webp.c inverse_prediction(img->frame, m, x, y); img 994 libavcodec/webp.c ImageContext *img, *cimg; img 998 libavcodec/webp.c img = &s->image[IMAGE_ROLE_ARGB]; img 1001 libavcodec/webp.c for (y = 0; y < img->frame->height; y++) { img 1002 libavcodec/webp.c for (x = 0; x < img->frame->width; x++) { img 1006 libavcodec/webp.c p = GET_PIXEL(img->frame, x, y); img 1019 libavcodec/webp.c ImageContext *img = &s->image[IMAGE_ROLE_ARGB]; img 1021 libavcodec/webp.c for (y = 0; y < img->frame->height; y++) { img 1022 libavcodec/webp.c for (x = 0; x < img->frame->width; x++) { img 1023 libavcodec/webp.c uint8_t *p = GET_PIXEL(img->frame, x, y); img 1033 libavcodec/webp.c ImageContext *img; img 1038 libavcodec/webp.c img = &s->image[IMAGE_ROLE_ARGB]; img 1046 libavcodec/webp.c line = av_malloc(img->frame->linesize[0]); img 1050 libavcodec/webp.c for (y = 0; y < img->frame->height; y++) { img 1051 libavcodec/webp.c p = GET_PIXEL(img->frame, 0, y); img 1052 libavcodec/webp.c memcpy(line, p, img->frame->linesize[0]); img 1053 libavcodec/webp.c init_get_bits(&gb_g, line, img->frame->linesize[0] * 8); img 1056 libavcodec/webp.c for (x = 0; x < img->frame->width; x++) { img 1057 libavcodec/webp.c p = GET_PIXEL(img->frame, x, y); img 1070 libavcodec/webp.c if (img->frame->height * img->frame->width > 300) { img 1077 libavcodec/webp.c for (y = 0; y < img->frame->height; y++) { img 1078 libavcodec/webp.c for (x = 0; x < img->frame->width; x++) { img 1079 libavcodec/webp.c p = GET_PIXEL(img->frame, x, y); img 1085 libavcodec/webp.c for (y = 0; y < img->frame->height; y++) { img 1086 libavcodec/webp.c for (x = 0; x < img->frame->width; x++) { img 1087 libavcodec/webp.c p = GET_PIXEL(img->frame, x, y); img 150 libavdevice/x11grab.c XImage *img = XShmCreateImage(dpy, DefaultVisual(dpy, scr), img 154 libavdevice/x11grab.c g->shminfo.shmid = shmget(IPC_PRIVATE, img->bytes_per_line * img->height, img 162 libavdevice/x11grab.c g->shminfo.shmaddr = img->data = shmat(g->shminfo.shmid, 0, 0); img 171 libavdevice/x11grab.c *image = img; img 150 libavdevice/xcbgrab.c xcb_get_image_reply_t *img; img 158 libavdevice/xcbgrab.c img = xcb_get_image_reply(c->conn, iq, NULL); img 159 libavdevice/xcbgrab.c if (!img) img 162 libavdevice/xcbgrab.c data = xcb_get_image_data(img); img 163 libavdevice/xcbgrab.c length = xcb_get_image_data_length(img); img 170 libavdevice/xcbgrab.c free(img); img 218 libavdevice/xcbgrab.c xcb_shm_get_image_reply_t *img; img 242 libavdevice/xcbgrab.c img = xcb_shm_get_image_reply(c->conn, iq, &e); img 258 libavdevice/xcbgrab.c free(img); img 297 libavdevice/xv.c XvImage *img = xv->yuv_image; img 299 libavdevice/xv.c img->data + img->offsets[0], img 300 libavdevice/xv.c img->data + img->offsets[1], img 301 libavdevice/xv.c img->data + img->offsets[2] img 316 libavdevice/xv.c av_image_copy(data, img->pitches, (const uint8_t **)pict->data, pict->linesize, img 317 libavdevice/xv.c xv->image_format, img->width, img->height); img 36 libavfilter/transform.c #define PIXEL(img, x, y, w, h, stride, def) \ img 39 libavfilter/transform.c img[(x) + (y) * (stride)]) img 123 libavfilter/vf_colormatrix.c img = det * (md * mh - me * mg); img 37 libavfilter/vf_libopencv.c static void fill_iplimage_from_frame(IplImage *img, const AVFrame *frame, enum AVPixelFormat pixfmt) img 48 libavfilter/vf_libopencv.c *img = *tmpimg; img 49 libavfilter/vf_libopencv.c img->imageData = img->imageDataOrigin = frame->data[0]; img 50 libavfilter/vf_libopencv.c img->dataOrder = IPL_DATA_ORDER_PIXEL; img 51 libavfilter/vf_libopencv.c img->origin = IPL_ORIGIN_TL; img 52 libavfilter/vf_libopencv.c img->widthStep = frame->linesize[0]; img 55 libavfilter/vf_libopencv.c static void fill_frame_from_iplimage(AVFrame *frame, const IplImage *img, enum AVPixelFormat pixfmt) img 57 libavfilter/vf_libopencv.c frame->linesize[0] = img->widthStep; img 58 libavfilter/vf_libopencv.c frame->data[0] = img->imageData; img 47 libavformat/img2enc.c VideoMuxData *img = s->priv_data; img 51 libavformat/img2enc.c av_strlcpy(img->path, s->filename, sizeof(img->path)); img 55 libavformat/img2enc.c img->is_pipe = 0; img 57 libavformat/img2enc.c img->is_pipe = 1; img 60 libavformat/img2enc.c img->muxer = "gif"; img 62 libavformat/img2enc.c const char *str = strrchr(img->path, '.'); img 63 libavformat/img2enc.c img->split_planes = str img 75 libavformat/img2enc.c VideoMuxData *img = s->priv_data; img 82 libavformat/img2enc.c if (!img->is_pipe) { img 83 libavformat/img2enc.c if (img->update) { img 84 libavformat/img2enc.c av_strlcpy(filename, img->path, sizeof(filename)); img 85 libavformat/img2enc.c } else if (img->use_strftime) { img 90 libavformat/img2enc.c if (!strftime(filename, sizeof(filename), img->path, tm)) { img 94 libavformat/img2enc.c } else if (av_get_frame_filename(filename, sizeof(filename), img->path, img->img_number) < 0 && img 95 libavformat/img2enc.c img->img_number > 1) { img 98 libavformat/img2enc.c img->img_number, img->path); img 108 libavformat/img2enc.c if (!img->split_planes || i+1 >= desc->nb_components) img 116 libavformat/img2enc.c if (img->split_planes) { img 132 libavformat/img2enc.c } else if (img->muxer) { img 138 libavformat/img2enc.c av_assert0(!img->split_planes); img 140 libavformat/img2enc.c ret = avformat_alloc_output_context2(&fmt, NULL, img->muxer, s->filename); img 167 libavformat/img2enc.c if (!img->is_pipe) { img 171 libavformat/img2enc.c img->img_number++; img 488 libswscale/ppc/yuv2rgb_altivec.c const ubyte *img; img 490 libswscale/ppc/yuv2rgb_altivec.c img = in[0]; img 495 libswscale/ppc/yuv2rgb_altivec.c uyvy = vec_ld(0, img); img 506 libswscale/ppc/yuv2rgb_altivec.c uyvy = vec_ld(16, img); img 524 libswscale/ppc/yuv2rgb_altivec.c img += 32;