हमारा सुझाव है कि 27 मार्च, 2025 से AOSP को बनाने और उसमें योगदान देने के लिए, aosp-main
के बजाय android-latest-release
का इस्तेमाल करें. ज़्यादा जानकारी के लिए, AOSP में हुए बदलाव लेख पढ़ें.
अल्ट्रा एचडीआर
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Android 14 में, JPEG_R
इमेज फ़ॉर्मैट का इस्तेमाल करके, अल्ट्रा एचडीआर वाली संपीड़ित इमेज कैप्चर करने की सुविधा उपलब्ध है. यह फ़ॉर्मैट, एसडीआर JPEG इमेज के साथ काम करता है. साथ ही, कॉन्टेंट को एचडीआर में रेंडर करने की सुविधा देता है.
अल्ट्रा एचडीआर फ़ॉर्मैट स्पेसिफ़िकेशन के बारे में ज़्यादा जानने के लिए, अल्ट्रा एचडीआर इमेज फ़ॉर्मैट v1.0 देखें.
लागू करना
इस सेक्शन में, अल्ट्रा एचडीआर की सुविधा को लागू करने का तरीका बताया गया है.
रेफ़रंस के तौर पर लागू करना
AOSP कैमरा फ़्रेमवर्क और कैमरा सेवा में, Ultra HDR को लागू करने का रेफ़रंस शामिल है.
कैमरा फ़्रेमवर्क में रेफ़रंस फ़ंक्शन के अलावा, कैमरा एचएएल में अल्ट्रा एचडीआर को लागू किया जा सकता है. साथ ही, कैमरा एचएएल की अन्य आउटपुट स्ट्रीम की तरह ही, JPEG_R
आउटपुट के लिए सहायता का विज्ञापन किया जा सकता है. इस स्थिति में, कैमरे के एचएएल को ज़रूरी रिकवरी मैप और JPEG_R
इमेज जनरेट करनी होगी. यह अल्ट्रा एचडीआर स्पेसिफ़िकेशन के मुताबिक होनी चाहिए.
डिवाइस के हार्डवेयर और सॉफ़्टवेयर की क्षमताओं के आधार पर, आखिरी आउटपुट को ऑप्टिमाइज़ और ट्यून किया जा सकता है.
लागू करने के विकल्प
डिवाइस बनाने वाली कंपनियां, अपने डिवाइसों के लिए यहां दिए गए लेवल पर अल्ट्रा एचडीआर की सुविधा उपलब्ध करा सकती हैं:
- कम से कम: इस कॉन्फ़िगरेशन में, कैमरा सेवा की कंपोजिट स्ट्रीम की सुविधा के ज़रिए अल्ट्रा एचडीआर आउटपुट डिफ़ॉल्ट रूप से बंद रहता है.
JpegRCompositeStream
रेफ़रंस लागू करने की सुविधा चालू करने के लिए, ro.camera.enableCompositeAPI0JpegR
सिस्टम प्रॉपर्टी को true
पर सेट करें. सभी प्रोसेस और कोड बदलने की प्रोसेस, सॉफ़्टवेयर में की जाती है. इसलिए, इस विकल्प का इस्तेमाल करने पर, रिस्पॉन्स में देरी हो सकती है और परफ़ॉर्मेंस खराब हो सकती है.
- मध्यम: इस विकल्प के साथ,
JpegRCompositeStream
लागू करने के लिए, रिडक्शन मैप का हिसाब लगाने के लिए, बुनियादी इमेज के तौर पर HAL की दी गई एसडीआर JPEG फ़ाइल और P010 फ़्रेम का इस्तेमाल किया जाता है. इस विकल्प में, डेटा पाथ में सॉफ़्टवेयर प्रोसेसिंग शामिल होती है. हालांकि, यह कम से कम विकल्प की तुलना में कम है.
- ज़्यादा जानकारी: कैमरा एचएएल,
JPEG_R
आउटपुट स्ट्रीम का सीधे तौर पर विज्ञापन करता है और उसे इस्तेमाल करने की सुविधा देता है. इस विकल्प की मदद से, डिवाइस बनाने वाली कंपनियां, डिवाइस के हिसाब से ऑप्टिमाइज़ेशन लागू कर सकती हैं. इससे इमेज की क्वालिटी में काफ़ी सुधार हो सकता है.
JpegRCompositeStream
लागू करने की सुविधा बंद करने के लिए, ro.camera.disableJpegR
बिल्ड प्रॉपर्टी को true
पर सेट करें. अगर यह बिल्ड प्रॉपर्टी सेट नहीं है या false
पर सेट है, तो 10-बिट आउटपुट की सुविधा और एक साथ 10 और 8-बिट कैप्चर की सुविधा वाले डिवाइसों पर, JpegRCompositeStream
के ज़रिए अल्ट्रा एचडीआर डिफ़ॉल्ट रूप से चालू होता है.
पुष्टि करें
अपने डिवाइस पर अल्ट्रा एचडीआर की सुविधा की पुष्टि करने के लिए, ये टेस्ट चलाएं.
सीटीएस टेस्ट
आईटीएस टेस्ट
मैन्युअल तरीके से जांच करने की सुविधा
मैन्युअल टेस्ट करने के लिए, अल्ट्रा एचडीआर इमेज कैप्चर करने के लिए सैंपल लागू करने का इस्तेमाल करें. इसमें JPEG_R
इमेज फ़ॉर्मैट का इस्तेमाल करके, अल्ट्रा एचडीआर को कॉन्फ़िगर करने और कैप्चर करने की सुविधा शामिल है.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","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-26 (UTC) को अपडेट किया गया."],[],[],null,["# Ultra HDR\n\nAndroid 14 provides support for capturing Ultra HDR\ncompressed images using the\n[`JPEG_R`](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat#jpeg_r)\nimage format. This format is backward compatible with SDR JPEG images and\nsupports HDR rendering of content.\nFor details about the Ultra HDR format specification, see\n[Ultra HDR Image Format v1.0](https://developer.android.com/guide/topics/media/hdr-image-format).\n\nImplementation\n--------------\n\nThis section describes how to implement the Ultra HDR feature.\n\n### Reference implementation\n\nThe AOSP camera framework and camera service includes a reference Ultra HDR\nimplementation.\n\nIn addition to the reference functionality in the camera framework, you can\nimplement Ultra HDR within the camera HAL and advertise support for `JPEG_R`\noutput in the same way as other camera HAL output streams. In this scenario,\nthe camera HAL must generate the necessary recovery map and the final `JPEG_R`\nimage as defined by the\n[Ultra HDR specification](https://developer.android.com/guide/topics/media/hdr-image-format#introduction).\nYou can optimize and tune the final output depending on the device hardware\nand software capabilities.\n\n### Implementation options\n\nDevice manufacturers can decide on the following levels of Ultra HDR support for\ntheir devices:\n\n- **Minimal:** In this configuration, Ultra HDR output through the camera service composite stream functionality is disabled by default. To enable the `JpegRCompositeStream` reference implementation, set the `ro.camera.enableCompositeAPI0JpegR` system property to `true`. Because all processes and encoding is performed in software, this option can result in increased latency and decreased performance.\n- **Moderate:** With this option, the `JpegRCompositeStream` implementation uses a HAL-provided SDR JPEG file as a base image and a P010 frame to calculate a recovery map. This option involves software processing within the data path but is relatively minor compared to the minimal option.\n- **Extensive:** The camera HAL advertises and supports the `JPEG_R` output stream directly. This option lets device manufacturers implement device-specific optimizations and can provide significant image quality improvements.\n\nTo disable the `JpegRCompositeStream` implementation, set the\n`ro.camera.disableJpegR` build property to `true`. If this build property isn't\nset or is set to `false`, Ultra HDR is enabled by default through\n`JpegRCompositeStream` on devices supporting\n[10-bit output capability](https://developer.android.com/reference/android/hardware/camera2/CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT)\nand\n[concurrent 10 and 8-bit capture](https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles#getProfileCaptureRequestConstraints(long)).\n\nValidation\n----------\n\nTo validate the Ultra HDR feature on your device, run the following tests.\n\n### CTS tests\n\n- [`ImageReaderTest.java#testImageReaderBuilderWithBLOBAndJpegR`](https://android.googlesource.com/platform/cts/+/refs/heads/android16-release/tests/camera/src/android/hardware/camera2/cts/ImageReaderTest.java#815)\n- [`ImageReaderTest.java#testJpegR`](https://android.googlesource.com/platform/cts/+/refs/heads/android16-release/tests/camera/src/android/hardware/camera2/cts/ImageReaderTest.java#503)\n- [`ImageReaderTest.java#testJpegRDisplayP3`](https://android.googlesource.com/platform/cts/+/refs/heads/android16-release/tests/camera/src/android/hardware/camera2/cts/ImageReaderTest.java#526)\n- [`PerformanceTest.java#testSingleCapture`](https://android.googlesource.com/platform/cts/+/refs/heads/android16-release/tests/camera/src/android/hardware/camera2/cts/PerformanceTest.java#313)\n- [`StillCaptureTest.java# testJpegRCapture`](https://android.googlesource.com/platform/cts/+/refs/heads/android16-release/tests/camera/src/android/hardware/camera2/cts/StillCaptureTest.java#192)\n\n### ITS tests\n\n- [`scene4#test_aspect_ratio_and_crop`](https://android.googlesource.com/platform/cts/+/refs/heads/android16-release/apps/CameraITS/tests/scene4/test_aspect_ratio_and_crop.py)\n\n### Manual tests\n\nTo perform manual tests, use the\n[sample implementation for Ultra HDR image capture](https://github.com/android/platform-samples/pull/56),\nwhich includes support for the configuration and capture of Ultra HDR using the\n`JPEG_R` image format."]]