vp9_skin_detection: fix some build warnings.
Change-Id: Ib779c083e9775dc9922ed6e104f6275bc453bef9
This commit is contained in:
Родитель
a83e8ec008
Коммит
eaa101b502
|
@ -98,12 +98,13 @@ void vp9_compute_skin_map(VP9_COMP *const cpi, FILE *yuv_skinmap_file) {
|
|||
uint8_t ysource4 = src_y[(ypos + 1) * src_ystride + (ypos + 1)];
|
||||
uint8_t usource4 = src_u[(uvpos + 1) * src_uvstride + (uvpos + 1)];
|
||||
uint8_t vsource4 = src_v[(uvpos + 1) * src_uvstride + (uvpos + 1)];
|
||||
int is_skin = 0;
|
||||
if (mode_filter == 1) {
|
||||
ysource = (ysource + ysource2 + ysource3 + ysource4) >> 2;
|
||||
usource = (usource + usource2 + usource3 + usource4) >> 2;
|
||||
vsource = (vsource + vsource2 + vsource3 + vsource4) >> 2;
|
||||
}
|
||||
const int is_skin = vp9_skin_pixel(ysource, usource, vsource);
|
||||
is_skin = vp9_skin_pixel(ysource, usource, vsource);
|
||||
for (i = 0; i < y_bsize; i++) {
|
||||
for (j = 0; j < y_bsize; j++) {
|
||||
if (is_skin)
|
||||
|
|
|
@ -25,7 +25,8 @@ int vp9_skin_pixel(const uint8_t y, const uint8_t cb, const uint8_t cr);
|
|||
|
||||
#ifdef OUTPUT_YUV_SKINMAP
|
||||
// For viewing skin map on input source.
|
||||
void vp9_compute_skin_map(VP9_COMP *const cpi, FILE *yuv_skinmap_file);
|
||||
void vp9_compute_skin_map(struct VP9_COMP *const cpi, FILE *yuv_skinmap_file);
|
||||
extern void vp9_write_yuv_frame_420(YV12_BUFFER_CONFIG *s, FILE *f);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Загрузка…
Ссылка в новой задаче