blob: 98e3c0fc3c14f85976fc6cb9122ab98f6294ef35 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <QuartzCore/QuartzCore.h>
#include "base/mac/scoped_nsobject.h"
#include "services/shape_detection/public/interfaces/barcodedetection.mojom.h"
namespace shape_detection {
// Takes a ScopedSharedBufferHandle with dimensions and produces a new CIImage
// with the same contents, or a null scoped_nsobject is something goes wrong.
base::scoped_nsobject<CIImage> CreateCIImageFromSharedMemory(
mojo::ScopedSharedBufferHandle frame_data,
uint32_t width,
uint32_t height);
} // namespace shape_detection