Lines Matching refs:fEncoderCtx
129 if (fEncoderCtx) { in reset()
130 avcodec_free_context(&fEncoderCtx); in reset()
131 fEncoderCtx = nullptr; in reset()
179 fEncoderCtx = avcodec_alloc_context3(codec); in init()
180 SkASSERT(fEncoderCtx); in init()
182 fEncoderCtx->codec_id = output_format->video_codec; in init()
183 fEncoderCtx->width = fInfo.width(); in init()
184 fEncoderCtx->height = fInfo.height(); in init()
185 fEncoderCtx->time_base = fStream->time_base; in init()
186 fEncoderCtx->pix_fmt = pix_fmt; in init()
190 fEncoderCtx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; in init()
193 if (check_err(avcodec_open2(fEncoderCtx, codec, nullptr))) { in init()
199 fFrame->width = fEncoderCtx->width; in init()
200 fFrame->height = fEncoderCtx->height; in init()
205 if (check_err(avcodec_parameters_from_context(fStream->codecpar, fEncoderCtx))) { in init()
280 if (check_err(avcodec_send_frame(fEncoderCtx, frame))) { in sendFrame()
286 ret = avcodec_receive_packet(fEncoderCtx, fPacket); in sendFrame()
294 av_packet_rescale_ts(fPacket, fEncoderCtx->time_base, fStream->time_base); in sendFrame()