• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/ffmpeg-0.5.1/libavcodec/

Lines Matching defs:avccontext

119 static VideoFormat GetDiracVideoFormatPreset (AVCodecContext *avccontext)
124 unsigned int idx = ff_dirac_schro_get_video_format_idx (avccontext);
130 static av_cold int libdirac_encode_init(AVCodecContext *avccontext)
133 FfmpegDiracEncoderParams* p_dirac_params = avccontext->priv_data;
135 int verbose = avccontext->debug;
139 preset = GetDiracVideoFormatPreset(avccontext);
145 GetDiracChromaFormat(avccontext->pix_fmt);
148 av_log (avccontext, AV_LOG_ERROR,
151 avccontext->pix_fmt);
156 avccontext->time_base.den;
158 avccontext->time_base.num;
160 p_dirac_params->enc_ctx.src_params.width = avccontext->width;
161 p_dirac_params->enc_ctx.src_params.height = avccontext->height;
163 p_dirac_params->frame_size = avpicture_get_size(avccontext->pix_fmt,
164 avccontext->width,
165 avccontext->height);
167 avccontext->coded_frame = &p_dirac_params->picture;
178 if (avccontext->gop_size == 0 ) {
180 if (avccontext->coder_type == FF_CODER_TYPE_VLC)
183 avccontext->has_b_frames = 1;
185 if (avccontext->flags & CODEC_FLAG_QSCALE) {
186 if (avccontext->global_quality != 0) {
188 avccontext->global_quality / (FF_QP2LAMBDA*10.0);
190 if (avccontext->bit_rate >= 1000 &&
191 avccontext->bit_rate != 200000) {
193 avccontext->bit_rate / 1000;
197 } else if (avccontext->bit_rate >= 1000)
198 p_dirac_params->enc_ctx.enc_params.trate = avccontext->bit_rate / 1000;
201 avccontext->bit_rate == 200000) {
205 if (avccontext->flags & CODEC_FLAG_INTERLACED_ME) {
215 av_log(avccontext, AV_LOG_ERROR,
237 static int libdirac_encode_frame(AVCodecContext *avccontext,
243 FfmpegDiracEncoderParams* p_dirac_params = avccontext->priv_data;
261 avpicture_layout ((AVPicture *)data, avccontext->pix_fmt,
262 avccontext->width, avccontext->height,
270 av_log(avccontext, AV_LOG_ERROR, "Unrecoverable Encoder Error."
342 av_log(avccontext, AV_LOG_ERROR,
347 av_log(avccontext, AV_LOG_ERROR, "Unknown Dirac Encoder state\n");
365 avccontext->coded_frame->key_frame = p_next_output_frame->key_frame;
369 avccontext->coded_frame->pts = p_next_output_frame->frame_num;
389 static av_cold int libdirac_encode_close(AVCodecContext *avccontext)
391 FfmpegDiracEncoderParams* p_dirac_params = avccontext->priv_data;