• 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

30 static int bmp_decode_frame(AVCodecContext *avctx,
51 av_log(avctx, AV_LOG_ERROR, "buf size too small (%d)\n", buf_size);
57 av_log(avctx, AV_LOG_ERROR, "bad magic number\n");
63 av_log(avctx, AV_LOG_ERROR, "not enough data (%d < %u), trying to decode anyway\n",
74 av_log(avctx, AV_LOG_ERROR, "invalid header size %u\n", hsize);
83 av_log(avctx, AV_LOG_ERROR,
103 av_log(avctx, AV_LOG_ERROR, "unsupported BMP file, patch welcome\n");
109 av_log(avctx, AV_LOG_ERROR, "invalid BMP header\n");
122 av_log(avctx, AV_LOG_ERROR, "BMP coding %d not supported\n", comp);
135 avctx->width = width;
136 avctx->height = height > 0 ? height : -height;
138 avctx->pix_fmt = AV_PIX_FMT_NONE;
144 avctx->pix_fmt = alpha ? AV_PIX_FMT_ABGR : AV_PIX_FMT_0BGR;
146 avctx->pix_fmt = alpha ? AV_PIX_FMT_BGRA : AV_PIX_FMT_BGR0;
148 avctx->pix_fmt = alpha ? AV_PIX_FMT_ARGB : AV_PIX_FMT_0RGB;
150 avctx->pix_fmt = alpha ? AV_PIX_FMT_RGBA : AV_PIX_FMT_RGB0;
152 av_log(avctx, AV_LOG_ERROR, "Unknown bitfields %0X %0X %0X\n", rgb[0], rgb[1], rgb[2]);
156 avctx->pix_fmt = AV_PIX_FMT_BGRA;
160 avctx->pix_fmt = AV_PIX_FMT_BGR24;
164 avctx->pix_fmt = AV_PIX_FMT_RGB555;
167 avctx->pix_fmt = AV_PIX_FMT_RGB565;
169 avctx->pix_fmt = AV_PIX_FMT_RGB555;
171 avctx->pix_fmt = AV_PIX_FMT_RGB444;
173 av_log(avctx, AV_LOG_ERROR,
182 avctx->pix_fmt = AV_PIX_FMT_PAL8;
184 avctx->pix_fmt = AV_PIX_FMT_GRAY8;
189 avctx->pix_fmt = AV_PIX_FMT_PAL8;
191 av_log(avctx, AV_LOG_ERROR, "Unknown palette for %u-colour BMP\n",
197 av_log(avctx, AV_LOG_ERROR, "depth %u not supported\n", depth);
201 if (avctx->pix_fmt == AV_PIX_FMT_NONE) {
202 av_log(avctx, AV_LOG_ERROR, "unsupported pixel format\n");
206 if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
215 n = ((avctx->width * depth + 31) / 8) & ~3;
217 if (n * avctx->height > dsize && comp != BMP_RLE4 && comp != BMP_RLE8) {
218 av_log(avctx, AV_LOG_ERROR, "not enough data (%d < %d)\n",
219 dsize, n * avctx->height);
225 memset(p->data[0], 0, avctx->height * p->linesize[0]);
228 ptr = p->data[0] + (avctx->height - 1) * p->linesize[0];
235 if (avctx->pix_fmt == AV_PIX_FMT_PAL8) {
245 av_log(avctx, AV_LOG_ERROR,
258 av_log(avctx, AV_LOG_ERROR, "palette doesn't fit in packet\n");
271 p->data[0] += p->linesize[0] * (avctx->height - 1);
275 ff_msrle_decode(avctx, (AVPicture*)p, depth, &gb);
277 p->data[0] += p->linesize[0] * (avctx->height - 1);
283 for (i = 0; i < avctx->height; i++) {
302 for (i = 0; i < avctx->height; i++) {
309 for (i = 0; i < avctx->height; i++) {
320 for (i = 0; i < avctx->height; i++) {
324 for (j = 0; j < avctx->width; j++)
332 av_log(avctx, AV_LOG_ERROR, "BMP decoder is broken\n");