• 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

43 static int wavpack_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
46 LibWavpackContext *s = avctx->priv_data;
60 av_log(avctx, AV_LOG_ERROR, "Error encoding a frame: %s\n",
67 (!frame || frame->nb_samples < avctx->frame_size)) {
70 av_log(avctx, AV_LOG_ERROR, "Error flushing the encoder: %s\n",
77 ff_af_queue_remove(&s->afq, avctx->frame_size, &pkt->pts, &pkt->duration);
86 AVCodecContext *avctx = id;
87 LibWavpackContext *s = avctx->priv_data;
92 av_log(avctx, AV_LOG_ERROR, "Provided packet too small.\n");
99 av_log(avctx, AV_LOG_ERROR, "Error allocating output packet.\n");
111 static av_cold int wavpack_encode_init(AVCodecContext *avctx)
113 LibWavpackContext *s = avctx->priv_data;
117 s->wv = WavpackOpenFileOutput(encode_callback, avctx, NULL);
119 av_log(avctx, AV_LOG_ERROR, "Error allocating the encoder.\n");
123 if (!avctx->frame_size)
124 avctx->frame_size = WV_DEFAULT_BLOCK_SIZE;
128 config.block_samples = avctx->frame_size;
129 config.channel_mask = avctx->channel_layout;
130 config.num_channels = avctx->channels;
131 config.sample_rate = avctx->sample_rate;
133 if (avctx->compression_level != FF_COMPRESSION_DEFAULT) {
134 if (avctx->compression_level >= 3) {
137 if (avctx->compression_level >= 8)
139 else if (avctx->compression_level >= 7)
141 else if (avctx->compression_level >= 6)
143 else if (avctx->compression_level >= 5)
145 else if (avctx->compression_level >= 4)
147 } else if (avctx->compression_level >= 2)
149 else if (avctx->compression_level < 1)
161 ff_af_queue_init(avctx, &s->afq);
166 av_log(avctx, AV_LOG_ERROR, "Error configuring the encoder: %s.\n",
172 static av_cold int wavpack_encode_close(AVCodecContext *avctx)
174 LibWavpackContext *s = avctx->priv_data;