27 মার্চ, 2025 থেকে, আমরা AOSP তৈরি করতে এবং অবদান রাখতে aosp-main
এর পরিবর্তে android-latest-release
ব্যবহার করার পরামর্শ দিচ্ছি। আরও তথ্যের জন্য, AOSP-তে পরিবর্তনগুলি দেখুন।
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
camera2_stream_ops স্ট্রাকট রেফারেন্স
#include < camera2.h >
আউটপুট ইমেজ স্ট্রীম সারি ইন্টারফেস. এই পদ্ধতিগুলির একটি সেট HAL ডিভাইসে allocate_stream() প্রদান করা হয়, এবং সেই স্ট্রীমের জন্য gralloc বাফার সারির সাথে ইন্টারঅ্যাক্ট করতে ব্যবহৃত হয়। বরাদ্দ_স্ট্রিম রিটার্ন না হওয়া পর্যন্ত তাদের ডাকা হবে না।
ফাইল camera2.h এর 73 লাইনে সংজ্ঞা।
এটিকে ভরাট হিসাবে চিহ্নিত না করে একটি বাফারকে সারিতে ফিরিয়ে দিন।
ফাইল camera2.h এর লাইন 102 এ সংজ্ঞা।
সারি থেকে পূরণ করার জন্য একটি বাফার পান। বাফারের আকার এবং বিন্যাস একটি প্রদত্ত স্ট্রিমের জন্য স্থির করা হয়েছে (অ্যালোকেট_স্ট্রীমে সংজ্ঞায়িত করা হয়েছে), এবং স্ট্রাইডটি প্ল্যাটফর্ম গ্র্যালক মডিউল থেকে জিজ্ঞাসা করা উচিত। allocate_stream দ্বারা প্রদত্ত ব্যবহারের পতাকার উপর ভিত্তি করে gralloc বাফার বরাদ্দ করা হবে, এবং ব্যবহারের জন্য লক করা হবে।
ফাইল camera2.h এর লাইন 81 এ সংজ্ঞা
int(* enqueue_buffer)(const struct camera2_stream_ops *w, int64_t টাইমস্ট্যাম্প, buffer_handle_t *বাফার) |
ভোক্তার দ্বারা ব্যবহার করার জন্য একটি ভরা বাফার স্ট্রীমে ঠেলে দিন।
টাইমস্ট্যাম্প চিত্রের প্রথম সারির প্রকাশের শুরুর সময়কে প্রতিনিধিত্ব করে; এটি একটি একঘেয়ে ঘড়ি থেকে হতে হবে, এবং ন্যানোসেকেন্ডে পরিমাপ করা হয়। টাইমস্ট্যাম্পগুলি বিভিন্ন ক্যামেরার মধ্যে বা একই ক্যামেরার পরপর দৃষ্টান্তগুলির মধ্যে তুলনা করার প্রয়োজন নেই৷ যাইহোক, তারা একই ক্যামেরা থেকে স্ট্রীম মধ্যে তুলনীয় হতে হবে. যদি একটি ক্যাপচার একাধিক স্ট্রীমের জন্য বাফার তৈরি করে, প্রতিটি স্ট্রীমে সেই বাফারের জন্য একই টাইমস্ট্যাম্প থাকতে হবে এবং সেই টাইমস্ট্যাম্পটি অবশ্যই আউটপুট ফ্রেমের মেটাডেটার টাইমস্ট্যাম্পের সাথে মেলে।
ফাইল camera2.h এর লাইন 96 এ সংজ্ঞা।
int(* set_crop)(const struct camera2_stream_ops *w, int left, int top, int right, int bottom) |
পরবর্তী সারিবদ্ধ বাফারের জন্য ক্রপ উইন্ডো সেট করুন। পরামিতিগুলি বাফারের প্রস্থ এবং উচ্চতার তুলনায় পিক্সেলে পরিমাপ করা হয়।
ফাইল camera2.h এর লাইন 108 এ সংজ্ঞা।
এই কাঠামোর জন্য ডকুমেন্টেশন নিম্নলিখিত ফাইল থেকে তৈরি করা হয়েছিল:
- hardware/libhardware/include/hardware/ camera2.h
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 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-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Android Hardware Abstraction Layer: camera2_stream_ops Struct Reference\n\ncamera2_stream_ops Struct Reference\n===================================\n\n[Data Fields](#pub-attribs) \ncamera2_stream_ops Struct Reference \n\n`\n#include \u003c\n`[camera2.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)`\n\u003e\n`\n\n|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| int(\\* | [dequeue_buffer](/reference/hal/structcamera2__stream__ops#ad51917100a74cf70e552c51e24407cbb) )(const struct [camera2_stream_ops](/reference/hal/structcamera2__stream__ops) \\*w, buffer_handle_t \\*\\*buffer) |\n| ||\n| int(\\* | [enqueue_buffer](/reference/hal/structcamera2__stream__ops#a724a4193411f3278ad9ad3f04ab983f1) )(const struct [camera2_stream_ops](/reference/hal/structcamera2__stream__ops) \\*w, int64_t timestamp, buffer_handle_t \\*buffer) |\n| ||\n| int(\\* | [cancel_buffer](/reference/hal/structcamera2__stream__ops#ae3aa87ba699c53b8960b6529eb01ba83) )(const struct [camera2_stream_ops](/reference/hal/structcamera2__stream__ops) \\*w, buffer_handle_t \\*buffer) |\n| ||\n| int(\\* | [set_crop](/reference/hal/structcamera2__stream__ops#a3c2102f917bfe992de1967f9f8abc1d6) )(const struct [camera2_stream_ops](/reference/hal/structcamera2__stream__ops) \\*w, int left, int top, int right, int bottom) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nOutput image stream queue interface. A set of these methods is provided to the HAL device in allocate_stream(), and are used to interact with the gralloc buffer queue for that stream. They may not be called until after allocate_stream returns.\n\n\nDefinition at line\n[73](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\nof file\n[camera2.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\n.\n\nField Documentation\n-------------------\n\n\n|-----------------------------------------------------------------------------------------------------------------------------------|\n| int(\\* cancel_buffer)(const struct [camera2_stream_ops](/reference/hal/structcamera2__stream__ops) \\*w, buffer_handle_t \\*buffer) |\n\n\nReturn a buffer to the queue without marking it as filled.\n\n\nDefinition at line\n[102](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\nof file\n[camera2.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\n.\n\n|--------------------------------------------------------------------------------------------------------------------------------------|\n| int(\\* dequeue_buffer)(const struct [camera2_stream_ops](/reference/hal/structcamera2__stream__ops) \\*w, buffer_handle_t \\*\\*buffer) |\n\n\nGet a buffer to fill from the queue. The size and format of the buffer are fixed for a given stream (defined in allocate_stream), and the stride should be queried from the platform gralloc module. The gralloc buffer will have been allocated based on the usage flags provided by allocate_stream, and will be locked for use.\n\n\nDefinition at line\n[81](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\nof file\n[camera2.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\n.\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| int(\\* enqueue_buffer)(const struct [camera2_stream_ops](/reference/hal/structcamera2__stream__ops) \\*w, int64_t timestamp, buffer_handle_t \\*buffer) |\n\n\nPush a filled buffer to the stream to be used by the consumer.\n\n\nThe timestamp represents the time at start of exposure of the first row of the image; it must be from a monotonic clock, and is measured in nanoseconds. The timestamps do not need to be comparable between different cameras, or consecutive instances of the same camera. However, they must be comparable between streams from the same camera. If one capture produces buffers for multiple streams, each stream must have the same timestamp for that buffer, and that timestamp must match the timestamp in the output frame metadata.\n\n\nDefinition at line\n[96](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\nof file\n[camera2.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\n.\n\n|----------------------------------------------------------------------------------------------------------------------------------------------|\n| int(\\* set_crop)(const struct [camera2_stream_ops](/reference/hal/structcamera2__stream__ops) \\*w, int left, int top, int right, int bottom) |\n\n\nSet the crop window for subsequently enqueued buffers. The parameters are measured in pixels relative to the buffer width and height.\n\n\nDefinition at line\n[108](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\nof file\n[camera2.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [camera2.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)"]]