eba9c762a1
Currently, VP9 supports column-tile encoding, which allows a frame to be encoded in multiple column tiles independently. The number of column tiles are set by encoder option "--tile-columns". This provides a way to encode a frame in parallel. Based on previous set of patches, this patch implemented the tile- based multi-threaded encoder. Each thread processes one or more tiles. Usage: For HD clips: --tile-columns=2 --threads=1/2/3/4 While using 4 threads, tests showed that the encoder achieved 2.3X - 2.5X speedup at good-quality speed 3, and 2X speedup at realtime speed 5. Change-Id: Ied987f8f2618b1283a8643ad255e88341733c9d4
26 lines
718 B
C
26 lines
718 B
C
/*
|
|
* Copyright (c) 2014 The WebM project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef VP9_ENCODER_VP9_ETHREAD_H_
|
|
#define VP9_ENCODER_VP9_ETHREAD_H_
|
|
|
|
struct VP9_COMP;
|
|
struct ThreadData;
|
|
|
|
typedef struct EncWorkerData {
|
|
struct VP9_COMP *cpi;
|
|
struct ThreadData *td;
|
|
int start;
|
|
} EncWorkerData;
|
|
|
|
void vp9_encode_tiles_mt(struct VP9_COMP *cpi);
|
|
|
|
#endif // VP9_ENCODER_VP9_ETHREAD_H_
|