diff options
Diffstat (limited to 'vp8/common')
-rw-r--r-- | vp8/common/onyx.h | 5 | ||||
-rw-r--r-- | vp8/common/postproc.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/vp8/common/onyx.h b/vp8/common/onyx.h index 3724b11e0..426b8fc2b 100644 --- a/vp8/common/onyx.h +++ b/vp8/common/onyx.h @@ -46,7 +46,8 @@ extern "C" typedef enum { USAGE_STREAM_FROM_SERVER = 0x0, - USAGE_LOCAL_FILE_PLAYBACK = 0x1 + USAGE_LOCAL_FILE_PLAYBACK = 0x1, + USAGE_CONSTRAINED_QUALITY = 0x2 } END_USAGE; @@ -150,6 +151,7 @@ extern "C" int fixed_q; int worst_allowed_q; int best_allowed_q; + int cq_level; // allow internal resizing ( currently disabled in the build !!!!!) int allow_spatial_resampling; @@ -187,7 +189,6 @@ extern "C" int arnr_strength ; int arnr_type ; - struct vpx_fixed_buf two_pass_stats_in; struct vpx_codec_pkt_list *output_pkt_list; diff --git a/vp8/common/postproc.c b/vp8/common/postproc.c index 15b1c2c89..d30068ef5 100644 --- a/vp8/common/postproc.c +++ b/vp8/common/postproc.c @@ -680,7 +680,6 @@ static void constrain_line (int x0, int *x1, int y0, int *y1, int width, int hei int vp8_post_proc_frame(VP8_COMMON *oci, YV12_BUFFER_CONFIG *dest, vp8_ppflags_t *ppflags) { - char message[512]; int q = oci->filter_level * 10 / 6; int flags = ppflags->post_proc_flag; int deblock_level = ppflags->deblocking_level; @@ -744,6 +743,7 @@ int vp8_post_proc_frame(VP8_COMMON *oci, YV12_BUFFER_CONFIG *dest, vp8_ppflags_t #if CONFIG_POSTPROC_VISUALIZER if (flags & VP8D_DEBUG_TXT_FRAME_INFO) { + char message[512]; sprintf(message, "F%1dG%1dQ%3dF%3dP%d_s%dx%d", (oci->frame_type == KEY_FRAME), oci->refresh_golden_frame, @@ -823,6 +823,7 @@ int vp8_post_proc_frame(VP8_COMMON *oci, YV12_BUFFER_CONFIG *dest, vp8_ppflags_t if (flags & VP8D_DEBUG_TXT_RATE_INFO) { + char message[512]; sprintf(message, "Bitrate: %10.2f frame_rate: %10.2f ", oci->bitrate, oci->framerate); vp8_blit_text(message, oci->post_proc_buffer.y_buffer, oci->post_proc_buffer.y_stride); } |