| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- /*
- * IJKSDLGLViewProtocol.h
- *
- * Copyright (c) 2017 Bilibili
- * Copyright (c) 2017 raymond <raymondzheng1412@gmail.com>
- *
- * This file is part of ijkPlayer.
- *
- * ijkPlayer is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * ijkPlayer 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with ijkPlayer; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
- #ifndef IJKSDLGLViewProtocol_h
- #define IJKSDLGLViewProtocol_h
- #import <UIKit/UIKit.h>
- typedef struct IJKOverlay IJKOverlay;
- struct IJKOverlay {
- int w;
- int h;
- UInt32 format;
- int planes;
- UInt16 *pitches;
- UInt8 **pixels;
- int sar_num;
- int sar_den;
- CVPixelBufferRef pixel_buffer;
- };
- @protocol IJKSDLGLViewProtocol <NSObject>
- - (UIImage*) snapshot;
- @property(nonatomic, readonly) CGFloat fps;
- @property(nonatomic) CGFloat scaleFactor;
- @property(nonatomic) BOOL isThirdGLView;
- - (void) display_pixels: (IJKOverlay *) overlay;
- @end
- #endif /* IJKSDLGLViewProtocol_h */
|