lemonheim note
2013년 12월 14일 토요일
ffmpeg의 C헤더를 C++헤더에 include할때...
1. C++ 헤더에 아래와 같이 extern 구문을 넣어줍니다.
extern "C" {
#include <libavcodec/avcodec.h>
#include <libswscale/swscale.h>
}
#include <libavutil/imgutils.h>
2. 컴파일 옵션의 CXXFLAGS에 -D__STDC_CONSTANT_MACROS 옵션을 추가합니다.
댓글 없음:
댓글 쓰기
최근 게시물
이전 게시물
홈
피드 구독하기:
댓글 (Atom)
mitmproxy 설치(mac), iPhone Proxy 연결
mitmproxy 설치(mac), iPhone Proxy 연결
mitmproxy( man in the middle proxy) 설치 메모 https://mitmproxy.org/ 에서 설치 방법 확인 brew를 사용해서 설치 진행 - $ brew install mitmproxy - 설치후...
C++컴파일 경우 -Wreorder 의미
컴파일 옵션을 -Wall하면 간혹 나타나는 오류임. 생성자의 초기화 순서는 헤더에서 선언된 순서와 일치하여야 한다는 의미임. 생성자에서 초기화 할때 상수가 아닌 변수로 초기화를 해버리면 그 순서때문에 초기값이 꼬일 수 있다는 거임.. stru...
IOS Private api - detect airplane mode
- ( BOOL ) isAirplainMode { NSBundle *bundle = [ NSBundle bundleWithPath : @"/System/Library/PrivateFrameworks/AppSupport.fr...
댓글 없음:
댓글 쓰기