Lines Matching refs:seq

301     struct VssVp8encSequenceParameterBuffer *seq = &ctx->vp8_seq_param;  in vsp_vp8_process_seqence_param()  local
308 seq->frame_width = va_seq->frame_width; in vsp_vp8_process_seqence_param()
309 seq->frame_height = va_seq->frame_height; in vsp_vp8_process_seqence_param()
310 seq->rc_target_bitrate = va_seq->bits_per_second / 1000; in vsp_vp8_process_seqence_param()
311 seq->max_intra_rate = 100 * ctx->max_frame_size / in vsp_vp8_process_seqence_param()
312 (va_seq->bits_per_second / seq->frame_rate); in vsp_vp8_process_seqence_param()
314 seq->kf_mode = va_seq->kf_auto; /* AUTO */ in vsp_vp8_process_seqence_param()
315 seq->kf_max_dist = va_seq->kf_max_dist; in vsp_vp8_process_seqence_param()
316 seq->kf_min_dist = va_seq->kf_min_dist; in vsp_vp8_process_seqence_param()
317 seq->error_resilient = va_seq->error_resilient; in vsp_vp8_process_seqence_param()
319 ref_frame_width = (seq->frame_width + 2 * 32 + 63) & (~63); in vsp_vp8_process_seqence_param()
320 ref_frame_height = (seq->frame_height + 2 * 32 + 63) & (~63); in vsp_vp8_process_seqence_param()
325 seq->ref_frame_buffers[i].surface_id = va_seq->reference_frames[i]; in vsp_vp8_process_seqence_param()
326 seq->ref_frame_buffers[i].width = ref_frame_width; in vsp_vp8_process_seqence_param()
327 seq->ref_frame_buffers[i].height = ref_frame_height; in vsp_vp8_process_seqence_param()
346 vsp_cmdbuf_reloc_pic_param(&(seq->ref_frame_buffers[i].base), in vsp_vp8_process_seqence_param()
349 cmdbuf->param_mem_loc, seq); in vsp_vp8_process_seqence_param()
352 *seq_to_firmware = *seq; in vsp_vp8_process_seqence_param()
371 struct VssVp8encSequenceParameterBuffer *seq = in vsp_vp8_process_dynamic_seqence_param() local
374 *seq = ctx->vp8_seq_param ; in vsp_vp8_process_dynamic_seqence_param()
375 seq->max_intra_rate = 100 * ctx->max_frame_size / in vsp_vp8_process_dynamic_seqence_param()
376 (seq->rc_target_bitrate * 1000 / seq->frame_rate); in vsp_vp8_process_dynamic_seqence_param()
403 struct VssVp8encSequenceParameterBuffer *seq = in vsp_vp8_process_picture_param() local
498 struct VssVp8encSequenceParameterBuffer *seq = &ctx->vp8_seq_param; in vsp_vp8_process_misc_param() local
535 seq->ts_number_layers = tslayer_param->number_of_layers; in vsp_vp8_process_misc_param()
537 seq->ts_periodicity = tslayer_param->periodicity; in vsp_vp8_process_misc_param()
539 for (i = 0; i < seq->ts_periodicity; i++) in vsp_vp8_process_misc_param()
540 seq->ts_layer_id[i] = tslayer_param->layer_id[i]; in vsp_vp8_process_misc_param()
543 if (seq->ts_number_layers == 2) { in vsp_vp8_process_misc_param()
544 seq->ts_target_bitrate[0] = seq->rc_target_bitrate * 6 / 10; in vsp_vp8_process_misc_param()
545 seq->ts_target_bitrate[1] = seq->rc_target_bitrate ; in vsp_vp8_process_misc_param()
546 seq->ts_rate_decimator[0] = 2; in vsp_vp8_process_misc_param()
547 seq->ts_rate_decimator[1] = 1; in vsp_vp8_process_misc_param()
549 if (seq->ts_number_layers == 3) { in vsp_vp8_process_misc_param()
550 seq->ts_target_bitrate[0] = seq->rc_target_bitrate * 4 / 10; in vsp_vp8_process_misc_param()
551 seq->ts_target_bitrate[1] = seq->rc_target_bitrate * 6 / 10; in vsp_vp8_process_misc_param()
552 seq->ts_target_bitrate[2] = seq->rc_target_bitrate ; in vsp_vp8_process_misc_param()
553 seq->ts_rate_decimator[0] = 4; in vsp_vp8_process_misc_param()
554 seq->ts_rate_decimator[1] = 2; in vsp_vp8_process_misc_param()
555 seq->ts_rate_decimator[2] = 1; in vsp_vp8_process_misc_param()
576 if (seq->frame_rate != frame_rate_param->framerate) { in vsp_vp8_process_misc_param()
578 seq->frame_rate, in vsp_vp8_process_misc_param()
580 seq->frame_rate = frame_rate_param->framerate; in vsp_vp8_process_misc_param()
590 seq->frame_rate = ctx->frame_rate[layer_id]; in vsp_vp8_process_misc_param()
607 if (rate_control_param->min_qp != seq->rc_min_quantizer) { in vsp_vp8_process_misc_param()
609 seq->rc_min_quantizer, rate_control_param->min_qp); in vsp_vp8_process_misc_param()
610 seq->rc_min_quantizer = rate_control_param->min_qp; in vsp_vp8_process_misc_param()
613 if (rate_control_param->max_qp != seq->rc_max_quantizer) { in vsp_vp8_process_misc_param()
615 seq->rc_max_quantizer, rate_control_param->max_qp); in vsp_vp8_process_misc_param()
616 seq->rc_max_quantizer = rate_control_param->max_qp; in vsp_vp8_process_misc_param()
621 if (rate_control_param->target_percentage != seq->rc_undershoot_pct) { in vsp_vp8_process_misc_param()
623 seq->rc_undershoot_pct, rate_control_param->target_percentage); in vsp_vp8_process_misc_param()
624 seq->rc_undershoot_pct = rate_control_param->target_percentage; in vsp_vp8_process_misc_param()
635 if (rate_control_param->bits_per_second / 1000 != seq->rc_target_bitrate) { in vsp_vp8_process_misc_param()
637 seq->rc_target_bitrate, rate_control_param->bits_per_second / 1000); in vsp_vp8_process_misc_param()
638 seq->rc_target_bitrate = rate_control_param->bits_per_second / 1000; in vsp_vp8_process_misc_param()
639 seq->ts_target_bitrate[0] = rate_control_param->bits_per_second / 1000; in vsp_vp8_process_misc_param()
644 if (rate_control_param->bits_per_second / 1000 != seq->ts_target_bitrate[layer_id]) { in vsp_vp8_process_misc_param()
646seq->ts_target_bitrate[layer_id], rate_control_param->bits_per_second / 1000); in vsp_vp8_process_misc_param()
647 seq->ts_target_bitrate[layer_id] = rate_control_param->bits_per_second / 1000; in vsp_vp8_process_misc_param()
675 seq->cyclic_intra_refresh = air_param->air_threshold; in vsp_vp8_process_misc_param()
679 seq->rc_buf_sz = hrd_param->buffer_size; in vsp_vp8_process_misc_param()
680 seq->rc_buf_initial_sz = hrd_param->initial_buffer_fullness; in vsp_vp8_process_misc_param()
681 seq->rc_buf_optimal_sz = hrd_param->optimal_buffer_fullness; in vsp_vp8_process_misc_param()
795 struct VssVp8encSequenceParameterBuffer *seq = in vsp_vp8_dump_commands() local
819 drv_debug_msg(VIDEO_ENCODE_DEBUG, "frame_width %d\n", seq->frame_width); in vsp_vp8_dump_commands()
820 drv_debug_msg(VIDEO_ENCODE_DEBUG, "frame_height %d\n", seq->frame_height); in vsp_vp8_dump_commands()
821 drv_debug_msg(VIDEO_ENCODE_DEBUG, "frame_rate %d\n", seq->frame_rate); in vsp_vp8_dump_commands()
822 drv_debug_msg(VIDEO_ENCODE_DEBUG, "error_resilient %d\n", seq->error_resilient); in vsp_vp8_dump_commands()
823 … drv_debug_msg(VIDEO_ENCODE_DEBUG, "num_token_partitions %d\n", seq->num_token_partitions); in vsp_vp8_dump_commands()
824 drv_debug_msg(VIDEO_ENCODE_DEBUG, "kf_mode %d\n", seq->kf_mode); in vsp_vp8_dump_commands()
825 drv_debug_msg(VIDEO_ENCODE_DEBUG, "kf_min_dist %d\n", seq->kf_min_dist); in vsp_vp8_dump_commands()
826 drv_debug_msg(VIDEO_ENCODE_DEBUG, "kf_max_dist %d\n", seq->kf_max_dist); in vsp_vp8_dump_commands()
827 drv_debug_msg(VIDEO_ENCODE_DEBUG, "rc_target_bitrate %d\n", seq->rc_target_bitrate); in vsp_vp8_dump_commands()
828 drv_debug_msg(VIDEO_ENCODE_DEBUG, "rc_min_quantizer %d\n", seq->rc_min_quantizer); in vsp_vp8_dump_commands()
829 drv_debug_msg(VIDEO_ENCODE_DEBUG, "rc_max_quantizer %d\n", seq->rc_max_quantizer); in vsp_vp8_dump_commands()
830 drv_debug_msg(VIDEO_ENCODE_DEBUG, "rc_undershoot_pct %d\n", seq->rc_undershoot_pct); in vsp_vp8_dump_commands()
831 drv_debug_msg(VIDEO_ENCODE_DEBUG, "rc_overshoot_pct %d\n", seq->rc_overshoot_pct); in vsp_vp8_dump_commands()
832 drv_debug_msg(VIDEO_ENCODE_DEBUG, "rc_end_usage %d\n", seq->rc_end_usage); in vsp_vp8_dump_commands()
833 drv_debug_msg(VIDEO_ENCODE_DEBUG, "rc_buf_sz %d\n", seq->rc_buf_sz); in vsp_vp8_dump_commands()
834 drv_debug_msg(VIDEO_ENCODE_DEBUG, "rc_buf_initial_sz %d\n", seq->rc_buf_initial_sz); in vsp_vp8_dump_commands()
835 drv_debug_msg(VIDEO_ENCODE_DEBUG, "rc_buf_optimal_sz %d\n", seq->rc_buf_optimal_sz); in vsp_vp8_dump_commands()
836 drv_debug_msg(VIDEO_ENCODE_DEBUG, "max_intra_rate %d\n", seq->max_intra_rate); in vsp_vp8_dump_commands()
837 … drv_debug_msg(VIDEO_ENCODE_DEBUG, "cyclic_intra_refresh %d\n", seq->cyclic_intra_refresh); in vsp_vp8_dump_commands()
838 … drv_debug_msg(VIDEO_ENCODE_DEBUG, "concatenate_partitions %d\n", seq->concatenate_partitions); in vsp_vp8_dump_commands()
839 drv_debug_msg(VIDEO_ENCODE_DEBUG, "recon_buffer_mode %d\n", seq->recon_buffer_mode); in vsp_vp8_dump_commands()
840 drv_debug_msg(VIDEO_ENCODE_DEBUG, "ts_number_layers %d\n", seq->ts_number_layers); in vsp_vp8_dump_commands()
843 … drv_debug_msg(VIDEO_ENCODE_DEBUG, "ts_target_bitrate[%d] %d\n", i, seq->ts_target_bitrate[i]); in vsp_vp8_dump_commands()
846 … drv_debug_msg(VIDEO_ENCODE_DEBUG, "ts_rate_decimator[%d] %d\n", i, seq->ts_rate_decimator[i]); in vsp_vp8_dump_commands()
847 drv_debug_msg(VIDEO_ENCODE_DEBUG, "ts_periodicity %d\n", seq->ts_periodicity); in vsp_vp8_dump_commands()
849 for (i = 0; i < seq->ts_periodicity; i++) in vsp_vp8_dump_commands()
850 drv_debug_msg(VIDEO_ENCODE_DEBUG, "ts_layer_id[%d] %d\n", i, seq->ts_layer_id[i]); in vsp_vp8_dump_commands()
854 dump_vssporcPicture(&seq->ref_frame_buffers[i]); in vsp_vp8_dump_commands()