Allow 720x1280 frames encoding on Android.
Current maximum encoder width and height for Android is hard-coded to 1280x720, so if device is rotated to portrait orientation only part 720x1280 camera frame is extracted and scaled to 1280x720. Increasing maximum height to 1280 allows feeding video encoder with rotated 720x1280 frames directly without scaling. R=pthatcher@webrtc.org Review URL: https://webrtc-codereview.appspot.com/35739004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@8042 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
a525c98ca5
commit
be40eb0579
@ -63,9 +63,10 @@ const char JsepSessionDescription::kDefaultVideoCodecName[] = "VP8";
|
||||
// Used as default max video codec size before we have it in signaling.
|
||||
#if defined(ANDROID)
|
||||
// Limit default max video codec size for Android to avoid
|
||||
// HW VP8 codec initialization failure for resolution higher than 720p.
|
||||
// HW VP8 codec initialization failure for resolutions higher
|
||||
// than 1280x720 or 720x1280.
|
||||
const int JsepSessionDescription::kMaxVideoCodecWidth = 1280;
|
||||
const int JsepSessionDescription::kMaxVideoCodecHeight = 720;
|
||||
const int JsepSessionDescription::kMaxVideoCodecHeight = 1280;
|
||||
#else
|
||||
const int JsepSessionDescription::kMaxVideoCodecWidth = 1920;
|
||||
const int JsepSessionDescription::kMaxVideoCodecHeight = 1080;
|
||||
|
Loading…
Reference in New Issue
Block a user