• Yaowu Xu's avatar
    add quantizer adaptive intra mb mode encoding · aac2c126
    Yaowu Xu authored
    make intra mode coding entropy distribution adaptive to baseQindex, an
    encoding test on hd clips with all key frame shows universal gain on
    all clips in both .2%(psnr) and (ssim).3%.
    
    To build and test, configure with
    --enable-experimental --enable-qimode
    
    Change-Id: Iaa69241b984d4fdd8baa6d77ee78c0140f5ac00a
    aac2c126
tools_common.c 806 B
/*
 *  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.
 */
#include <stdio.h>
#include "tools_common.h"
#if defined(_WIN32) || defined(__OS2__)
#include <io.h>
#include <fcntl.h>
#ifdef __OS2__
#define _setmode    setmode
#define _fileno     fileno
#define _O_BINARY   O_BINARY
#endif
#endif
FILE *set_binary_mode(FILE *stream) {
  (void)stream;
#if defined(_WIN32) || defined(__OS2__)
  _setmode(_fileno(stream), _O_BINARY);
#endif
  return stream;