• Jingning Han's avatar
    Calculate rd cost per transformed block · b91a1586
    Jingning Han authored
    Compute the rate-distortion cost per transformed block, and cumulate
    the cost through all blocks inside a partition. This allows encoder
    to detect if the cumulative rd cost is already above the best rd cost,
    thereby enabling early termination in the rate-distortion optimization
    search.
    
    Change-Id: I0a856367a9a7b6dd0b466e7b767f54d5018d09ac
    b91a1586
tools_common.h 546 bytes
/*
 *  Copyright (c) 2010 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 TOOLS_COMMON_H
#define TOOLS_COMMON_H
/* Sets a stdio stream into binary mode */
FILE *set_binary_mode(FILE *stream);
#endif