• 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

45 static void to_meta_with_crop(AVCodecContext *avctx, AVFrame *p, int *dest)
49 int height = FFMIN(avctx->height, C64YRES);
50 int width = FFMIN(avctx->width , C64XRES);
71 static void render_charset(AVCodecContext *avctx, uint8_t *charset,
74 A64Context *c = avctx->priv_data;
163 static av_cold int a64multi_close_encoder(AVCodecContext *avctx)
165 A64Context *c = avctx->priv_data;
174 static av_cold int a64multi_init_encoder(AVCodecContext *avctx)
176 A64Context *c = avctx->priv_data;
180 if (avctx->global_quality < 1) {
183 c->mc_lifetime = avctx->global_quality /= FF_QP2LAMBDA;
186 av_log(avctx, AV_LOG_INFO, "charset lifetime set to %d frame(s)\n", c->mc_lifetime);
189 c->mc_use_5col = avctx->codec->id == CODEC_ID_A64_MULTI5;
204 av_log(avctx, AV_LOG_ERROR, "Failed to allocate buffer memory.\n");
209 if (!(avctx->extradata = av_mallocz(8 * 4 + FF_INPUT_BUFFER_PADDING_SIZE))) {
210 av_log(avctx, AV_LOG_ERROR, "Failed to allocate memory for extradata.\n");
213 avctx->extradata_size = 8 * 4;
214 AV_WB32(avctx->extradata, c->mc_lifetime);
215 AV_WB32(avctx->extradata + 16, INTERLACED);
218 avctx->coded_frame = &c->picture;
219 avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
220 avctx->coded_frame->key_frame = 1;
221 if (!avctx->codec_tag)
222 avctx->codec_tag = AV_RL32("a64m");
242 static int a64multi_encode_frame(AVCodecContext *avctx, unsigned char *buf,
245 A64Context *c = avctx->priv_data;
267 b_height = FFMIN(avctx->height,C64YRES) >> 3;
268 b_width = FFMIN(avctx->width ,C64XRES) >> 3;
293 to_meta_with_crop(avctx, p, meta + 32000 * c->mc_frame_counter);
310 render_charset(avctx, charset, colram);
347 AV_WB32(avctx->extradata + 4, c->mc_frame_counter);
348 AV_WB32(avctx->extradata + 8, charset_size);
349 AV_WB32(avctx->extradata + 12, screen_size + colram_size);
355 av_log(avctx, AV_LOG_ERROR, "buf size too small (need %d, got %d)\n", req_size, buf_size);