ImageFormat.Yv12 필드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
주의
This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.
Android YUV 형식입니다.
[Android.Runtime.Register("YV12")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.", true)]
public const Android.Graphics.ImageFormatType Yv12 = 842094169;
[<Android.Runtime.Register("YV12")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.", true)>]
val mutable Yv12 : Android.Graphics.ImageFormatType
필드 값
Value = 842094169- 특성
설명
Android YUV 형식입니다.
이 형식은 소프트웨어 디코더 및 애플리케이션에 노출됩니다.
YV12는 WxH Y 평면과 (W/2) x(H/2) Cr 및 Cb 평면으로 구성된 4:2:0 YCrCb 평면 형식입니다.
이 형식은 <ul><li>an even width</li><an>even height</li li><>a horizontal stride multiple of 16 pixels</li li<>a>vertical stride equal to the height</li></ul을 가정합니다.>
y_size = stride * height
c_stride = ALIGN(stride/2, 16)
c_size = c_stride * height/2
size = y_size + c_size * 2
cr_offset = y_size
cb_offset = y_size + c_size
API의 android.hardware.camera2#YUV_420_888 경우 대신 YUV 출력에 이 형식을 사용하는 것이 좋습니다.
이전 카메라 API의 경우 이 형식은 API 수준 12부터 미리 보기 이미지에 android.hardware.Camera 대해 지원됩니다. 이전 API 버전의 경우 확인합니다 android.hardware.Camera.Parameters#getSupportedPreviewFormats().
카메라 미리 보기 콜백 사용(참조 android.hardware.Camera#setPreviewCallback)의 <경우 var>stride</var> 값이 가능한 가장 작은 값입니다. 즉, 다음과 같습니다.
stride = ALIGN(width, 16)
에 대한 android.graphics.ImageFormat.YV12Java 설명서
이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.
적용 대상
참고 항목
- <xref:Android.Hardware.Camera.SetPreviewCallback(.IPreviewCallback)>