Commit e67fefbf authored by aconverse's avatar aconverse Committed by Commit bot

Use tiles when encoding with VP9.

VP9's tile encoding feature allows for multithreaded parallelism on both the
encoder and decoder side.

TEST=Run remoting_perftests under VTune and see that two logical CPUs are used
BUG=134202

Review URL: https://codereview.chromium.org/977663004

Cr-Commit-Position: refs/heads/master@{#319167}
parent 7410ba78
...@@ -133,6 +133,10 @@ void SetVp9CodecOptions(vpx_codec_ctx_t* codec, bool lossless_encode) { ...@@ -133,6 +133,10 @@ void SetVp9CodecOptions(vpx_codec_ctx_t* codec, bool lossless_encode) {
ret = vpx_codec_control( ret = vpx_codec_control(
codec, VP9E_SET_TUNE_CONTENT, VP9E_CONTENT_SCREEN); codec, VP9E_SET_TUNE_CONTENT, VP9E_CONTENT_SCREEN);
DCHECK_EQ(VPX_CODEC_OK, ret) << "Failed to set screen content mode"; DCHECK_EQ(VPX_CODEC_OK, ret) << "Failed to set screen content mode";
// VP9 tiles allow for parallelism on both encode and decode
ret = vpx_codec_control(codec, VP9E_SET_TILE_COLUMNS, 1);
DCHECK_EQ(VPX_CODEC_OK, ret) << "Failed to set tile columns";
} }
void CreateImage(bool use_i444, void CreateImage(bool use_i444,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment