از 27 مارس 2025، توصیه می کنیم از android-latest-release
به جای aosp-main
برای ساختن و کمک به AOSP استفاده کنید. برای اطلاعات بیشتر، به تغییرات AOSP مراجعه کنید.
حالت های محدوده دینامیکی بالا
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
اشکال مختلف ضبط محدوده دینامیکی بالا (HDR) در Camera2
API موجود است. این صفحه ویژگیها، قابلیتها و حالتهای مختلف برای HDR و تفاوت آنها بسته به API خاص را توضیح میدهد.
ضبط HDR همچنان
عکسبرداری در HDR الگوریتمهای مختلفی را برای بهبود دامنه دینامیکی دوربینهای موبایل در بر میگیرد.
برای اندروید 13 و بالاتر، capability
خروجی دوربین 10 بیتی از خروجی دوربین 10 بیتی پشتیبانی می کند. کلاس DynamicRangeProfiles
محدوده دینامیکی HDR به مشتریان دوربین اجازه میدهد خروجیهای دوربین را با قابلیت تولید فریمهایی با فرمت پیکسلی ۱۰ بیتی و عملکردهای انتقال ۱۰ بیتی مربوطه پیکربندی کنند. پیکربندیهای خروجی دوربین 10 بیتی با استفاده از نمایههای محدوده دینامیکی HDR فقط عمق بیت فیزیکی طولانی را امکانپذیر میکند. پیکربندی های خروجی دوربین 10 بیتی می توانند از حالت های زیر در ارتباط با حالت صحنه HDR استفاده کنند:
- ضبط 10 بیتی بدون فشرده سازی با استفاده از قالب پیکسلی P010 .
- عکسبرداری فشرده HDR با استفاده از قالب پیکسلی
JPEG_R
بر اساس مشخصات Ultra HDR .
برای دستگاههایی که اندروید 12 یا پایینتر دارند، روشهای ضبط HDR همچنان شامل فریمهایی است که در برخی مواقع به محدوده دینامیکی استاندارد 8 بیت فشرده میشوند. روشهای زیر روشهای عکاسی HDR هستند که در آن چندین فریم با نوردهیهای مختلف گرفته میشود و نتیجه نهایی HDR با ترکیب تصاویر منفرد ایجاد میشود:
- حالت صحنه HDR : این حالت در لایه HAL دوربین پیادهسازی میشود و در صورت پشتیبانی میتواند توسط مشتریان دوربین در درخواستهای معمولی ضبط دوربین تنظیم شود.
- نوع پسوند HDR : این نوع پسوند برای صحنه های با کنتراست بالا توصیه می شود. از یک جلسه عکس برداری با قابلیت های محدود در مقایسه با جلسات ضبط معمولی استفاده می کند. در همان دستگاه، افزونههای دوربین میتوانند نتایجی با کیفیت تصویر بالاتر نسبت به درخواستهای معمولی ثبت کنند.
فیلمبرداری HDR
برخلاف فیلمبرداری HDR، ویدیو HDR فقط به ضبط ویدیوی HDR (ضبط ویدیوی 10 بیتی) اشاره دارد.
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# High dynamic range modes\n\nVarious forms of high dynamic range (HDR) capture are available in the\n[`Camera2`](https://developer.android.com/reference/android/hardware/camera2/package-summary)\nAPI. This page describes the various features, capabilities, and modes for HDR\nand how they differ depending on the specific API.\n\nHDR still capture\n-----------------\n\nStill capture in HDR encapsulates a variety of algorithms for improving the\ndynamic range of mobile cameras.\n\nFor Android 13 and higher, the 10-bit camera output\n[`capability`](/docs/core/camera/10-bit-camera-output)\nsupports 10-bit camera output. The HDR dynamic range\n[`DynamicRangeProfiles`](https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles)\nclass lets camera clients configure camera outputs capable of producing\nframes with actual 10-bit pixel format and corresponding 10-bit transfer\nfunctions. 10-bit camera\n[output configurations](https://developer.android.com/reference/kotlin/android/hardware/camera2/params/OutputConfiguration#setdynamicrangeprofile)\nusing HDR dynamic range profiles enable only the extended physical bit depth.\n10-bit camera output configurations can use the following modes in conjunction\nwith the\n[HDR scene mode](https://developer.android.com/reference/android/hardware/camera2/CameraMetadata#CONTROL_SCENE_MODE_HDR):\n\n- 10-bit uncompressed still capture using the [P010](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat#ycbcr_p010) pixel format.\n- HDR compressed still capture using the [`JPEG_R`](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat#jpeg_r) pixel format based on the [Ultra HDR](https://developer.android.com/guide/topics/media/hdr-image-format) specification.\n\nFor devices running Android 12 or lower, HDR still capture methods involve\nprocessing frames that at some point get compressed to the standard 8-bit\ndynamic range. The following are HDR still capture methods where several frames\nwith different exposures are captured and the final HDR result is produced by\nfusing the individual images:\n\n- [HDR scene mode](https://developer.android.com/reference/android/hardware/camera2/CameraMetadata#CONTROL_SCENE_MODE_HDR): This mode is implemented at the camera HAL layer and if supported can be set by camera clients within regular camera capture requests.\n- [HDR extension type](https://developer.android.com/reference/android/hardware/camera2/CameraExtensionCharacteristics#EXTENSION_HDR): This extension type is recommended for high contrast scenes. Uses a capture session with limited capabilities when compared to regular capture sessions. On the same device, camera extensions can produce results with higher image quality than regular capture requests.\n\nHDR video recording\n-------------------\n\nIn contrast to HDR still capture, video HDR refers only to\n[HDR video capture (10-bit video recording)](https://developer.android.com/training/camera2/hdr-video-capture)."]]