• 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

57 int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s)
68 avctx->pix_fmt = PIX_FMT_MONOWHITE;
70 if (avctx->codec_id == CODEC_ID_PGMYUV)
71 avctx->pix_fmt = PIX_FMT_YUV420P;
73 avctx->pix_fmt = PIX_FMT_GRAY8;
75 avctx->pix_fmt = PIX_FMT_RGB24;
105 if (w <= 0 || h <= 0 || maxval <= 0 || depth <= 0 || tuple_type[0] == '\0' || av_image_check_size(w, h, 0, avctx))
108 avctx->width = w;
109 avctx->height = h;
112 avctx->pix_fmt = PIX_FMT_MONOWHITE;
114 avctx->pix_fmt = PIX_FMT_GRAY8;
117 avctx->pix_fmt = PIX_FMT_RGB24;
119 av_log(avctx, AV_LOG_ERROR, "16-bit components are only supported for grayscale\n");
120 avctx->pix_fmt = PIX_FMT_NONE;
124 avctx->pix_fmt = PIX_FMT_RGB32;
133 avctx->width = atoi(buf1);
134 if (avctx->width <= 0)
137 avctx->height = atoi(buf1);
138 if(av_image_check_size(avctx->width, avctx->height, 0, avctx))
140 if (avctx->pix_fmt != PIX_FMT_MONOWHITE) {
144 av_log(avctx, AV_LOG_ERROR, "Invalid maxval: %d\n", s->maxval);
148 if (avctx->pix_fmt == PIX_FMT_GRAY8) {
149 avctx->pix_fmt = PIX_FMT_GRAY16BE;
151 avctx->pix_fmt = PIX_FMT_GRAY16;
152 } else if (avctx->pix_fmt == PIX_FMT_RGB24) {
154 avctx->pix_fmt = PIX_FMT_RGB48BE;
156 av_log(avctx, AV_LOG_ERROR, "Unsupported pixel format\n");
157 avctx->pix_fmt = PIX_FMT_NONE;
164 if (avctx->pix_fmt == PIX_FMT_YUV420P) {
165 if ((avctx->width & 1) != 0)
167 h = (avctx->height * 2);
171 avctx->height = h;
176 av_cold int ff_pnm_end(AVCodecContext *avctx)
178 PNMContext *s = avctx->priv_data;
181 avctx->release_buffer(avctx, &s->picture);
186 av_cold int ff_pnm_init(AVCodecContext *avctx)
188 PNMContext *s = avctx->priv_data;
191 avctx->coded_frame = (AVFrame*)&s->picture;