• 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

63     AVCodecContext *avctx;
91 CustomSource(AVCodecContext *avctx, sp<MetaData> meta) {
92 s = (StagefrightContext*)avctx->priv_data;
94 frame_size = (avctx->width * avctx->height * 3) / 2;
134 av_log(s->avctx, AV_LOG_ERROR, "Failed to acquire MediaBuffer\n");
155 AVCodecContext *avctx = (AVCodecContext*)arg;
156 StagefrightContext *s = (StagefrightContext*)avctx->priv_data;
157 const AVPixFmtDescriptor *pix_desc = av_pix_fmt_desc_get(avctx->pix_fmt);
189 ret = ff_get_buffer(avctx, frame->vframe, AV_GET_BUFFER_FLAG_REF);
206 if (!avctx->width || !avctx->height || avctx->width > w || avctx->height > h) {
207 avctx->width = w;
208 avctx->height = h;
211 src_linesize[0] = av_image_get_linesize(avctx->pix_fmt, w, 0);
212 src_linesize[1] = av_image_get_linesize(avctx->pix_fmt, w, 1);
213 src_linesize[2] = av_image_get_linesize(avctx->pix_fmt, w, 2);
220 avctx->pix_fmt, avctx->width, avctx->height);
256 static av_cold int Stagefright_init(AVCodecContext *avctx)
258 StagefrightContext *s = (StagefrightContext*)avctx->priv_data;
263 if (!avctx->extradata || !avctx->extradata_size || avctx->extradata[0] != 1)
266 s->avctx = avctx;
269 av_log(avctx, AV_LOG_ERROR, "Cannot open the h264_mp4toannexb BSF!\n");
273 s->orig_extradata_size = avctx->extradata_size;
274 s->orig_extradata = (uint8_t*) av_mallocz(avctx->extradata_size +
280 memcpy(s->orig_extradata, avctx->extradata, avctx->extradata_size);
288 meta->setInt32(kKeyWidth, avctx->width);
289 meta->setInt32(kKeyHeight, avctx->height);
290 meta->setData(kKeyAVCC, kTypeAVCC, avctx->extradata, avctx->extradata_size);
295 *s->source = new CustomSource(avctx, meta);
308 av_log(avctx, AV_LOG_ERROR, "Cannot connect OMX client\n");
318 av_log(avctx, AV_LOG_ERROR, "Cannot start decoder\n");
328 avctx->pix_fmt = AV_PIX_FMT_NV21;
330 avctx->pix_fmt = AV_PIX_FMT_YUYV422;
332 avctx->pix_fmt = AV_PIX_FMT_UYVY422;
334 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
356 static int Stagefright_decode_frame(AVCodecContext *avctx, void *data,
359 StagefrightContext *s = (StagefrightContext*)avctx->priv_data;
367 pthread_create(&s->decode_thread_id, NULL, &decode_thread, avctx);
372 av_bitstream_filter_filter(s->bsfc, avctx, NULL, &pkt.data, &pkt.size,
398 if (avpkt->size == orig_size + avctx->extradata_size) {
399 ptr += avctx->extradata_size;
408 (*s->ts_map)[s->frame_index].reordered_opaque = avctx->reordered_opaque;
456 av_log(avctx, AV_LOG_ERROR, "Decode failed: %x\n", status);
469 static av_cold int Stagefright_close(AVCodecContext *avctx)
471 StagefrightContext *s = (StagefrightContext*)avctx->priv_data;
547 av_freep(&avctx->extradata);
548 avctx->extradata = s->orig_extradata;
549 avctx->extradata_size = s->orig_extradata_size;