Set the encoding resolution as 32x for MTK codec

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
camera2
Leo Ma 9 years ago
parent 035637d9f7
commit c840be301f

@ -27,7 +27,7 @@ public class SrsEncoder {
public static final String ACODEC = "audio/mp4a-latm";
public static final int VPREV_WIDTH = 1280;
public static final int VPREV_HEIGHT = 720;
public static final int VOUT_WIDTH = 368;
public static final int VOUT_WIDTH = 384;
public static final int VOUT_HEIGHT = 640;
public static int vOutWidth = VOUT_WIDTH; // Note: the stride of resolution must be set as 16x for hard encoding with some chip like MTK
public static int vOutHeight = VOUT_HEIGHT; // Since Y component is quadruple size as U and V component, the stride must be set as 32x

Loading…
Cancel
Save