Merge pull request #14292 from alalek:issue_14291
* macosx: fix C++11 build
backporting commit c3cf35ab63
* macosx: eliminate build warning
This commit is contained in:
parent
c8056b3e27
commit
7621b91769
@ -266,7 +266,7 @@ CV_IMPL void cvResizeWindow( const char* name, int width, int height)
|
||||
CVWindow *window = cvGetWindow(name);
|
||||
if(window && ![window autosize]) {
|
||||
height += [window contentView].sliderHeight;
|
||||
NSSize size = { width, height };
|
||||
NSSize size = { (CGFloat)width, (CGFloat)height };
|
||||
[window setContentSize:size];
|
||||
}
|
||||
[localpool drain];
|
||||
|
||||
@ -181,7 +181,7 @@ class CvVideoWriter_AVFoundation : public CvVideoWriter {
|
||||
double fps, CvSize frame_size,
|
||||
int is_color=1);
|
||||
~CvVideoWriter_AVFoundation();
|
||||
bool writeFrame(const IplImage* image);
|
||||
bool writeFrame(const IplImage* image) CV_OVERRIDE;
|
||||
int getCaptureDomain() const CV_OVERRIDE { return cv::CAP_AVFOUNDATION; }
|
||||
private:
|
||||
IplImage* argbimage;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user