gfx/ycbcr/yuv_row_other.cpp

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     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