gfx/ycbcr/yuv_row_other.cpp

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
     2 // Use of this source code is governed by a BSD-style license that can be
     3 // found in the LICENSE file.
     5 #include "yuv_row.h"
     7 extern "C" {
     8 void FastConvertYUVToRGB32Row(const uint8* y_buf,
     9                               const uint8* u_buf,
    10                               const uint8* v_buf,
    11                               uint8* rgb_buf,
    12                               int width) {
    13   FastConvertYUVToRGB32Row_C(y_buf, u_buf, v_buf, rgb_buf, width, 1);
    14 }
    16 void ScaleYUVToRGB32Row(const uint8* y_buf,
    17                         const uint8* u_buf,
    18                         const uint8* v_buf,
    19                         uint8* rgb_buf,
    20                         int width,
    21                         int source_dx) {
    22   ScaleYUVToRGB32Row_C(y_buf, u_buf, v_buf, rgb_buf, width, source_dx);
    23 }
    25 void LinearScaleYUVToRGB32Row(const uint8* y_buf,
    26                               const uint8* u_buf,
    27                               const uint8* v_buf,
    28                               uint8* rgb_buf,
    29                               int width,
    30                               int source_dx) {
    31   LinearScaleYUVToRGB32Row_C(y_buf, u_buf, v_buf, rgb_buf, width, source_dx);
    32 }
    34 } 

mercurial