| /* |
| * Copyright (C) 2019 Savoir-faire Linux Inc. |
| * Author: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com> |
| * |
| * This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License as published by |
| * the Free Software Foundation; either version 3 of the License, or |
| * (at your option) any later version. |
| * |
| * This program is distributed in the hope that it will be useful, |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| * GNU General Public License for more details. |
| * |
| * You should have received a copy of the GNU General Public License |
| * along with this program; if not, write to the Free Software |
| * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| */ |
| |
| #import <Foundation/Foundation.h> |
| #import <QuartzCore/QuartzCore.h> |
| #import <video/renderer.h> |
| |
| struct AVFrame; |
| |
| @interface RendererConnectionsHolder : NSObject |
| |
| @property QMetaObject::Connection frameUpdated; |
| @property QMetaObject::Connection started; |
| @property QMetaObject::Connection stopped; |
| |
| @end |
| |
| @interface VideoCommon : NSObject |
| |
| + (void)copyLineByLineSrc:(uint8_t*)src |
| toDest:(uint8_t*)dest |
| srcLinesize:(size_t)srcLinesize |
| destLinesize:(size_t)destLinesize |
| height:(size_t)height; |
| + (void) fillPixelBuffr:(CVPixelBufferRef *)pixelBuffer |
| fromFrame:(const AVFrame*)frame |
| bufferPool:(CVPixelBufferPoolRef *)pixelBufferPool; |
| + (CGSize) fillPixelBuffr:(CVPixelBufferRef *)pixelBuffer |
| fromRenderer:(const lrc::api::video::Renderer*)renderer |
| bufferPool:(CVPixelBufferPoolRef *)pixelBufferPool; |
| |
| |
| @end |
| |