• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching refs:avctx

31 static int xwd_decode_frame(AVCodecContext *avctx, void *data,
52 av_log(avctx, AV_LOG_ERROR, "unsupported version\n");
57 av_log(avctx, AV_LOG_ERROR, "invalid header size\n");
63 avctx->width = bytestream2_get_be32u(&gb);
64 avctx->height = bytestream2_get_be32u(&gb);
80 av_log(avctx, AV_LOG_DEBUG,
83 av_log(avctx, AV_LOG_DEBUG,
86 av_log(avctx, AV_LOG_DEBUG,
91 av_log(avctx, AV_LOG_ERROR, "invalid pixmap format\n");
96 av_log(avctx, AV_LOG_ERROR, "invalid pixmap depth\n");
101 avpriv_request_sample(avctx, "xoffset %"PRIu32"", xoffset);
106 av_log(avctx, AV_LOG_ERROR, "invalid byte order\n");
111 av_log(avctx, AV_LOG_ERROR, "invalid bitmap bit order\n");
116 av_log(avctx, AV_LOG_ERROR, "invalid bitmap unit\n");
121 av_log(avctx, AV_LOG_ERROR, "invalid bitmap scan-line pad\n");
126 av_log(avctx, AV_LOG_ERROR, "invalid bits per pixel\n");
131 av_log(avctx, AV_LOG_ERROR, "invalid number of entries in colormap\n");
135 if ((ret = av_image_check_size(avctx->width, avctx->height, 0, NULL)) < 0)
138 rsize = FFALIGN(avctx->width * bpp, bpad) / 8;
140 av_log(avctx, AV_LOG_ERROR, "invalid bytes per scan-line\n");
144 if (bytestream2_get_bytes_left(&gb) < ncolors * XWD_CMAP_SIZE + avctx->height * lsize) {
145 av_log(avctx, AV_LOG_ERROR, "input buffer too small\n");
150 avpriv_report_missing_feature(avctx, "Pixmap format %"PRIu32, pixformat);
154 avctx->pix_fmt = AV_PIX_FMT_NONE;
161 avctx->pix_fmt = AV_PIX_FMT_MONOWHITE;
163 avctx->pix_fmt = AV_PIX_FMT_GRAY8;
169 avctx->pix_fmt = AV_PIX_FMT_PAL8;
177 avctx->pix_fmt = be ? AV_PIX_FMT_RGB555BE : AV_PIX_FMT_RGB555LE;
179 avctx->pix_fmt = be ? AV_PIX_FMT_BGR555BE : AV_PIX_FMT_BGR555LE;
182 avctx->pix_fmt = be ? AV_PIX_FMT_RGB565BE : AV_PIX_FMT_RGB565LE;
184 avctx->pix_fmt = be ? AV_PIX_FMT_BGR565BE : AV_PIX_FMT_BGR565LE;
187 avctx->pix_fmt = be ? AV_PIX_FMT_RGB24 : AV_PIX_FMT_BGR24;
189 avctx->pix_fmt = be ? AV_PIX_FMT_BGR24 : AV_PIX_FMT_RGB24;
192 avctx->pix_fmt = be ? AV_PIX_FMT_ARGB : AV_PIX_FMT_BGRA;
194 avctx->pix_fmt = be ? AV_PIX_FMT_ABGR : AV_PIX_FMT_RGBA;
199 av_log(avctx, AV_LOG_ERROR, "invalid visual class\n");
203 if (avctx->pix_fmt == AV_PIX_FMT_NONE) {
204 avpriv_request_sample(avctx,
210 if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
216 if (avctx->pix_fmt == AV_PIX_FMT_PAL8) {
235 for (i = 0; i < avctx->height; i++) {