Home
last modified time | relevance | path

Searched refs:OHNativeWindowBuffer (Results 1 – 25 of 58) sorted by relevance

123

/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkgraphics2d/
H A D_native_window.md38 | typedef struct NativeWindowBuffer [OHNativeWindowBuffer](#ohnativewindowbuffer) | 提供对OHNativeWind…
156 ### OHNativeWindowBuffer subsection
164 提供对OHNativeWindowBuffer的访问功能。
620 创建OHNativeWindowBuffer实例,每次调用都会产生一个新的OHNativeWindowBuffer实例。
636 返回一个指针,指向OHNativeWindowBuffer的结构体实例。
647 创建OHNativeWindowBuffer实例,每次调用都会产生一个新的OHNativeWindowBuffer实例。
665 返回一个指针,指向OHNativeWindowBuffer的结构体实例。
729OHNativeWindowBuffer对象的引用计数减1,当引用计数为0的时候,该OHNativeWindowBuffer对象会被析构掉。
792 | buffer | 一个OHNativeWindowBuffer结构体指针的指针。 |
941OHNativeWindowBuffer添加进OHNativeWindow中。
[all …]
H A Dexternal__window_8h.md36 …pedef struct NativeWindowBuffer [OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) | 提…
60OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \* [OH_NativeWindow_CreateNativeWind…
61OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \* [OH_NativeWindow_CreateNativeWind…
62 …ffer) ([OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \*buffer) | 将OHNativeWindowB…
63 …*window, [OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \*\*buffer, int \*fenceFd)…
64OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \*buffer, int fenceFd, [Region](_reg…
65OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \*\*buffer, int \*fenceFd, float mat…
66 …ndow) \*window, [OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \*buffer) | 通过OHNat…
68 …etbufferhandlefromnative) ([OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \*buffer…
76 …d#ohnativewindow) \*window, [OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \*buffe…
[all …]
H A D_o_h___native_image.md36 | typedef struct NativeWindowBuffer [OHNativeWindowBuffer](#ohnativewindowbuffer) | 提供NativeWindowB…
143 ### OHNativeWindowBuffer subsection
146 typedef struct NativeWindowBuffer OHNativeWindowBuffer
290 通过消费端的**OH_NativeImage**获取一个**OHNativeWindowBuffer**。
294 本接口将会创建一个**OHNativeWindowBuffer**。
296 当使用**OHNativeWindowBuffer**时,用户需要通过**OH_NativeWindow_NativeObjectReference**接口将其引用计数加一。
298 当**OHNativeWindowBuffer**使用完,用户需要通过**OH_NativeWindow_NativeObjectUnreference**接口将其引用计数减一。
314 | nativeWindowBuffer | 指向**OHNativeWindowBuffer**指针的指针。 |
329 int32_t OH_NativeImage_ReleaseNativeWindowBuffer (OH_NativeImage* image, OHNativeWindowBuffer* nati…
334 通过**OH_NativeImage**实例将**OHNativeWindowBuffer**归还到buffer队列中。
[all …]
H A Dnative__image_8h.md31 | typedef struct NativeWindowBuffer [OHNativeWindowBuffer](_o_h___native_image.md#ohnativewindowbuf…
59OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \*\*nativeWindowBuffer, int \*fenceF…
60 …e, [OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \*nativeWindowBuffer, int fenceF…
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/utils/common/
H A Dvpe_helper.cpp29 … int32_t (*)(int32_t, OHNativeWindowBuffer*, OHNativeWindowBuffer *, OHNativeWindowBuffer *, bool);
31 int32_t (*)(int32_t, OHNativeWindowBuffer *, OHNativeWindowBuffer *, OHNativeWindowBuffer *);
33 int32_t (*)(int32_t, OHNativeWindowBuffer *, OHNativeWindowBuffer *);
37 using VpeMetadataGeneratorProcessImage = int32_t (*)(int32_t, OHNativeWindowBuffer *);
123OHNativeWindowBuffer *sdr = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&inputSdrIma… in ColorSpaceConverterComposeImage()
125OHNativeWindowBuffer *hdr = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&outputHdrIm… in ColorSpaceConverterComposeImage()
139OHNativeWindowBuffer *hdr = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&inputImage); in ColorSpaceConverterDecomposeImage()
140OHNativeWindowBuffer *sdr = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&outputSdrIm… in ColorSpaceConverterDecomposeImage()
155OHNativeWindowBuffer *hdr = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&inputImage); in ColorSpaceConverterProcessImage()
156OHNativeWindowBuffer *sdr = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&outputSdrIm… in ColorSpaceConverterProcessImage()
[all …]
/ohos5.0/foundation/graphic/graphic_surface/interfaces/inner_api/surface/
H A Dexternal_window.h78 typedef struct NativeWindowBuffer OHNativeWindowBuffer; typedef
439 OHNativeWindowBuffer* OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(void* pSurfaceBuffe…
462 void OH_NativeWindow_DestroyNativeWindowBuffer(OHNativeWindowBuffer* buffer);
476 OHNativeWindowBuffer **buffer, int *fenceFd);
491 int32_t OH_NativeWindow_NativeWindowFlushBuffer(OHNativeWindow *window, OHNativeWindowBuffer *buffe…
508 int32_t OH_NativeWindow_GetLastFlushedBuffer(OHNativeWindow *window, OHNativeWindowBuffer **buffer,
522 int32_t OH_NativeWindow_NativeWindowAbortBuffer(OHNativeWindow *window, OHNativeWindowBuffer *buffe…
546 BufferHandle *OH_NativeWindow_GetBufferHandleFromNative(OHNativeWindowBuffer *buffer);
677 int32_t OH_NativeWindow_NativeWindowAttachBuffer(OHNativeWindow *window, OHNativeWindowBuffer *buff…
689 int32_t OH_NativeWindow_NativeWindowDetachBuffer(OHNativeWindow *window, OHNativeWindowBuffer *buff…
[all …]
H A Dwindow.h38 OHNativeWindowBuffer* CreateNativeWindowBufferFromSurfaceBuffer(void* pSurfaceBuffer);
39 OHNativeWindowBuffer* CreateNativeWindowBufferFromNativeBuffer(OH_NativeBuffer* nativeBuffer);
40 void DestroyNativeWindowBuffer(OHNativeWindowBuffer* buffer);
42 int32_t NativeWindowRequestBuffer(OHNativeWindow *window, OHNativeWindowBuffer **buffer, int *fence…
43 int32_t NativeWindowFlushBuffer(OHNativeWindow *window, OHNativeWindowBuffer *buffer,
45 int32_t GetLastFlushedBuffer(OHNativeWindow *window, OHNativeWindowBuffer **buffer,
47 int32_t NativeWindowCancelBuffer(OHNativeWindow *window, OHNativeWindowBuffer *buffer);
52 BufferHandle *GetBufferHandleFromNative(OHNativeWindowBuffer *buffer);
67 int32_t NativeWindowAttachBuffer(OHNativeWindow *window, OHNativeWindowBuffer *buffer);
68 int32_t NativeWindowDetachBuffer(OHNativeWindow *window, OHNativeWindowBuffer *buffer);
[all …]
H A Dnative_buffer.h48 typedef struct NativeWindowBuffer OHNativeWindowBuffer; typedef
553 int32_t OH_NativeBuffer_FromNativeWindowBuffer(OHNativeWindowBuffer *nativeWindowBuffer, OH_NativeB…
/ohos5.0/docs/zh-cn/application-dev/graphics/
H A Dnative-window-guidelines.md15 …fer (OHNativeWindow \*window, OHNativeWindowBuffer \*\*buffer, int \*fenceFd) | 通过OHNativeWindow对象…
16 …HNativeWindow \*window, OHNativeWindowBuffer \*buffer, int fenceFd, Region region) | 通过OHNativeWin…
109 2. **设置OHNativeWindowBuffer的属性**。使用`OH_NativeWindow_NativeWindowHandleOpt`设置`OHNativeWindowBuffer`的…
111 // 设置 OHNativeWindowBuffer 的宽高
119 3. **从图形队列申请OHNativeWindowBuffer**。
121 OHNativeWindowBuffer* buffer = nullptr;
123 // 通过 OH_NativeWindow_NativeWindowRequestBuffer 获取 OHNativeWindowBuffer 实例
144 5. **将生产的内容写入OHNativeWindowBuffer,在这之前需要等待releaseFenceFd可用(注意releaseFenceFd不等于-1才需要调用poll)。如果没有等待re…
168 6. **提交OHNativeWindowBuffer到图形队列。请注意OH_NativeWindow_NativeWindowFlushBuffer接口的acquireFenceFd不可以和OH_…
170 // 设置刷新区域,如果Region中的Rect为nullptr,或者rectNumber为0,则认为OHNativeWindowBuffer全部有内容更改。
H A Dnative-image-guidelines.md201 5. **将生产的内容写入OHNativeWindowBuffer**。
203 1. 从NativeWindow中获取OHNativeWindowBuffer
206 OHNativeWindowBuffer *buffer = nullptr;
208 // 通过 OH_NativeWindow_NativeWindowRequestBuffer 获取 OHNativeWindowBuffer 实例
214 2. 将生产的内容写入OHNativeWindowBuffer
237 3. 将OHNativeWindowBuffer提交到NativeWindow。
240 // 设置刷新区域,如果Region中的Rect数组为nullptr,或者rectNumber为0,则认为OHNativeWindowBuffer全部内容有更改。
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/
H A Dexternal__window_8h.md36 …indowBuffer [OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) | Provides the capabili…
60OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \* [OH_NativeWindow_CreateNativeWind…
61OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \* [OH_NativeWindow_CreateNativeWind…
62 …buffer) ([OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \*buffer) | Decreases the …
63 …w) \*window, [OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \*\*buffer, int \*fenc…
64 …[OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \*buffer, int fenceFd, [Region](_re…
65 …ow, [OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \*\*buffer, int \*fenceFd, floa…
66OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \*buffer) | Returns the **OHNativeWi…
68 …) ([OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \*buffer) | Obtains the pointer …
76 …ivewindow) \*window, [OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \*buffer) | At…
[all …]
H A D_native_window.md38 … NativeWindowBuffer [OHNativeWindowBuffer](#ohnativewindowbuffer) | Provides the capability of acc…
156 ### OHNativeWindowBuffer subsection
159 typedef struct NativeWindowBuffer OHNativeWindowBuffer
630 Creates an **OHNativeWindowBuffer** instance. A new **OHNativeWindowBuffer** instance is created ea…
659 Creates an **OHNativeWindowBuffer** instance. A new **OHNativeWindowBuffer** instance is created ea…
756 | buffer | Pointer to an **OHNativeWindowBuffer** instance.|
779 | buffer | Pointer to an **OHNativeWindowBuffer** instance.|
950 | buffer | Pointer to an **OHNativeWindowBuffer** instance.|
979 | buffer | Pointer to an **OHNativeWindowBuffer** instance.|
1007 | buffer | Pointer to an **OHNativeWindowBuffer** instance.|
[all …]
H A D_o_h___native_image.md36 | typedef struct NativeWindowBuffer [OHNativeWindowBuffer](#ohnativewindowbuffer) | Provides the de…
143 ### OHNativeWindowBuffer subsection
146 typedef struct NativeWindowBuffer OHNativeWindowBuffer
283 int32_t OH_NativeImage_AcquireNativeWindowBuffer (OH_NativeImage* image, OHNativeWindowBuffer** nat…
288 Obtains an **OHNativeWindowBuffer** instance through an **OH_NativeImage** instance on the consumer…
292 This function creates an **OHNativeWindowBuffer**.
294 When using the **OHNativeWindowBuffer**, call **OH_NativeWindow_NativeObjectReference** to increase…
313 | nativeWindowBuffer | Double pointer to the **OHNativeWindowBuffer** instance obtained.|
328 int32_t OH_NativeImage_ReleaseNativeWindowBuffer (OH_NativeImage* image, OHNativeWindowBuffer* nati…
333 Releases an **OHNativeWindowBuffer** instance through an **OH_NativeImage** instance.
[all …]
H A Dnative__image_8h.md31 | typedef struct NativeWindowBuffer [OHNativeWindowBuffer](_o_h___native_image.md#ohnativewindowbuf…
59OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \*\*nativeWindowBuffer, int \*fenceF…
60 …\*image, [OHNativeWindowBuffer](_native_window.md#ohnativewindowbuffer) \*nativeWindowBuffer, int …
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/
H A Dvpe_utils.cpp59 int32_t (*)(int32_t, OHNativeWindowBuffer*, OHNativeWindowBuffer*, OHNativeWindowBuffer*, bool);
61 int32_t (*)(int32_t, OHNativeWindowBuffer*, OHNativeWindowBuffer*, OHNativeWindowBuffer*);
63 int32_t (*)(int32_t, OHNativeWindowBuffer*, OHNativeWindowBuffer*);
65 int32_t (*)(int32_t, OHNativeWindowBuffer*, OHNativeWindowBuffer*, int32_t);
146 OHNativeWindowBuffer* sdr = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&sb.sdr); in ColorSpaceConverterComposeImage()
148 OHNativeWindowBuffer* hdr = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&sb.hdr); in ColorSpaceConverterComposeImage()
178 OHNativeWindowBuffer* sdr = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&sb.sdr); in ColorSpaceConverterDecomposeImage()
180 OHNativeWindowBuffer* hdr = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&sb.hdr); in ColorSpaceConverterDecomposeImage()
386 OHNativeWindowBuffer* sdr = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&input); in ColorSpaceConverterImageProcess()
387 OHNativeWindowBuffer* hdr = OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(&output); in ColorSpaceConverterImageProcess()
[all …]
/ohos5.0/docs/en/application-dev/graphics/
H A Dnative-window-guidelines.md16 …tBuffer (OHNativeWindow \*window, OHNativeWindowBuffer \*\*buffer, int \*fenceFd) | Requests an **
17 …er (OHNativeWindow \*window, OHNativeWindowBuffer \*buffer, int fenceFd, Region region) | Flushes …
110 2. Set the attributes of an **OHNativeWindowBuffer** by using **OH_NativeWindow_NativeWindowHandleO…
112 // Set the width and height of the OHNativeWindowBuffer.
120 3. Request an **OHNativeWindowBuffer** from the graphics queue.
122 OHNativeWindowBuffer* buffer = nullptr;
124 … // Obtain the OHNativeWindowBuffer instance by calling OH_NativeWindow_NativeWindowRequestBuffer.
145 5. Write the produced content to the **OHNativeWindowBuffer**.
171 6. Flush the **OHNativeWindowBuffer** to the graphics queue.
175 … Region is a null pointer or rectNumber is 0, all contents in the OHNativeWindowBuffer are changed.
H A Dnative-image-guidelines.md204 5. Write the produced content to the **OHNativeWindowBuffer**.
206 1. Obtain an **OHNativeWindowBuffer** instance from the **NativeWindow** instance.
209 OHNativeWindowBuffer *buffer = nullptr;
211 … // Obtain an OHNativeWindowBuffer instance by calling OH_NativeWindow_NativeWindowRequestBuffer.
217 2. Write the produced content to the **OHNativeWindowBuffer**.
240 3. Flush the **OHNativeWindowBuffer** to the **NativeWindow**.
243 … Region is a null pointer or rectNumber is 0, all contents in the OHNativeWindowBuffer are changed.
/ohos5.0/base/web/webview/ohos_adapter/graphic_adapter/src/
H A Dnative_image_adapter_impl.cpp133 OHNativeWindowBuffer* buffer = nullptr; in AcquireNativeWindowBuffer()
148 …int32_t ret = OH_NativeBuffer_FromNativeWindowBuffer(static_cast<OHNativeWindowBuffer*>(windowBuff… in GetNativeBuffer()
164 static_cast<OHNativeWindowBuffer*>(windowBuffer), fenceFd); in ReleaseNativeWindowBuffer()
172 …e *handle = OH_NativeWindow_GetBufferHandleFromNative(static_cast<OHNativeWindowBuffer*>(windowBuf… in GetNativeWindowBufferSize()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/inner_api/surface/
H A Dnative_image.h53 typedef struct NativeWindowBuffer OHNativeWindowBuffer; typedef
248 OHNativeWindowBuffer** nativeWindowBuffer, int* fenceFd);
267 OHNativeWindowBuffer* nativeWindowBuffer, int fenceFd);
/ohos5.0/foundation/graphic/graphic_surface/surface/src/
H A Dnative_window.cpp131 OHNativeWindowBuffer* CreateNativeWindowBufferFromSurfaceBuffer(void* pSurfaceBuffer) in CreateNativeWindowBufferFromSurfaceBuffer()
136 OHNativeWindowBuffer *nwBuffer = new OHNativeWindowBuffer(); in CreateNativeWindowBufferFromSurfaceBuffer()
147 OHNativeWindowBuffer *nwBuffer = new OHNativeWindowBuffer(); in CreateNativeWindowBufferFromNativeBuffer()
155 void DestroyNativeWindowBuffer(OHNativeWindowBuffer* buffer) in DestroyNativeWindowBuffer()
164 OHNativeWindowBuffer **buffer, int *fenceFd) in NativeWindowRequestBuffer()
196 OHNativeWindowBuffer *nwBuffer = new OHNativeWindowBuffer(); in NativeWindowRequestBuffer()
211 int32_t NativeWindowFlushBuffer(OHNativeWindow *window, OHNativeWindowBuffer *buffer, in NativeWindowFlushBuffer()
268 OHNativeWindowBuffer *nwBuffer = new OHNativeWindowBuffer(); in GetLastFlushedBuffer()
283 int32_t NativeWindowAttachBuffer(OHNativeWindow *window, OHNativeWindowBuffer *buffer) in NativeWindowAttachBuffer()
528 BufferHandle *GetBufferHandleFromNative(OHNativeWindowBuffer *buffer) in GetBufferHandleFromNative()
[all …]
/ohos5.0/docs/zh-cn/application-dev/media/avcodec/
H A Dparallel-decoding-nativeWindow.md75 OHNativeWindowBuffer *buffer = nullptr;
77 // 通过消费端的OH_NativeImage获取一个OHNativeWindowBuffer
79 // 通过OH_NativeImage实例将OHNativeWindowBuffer归还到buffer队列中
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/create_pixelmap_surface/src/
H A Dpixel_map_from_surface.cpp109 OHNativeWindowBuffer* nativeWindowBuffer_ = nullptr;
193 OHNativeWindowBuffer *GetNativeWindowBufferFromSurface(sptr<SurfaceBuffer> &surfaceBuffer,
203 OHNativeWindowBuffer *nativeWindowBufferTmp, const sptr<SurfaceBuffer> &surfaceBufferTmp,
209 OHNativeWindowBuffer *nativeWindowBuffer_ = nullptr;
359 OHNativeWindowBuffer *nativeWindowBufferTmp, const sptr<SurfaceBuffer> &surfaceBufferTmp, in DrawImageRectVK()
488OHNativeWindowBuffer *nativeWindowBufferTmp = CreateNativeWindowBufferFromSurfaceBuffer(&surfaceBu… in CreateForVK()
506 OHNativeWindowBuffer *PixelMapFromSurface::GetNativeWindowBufferFromSurface( in GetNativeWindowBufferFromSurface()
/ohos5.0/foundation/graphic/graphic_2d/frameworks/surfaceimage/include/
H A Dsurface_image.h79 …SurfaceError AcquireNativeWindowBuffer(OHNativeWindowBuffer** nativeWindowBuffer, int32_t* fenceFd…
80 … SurfaceError ReleaseNativeWindowBuffer(OHNativeWindowBuffer* nativeWindowBuffer, int32_t fenceFd);
/ohos5.0/foundation/graphic/graphic_2d/frameworks/surfaceimage/src/
H A Dsurface_image.cpp415 SurfaceError SurfaceImage::AcquireNativeWindowBuffer(OHNativeWindowBuffer** nativeWindowBuffer, int… in AcquireNativeWindowBuffer()
436 OHNativeWindowBuffer *nwBuffer = new OHNativeWindowBuffer(); in AcquireNativeWindowBuffer()
444 SurfaceError SurfaceImage::ReleaseNativeWindowBuffer(OHNativeWindowBuffer* nativeWindowBuffer, int3… in ReleaseNativeWindowBuffer()
/ohos5.0/foundation/graphic/graphic_surface/surface/test/fuzztest/nativewindow_fuzzer/
H A Dnativewindow_fuzzer.cpp124 void NativeWindowFuzzTest(OHNativeWindow *nativeWindow, OHNativeWindowBuffer *nwBuffer) in NativeWindowFuzzTest()
157 void NativeWindowFuzzTest1(OHNativeWindow *nativeWindow, OHNativeWindowBuffer *nwBuffer) in NativeWindowFuzzTest1()
225 OHNativeWindowBuffer* nwBuffer = CreateNativeWindowBufferFromSurfaceBuffer(&sBuffer); in DoSomethingInterestingWithMyAPI()

123