Lines Matching refs:ret
153 int ret = 1;
155 while (ret > 0 && ctx->pass_size - ctx->pass_pos > 0) {
156 ret = rav1e_twopass_in(ctx->ctx, ctx->pass_data + ctx->pass_pos, ctx->pass_size);
157 if (ret < 0)
159 ctx->pass_pos += ret;
191 int ret = 0;
221 ret = AVERROR_INVALIDDATA;
228 ret = AVERROR(EINVAL);
236 ret = AVERROR(ENOMEM);
243 ret = AVERROR(EINVAL);
255 ret = AVERROR_BUG;
261 ret = bret;
267 ret = bret;
273 ret = bret;
290 ret = AVERROR_INVALIDDATA;
297 ret = AVERROR_INVALIDDATA;
309 ret = AVERROR_EXTERNAL;
319 ret = AVERROR_EXTERNAL;
327 ret = AVERROR_EXTERNAL;
335 ret = AVERROR_EXTERNAL;
344 ret = AVERROR_EXTERNAL;
353 ret = AVERROR_EXTERNAL;
364 ret = AVERROR_EXTERNAL;
372 ret = AVERROR_EXTERNAL;
380 ret = AVERROR_INVALIDDATA;
390 ret = AVERROR_EXTERNAL;
401 ret = AVERROR_INVALIDDATA;
412 ret = AVERROR_INVALIDDATA;
420 ret = AVERROR_EXTERNAL;
424 ret = 0;
430 return ret;
438 int ret;
443 ret = ff_encode_get_frame(avctx, frame);
444 if (ret < 0 && ret != AVERROR_EOF)
445 return ret;
477 ret = rav1e_send_frame(ctx->ctx, rframe);
479 if (ret == RA_ENCODER_STATUS_ENOUGH_DATA) {
486 switch (ret) {
491 av_log(avctx, AV_LOG_ERROR, "Could not send frame: %s\n", rav1e_status_to_str(ret));
494 av_log(avctx, AV_LOG_ERROR, "Unknown return code %d from rav1e_send_frame: %s\n", ret, rav1e_status_to_str(ret));
510 ret = rav1e_receive_packet(ctx->ctx, &rpkt);
511 switch (ret) {
530 av_log(avctx, AV_LOG_ERROR, "Could not encode frame: %s\n", rav1e_status_to_str(ret));
533 av_log(avctx, AV_LOG_ERROR, "Unknown return code %d from rav1e_receive_packet: %s\n", ret, rav1e_status_to_str(ret));
537 ret = ff_get_encode_buffer(avctx, pkt, rpkt->len, 0);
538 if (ret < 0) {
541 return ret;
554 int ret = av_bsf_send_packet(ctx->bsf, pkt);
555 if (ret < 0) {
558 return ret;
561 ret = av_bsf_receive_packet(ctx->bsf, pkt);
562 if (ret < 0) {
565 return ret;