• Josep Llodrà's avatar
    linguist: Show remaining global&context translation counts in tooltips · 03923b27
    Josep Llodrà authored
    
    Linguist shows the number of finished units and the number of editable
    units in the lower right corner of the window (e.g.: 6714/6833).
    It also shows this completion progress number per context.
    
    With this change, it displays the difference between these numbers
    in a tooltip (i.e. hovering the mouse on the count 6714/6833), for
    both global progress count and per context progress count.
    
    While this change may be arguable, the remaining count is the number
    that a translator tracks and is constantly checking, other numbers
    are less relevant. This small change improves User Experience since
    the translator doesn't need to use a calculator or do a mental
    calculation, which takes time and may also lead to miscalculations.
    
    Change-Id: Icbb5e73bb4430d28f07eeff790b186579c48c8fb
    Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@qt.io>
    03923b27
vp9_subexp.h 1.28 KiB
/*
 *  Copyright (c) 2013 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_DECODER_VP9_SUBEXP_H_
#define VP9_DECODER_VP9_SUBEXP_H_
void vp9_compute_update_table();
void vp9_write_prob_diff_update(vp9_writer *w,
                                vp9_prob newp, vp9_prob oldp);
void vp9_cond_prob_diff_update(vp9_writer *w, vp9_prob *oldp,
                               vp9_prob upd, unsigned int *ct);
int vp9_prob_diff_update_savings_search(const unsigned int *ct,
                                        vp9_prob oldp, vp9_prob *bestp,
                                        vp9_prob upd);
int vp9_prob_diff_update_savings_search_model(const unsigned int *ct,
                                              const vp9_prob *oldp,
                                              vp9_prob *bestp,
                                              vp9_prob upd,
                                              int b, int r);
#endif  // VP9_DECODER_VP9_SUBEXP_H_