• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavcodec/

Lines Matching refs:avctx

49     AVCodecContext *avctx;
147 av_log(rac->avctx, AV_LOG_ERROR, "Invalid probability encountered.\n");
151 av_log(rac->avctx, AV_LOG_ERROR, "Integer overflow encountered in cumulative probability calculation.\n");
157 av_log(rac->avctx, AV_LOG_ERROR, "Invalid probability run encountered.\n");
168 av_log(rac->avctx, AV_LOG_ERROR, "All probabilities are 0!\n");
186 av_log(rac->avctx, AV_LOG_ERROR,
261 TL = l->avctx->pix_fmt == PIX_FMT_YUV420P ? buf[-stride] : L;
330 av_log(l->avctx, AV_LOG_ERROR, "Too many zeros remaining.\n");
381 rac.avctx = l->avctx;
403 av_log(l->avctx, AV_LOG_WARNING,
435 av_log(l->avctx, AV_LOG_ERROR,
450 * @param avctx codec context
456 static int lag_decode_frame(AVCodecContext *avctx,
461 LagarithContext *l = avctx->priv_data;
472 avctx->release_buffer(avctx, p);
484 avctx->pix_fmt = PIX_FMT_RGB32;
486 if (avctx->get_buffer(avctx, p) < 0) {
487 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
492 for (j = 0; j < avctx->height; j++) {
493 for (i = 0; i < avctx->width; i++)
499 avctx->pix_fmt = PIX_FMT_RGB32;
505 avctx->pix_fmt = PIX_FMT_RGB24;
507 if (avctx->get_buffer(avctx, p) < 0) {
508 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
517 l->rgb_stride = FFALIGN(avctx->width, 16);
518 l->rgb_planes = av_malloc(l->rgb_stride * avctx->height * planes);
520 av_log(avctx, AV_LOG_ERROR, "cannot allocate temporary buffer\n");
525 srcs[i] = l->rgb_planes + (i + 1) * l->rgb_stride * avctx->height - l->rgb_stride;
530 av_log(avctx, AV_LOG_ERROR,
536 avctx->width, avctx->height,
541 srcs[i] = l->rgb_planes + i * l->rgb_stride * avctx->height;
542 for (j = 0; j < avctx->height; j++) {
543 for (i = 0; i < avctx->width; i++) {
565 avctx->pix_fmt = PIX_FMT_YUV420P;
567 if (avctx->get_buffer(avctx, p) < 0) {
568 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
575 av_log(avctx, AV_LOG_ERROR,
580 lag_decode_arith_plane(l, p->data[0], avctx->width, avctx->height,
583 lag_decode_arith_plane(l, p->data[2], avctx->width / 2,
584 avctx->height / 2, p->linesize[2],
586 lag_decode_arith_plane(l, p->data[1], avctx->width / 2,
587 avctx->height / 2, p->linesize[1],
591 av_log(avctx, AV_LOG_ERROR,
602 static av_cold int lag_decode_init(AVCodecContext *avctx)
604 LagarithContext *l = avctx->priv_data;
605 l->avctx = avctx;
607 dsputil_init(&l->dsp, avctx);
612 static av_cold int lag_decode_end(AVCodecContext *avctx)
614 LagarithContext *l = avctx->priv_data;
617 avctx->release_buffer(avctx, &l->picture);