Lines Matching refs:w
453 static RK_S32 update_size(Vp9CodecContext *ctx, RK_S32 w, RK_S32 h, RK_S32 fmt) in update_size() argument
457 if (w == ctx->width && h == ctx->height && ctx->pix_fmt == fmt) in update_size()
460 ctx->width = w; in update_size()
463 s->sb_cols = (w + 63) >> 6; in update_size()
465 s->cols = (w + 7) >> 3; in update_size()
635 RK_U32 w, h; in decode_parser_header() local
710 w = mpp_get_bits(&s->gb, 16) + 1; in decode_parser_header()
711 vp9d_dbg(VP9D_DBG_HEADER, "frame_size_width %d", w); in decode_parser_header()
747 w = mpp_get_bits(&s->gb, 16) + 1; in decode_parser_header()
748 vp9d_dbg(VP9D_DBG_HEADER, "frame_size_width %d", w); in decode_parser_header()
782 w = mpp_frame_get_width(s->refs[s->refidx[0]].f); in decode_parser_header()
786 w = mpp_frame_get_width(s->refs[s->refidx[1]].f); in decode_parser_header()
790 w = mpp_frame_get_width(s->refs[s->refidx[2]].f); in decode_parser_header()
793 w = mpp_get_bits(&s->gb, 16) + 1; in decode_parser_header()
794 vp9d_dbg(VP9D_DBG_HEADER, "frame_size_width %d", w); in decode_parser_header()
798 if (w == 0 || h == 0) { in decode_parser_header()
799 mpp_err("ref frame w:%d h:%d\n", w, h); in decode_parser_header()
805 s->use_last_frame_mvs &= mpp_frame_get_width(s->frames[CUR_FRAME].f) == w && in decode_parser_header()
850 } else if (refw == w && refh == h) { in decode_parser_header()
851 s->mvscale[i][0] = (refw << 14) / w; in decode_parser_header()
854 if (w * 2 < refw || h * 2 < refh || w > 16 * refw || h > 16 * refh) { in decode_parser_header()
856 refw, refh, w, h); in decode_parser_header()
859 s->mvscale[i][0] = (refw << 14) / w; in decode_parser_header()
950 (w != mpp_frame_get_width(s->frames[CUR_FRAME].f) || in decode_parser_header()
1035 if ((res = update_size(ctx, w, h, fmt)) < 0) { in decode_parser_header()
1036 mpp_err("Failed to initialize decoder for %dx%d @ %d\n", w, h, fmt); in decode_parser_header()