Lines Matching refs:res

290   vpx_codec_err_t res = VPX_CODEC_OK;
311 res = VPX_CODEC_INVALID_PARAM;
326 if (res == VPX_CODEC_OK && found != svc_ctx->spatial_layers) {
330 res = VPX_CODEC_INVALID_PARAM;
333 return res;
350 vpx_codec_err_t res = VPX_CODEC_OK;
365 res = VPX_CODEC_INVALID_PARAM;
370 res = VPX_CODEC_INVALID_PARAM;
376 res = VPX_CODEC_INVALID_PARAM;
387 if (res == VPX_CODEC_OK && found != svc_ctx->spatial_layers) {
391 res = VPX_CODEC_INVALID_PARAM;
394 return res;
410 vpx_codec_err_t res = VPX_CODEC_OK;
423 res = VPX_CODEC_INVALID_PARAM;
427 res = set_option_encoding_mode(svc_ctx, option_value);
428 if (res != VPX_CODEC_OK) break;
432 res = parse_scale_factors(svc_ctx, option_value);
433 if (res != VPX_CODEC_OK) break;
435 res = parse_quantizer_values(svc_ctx, option_value, 0);
436 if (res != VPX_CODEC_OK) break;
443 res = parse_quantizer_values(svc_ctx, option_value, 1);
444 if (res != VPX_CODEC_OK) break;
448 res = VPX_CODEC_INVALID_PARAM;
454 return res;
499 vpx_codec_err_t res;
528 res = parse_quantizer_values(svc_ctx, si->quantizers, 0);
529 if (res != VPX_CODEC_OK) return res;
531 res = parse_quantizer_values(svc_ctx, si->quantizers_keyframe, 1);
532 if (res != VPX_CODEC_OK)
535 res = parse_scale_factors(svc_ctx, si->scale_factors);
536 if (res != VPX_CODEC_OK) return res;
540 res = parse_options(svc_ctx, si->options);
541 if (res != VPX_CODEC_OK) return res;
600 res = vpx_codec_enc_init(codec_ctx, iface, enc_cfg, VPX_CODEC_USE_PSNR);
601 if (res != VPX_CODEC_OK) {
603 return res;
855 vpx_codec_err_t res;
898 res = vpx_codec_encode(codec_ctx, rawimg, pts, (uint32_t)duration,
900 if (res != VPX_CODEC_OK) {
901 return res;