Home
last modified time | relevance | path

Searched refs:C2Rect (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/av/media/codec2/core/include/
DC2Buffer.h1470 struct C2Rect { struct
1477 constexpr inline C2Rect() in C2Rect() argument
1478 : C2Rect(0, 0, 0, 0) { } in C2Rect()
1480 constexpr inline C2Rect(uint32_t width_, uint32_t height_) in C2Rect() argument
1481 : C2Rect(width_, height_, 0, 0) { } in C2Rect()
1483 constexpr C2Rect inline at(uint32_t left_, uint32_t top_) const { in at() argument
1484 return C2Rect(width, height, left_, top_); in at()
1506 inline constexpr bool contains(const C2Rect &other) const { in contains() argument
1516 inline constexpr bool operator==(const C2Rect &other) const {
1525 inline constexpr bool operator!=(const C2Rect &other) const {
[all …]
DC2Config.h1354 struct C2RectStruct : C2Rect {
1356 C2RectStruct(const C2Rect &rect) : C2Rect(rect) { } in C2RectStruct()
1421 struct C2QpOffsetRectStruct : C2Rect {
1423 C2QpOffsetRectStruct(const C2Rect &rect, int32_t offset) : C2Rect(rect), qpOffset(offset) {} in C2QpOffsetRectStruct()
/frameworks/av/media/codec2/tests/vndk/
DC2BufferTest.cpp302 void mapGraphic(C2Rect rect, C2PlanarLayout *layout, uint8_t **addr) { in mapGraphic()
343 C2Rect mMappedRect;
435 void fillPlane(const C2Rect rect, const C2PlaneInfo info, uint8_t *addr, uint8_t value) { in fillPlane()
445 bool verifyPlane(const C2Rect rect, const C2PlaneInfo info, const uint8_t *addr, uint8_t value) { in verifyPlane()
465 C2Rect rect(kWidth, kHeight); in TEST_F()
482 fillPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), yInfo, y, 0x12); in TEST_F()
483 fillPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), uInfo, u, 0x34); in TEST_F()
484 fillPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), vInfo, v, 0x56); in TEST_F()
500 …ASSERT_TRUE(verifyPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), yInfo, y, 0x1… in TEST_F()
501 …ASSERT_TRUE(verifyPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), uInfo, u, 0x3… in TEST_F()
[all …]
/frameworks/av/media/codec2/vndk/
DC2AllocatorBlob.cpp88 C2Rect rect(capacity(), kLinearBufferHeight); in ~C2AllocationBlob()
110 C2Rect rect = C2Rect(capacity(), kLinearBufferHeight); in map()
145 C2Rect rect(capacity(), kLinearBufferHeight); in unmap()
DC2AllocatorGralloc.cpp979 C2Rect c2Rect, C2MemoryUsage usage, C2Fence *fence,
982 uint8_t **addr /* nonnull */, C2Rect rect, C2Fence *fence /* nullable */) override;
1042 unmap(addr, C2Rect(), nullptr); in ~C2AllocationGralloc()
1062 C2Rect c2Rect, C2MemoryUsage usage, C2Fence *fence, in map()
1130 uint8_t **addr, C2Rect rect, C2Fence *fence /* nullable */) { in unmap()
1324 C2Rect c2Rect, C2MemoryUsage usage, C2Fence *fence,
1327 uint8_t **addr /* nonnull */, C2Rect rect, C2Fence *fence /* nullable */) override;
1385 unmap(addr, C2Rect(), nullptr); in ~C2AllocationAhwb()
1413 C2Rect c2Rect, C2MemoryUsage usage, C2Fence *fence, in map()
1480 uint8_t **addr, C2Rect rect, C2Fence *fence /* nullable */) { in unmap()
DC2Buffer.cpp837 alloc, poolData, C2Rect(width, height)); in fetchGraphicBlock()
1148 alloc, poolData, C2Rect(width, height)); in fetchGraphicBlock()
1245 const C2Rect &allottedCrop = C2Rect(~0u, ~0u)) in _C2Block2DImpl()
1294 const C2Rect crop = mImpl->crop(); in Mapped()
1461 const C2GraphicView C2GraphicView::subView(const C2Rect &rect) const { in subView()
1465 C2GraphicView C2GraphicView::subView(const C2Rect &rect) { in subView()
1490 C2ConstGraphicBlock C2ConstGraphicBlock::subBlock(const C2Rect &rect) const { in subBlock()
1511 C2ConstGraphicBlock C2GraphicBlock::share(const C2Rect &crop, C2Fence fence) { in share()
1543 const std::shared_ptr<_C2BlockPoolData> &data, const C2Rect &allottedCrop) { in CreateGraphicBlock()
/frameworks/av/media/codec2/vndk/internal/
DC2BlockInternal.h114 const C2Rect &allottedCrop = C2Rect(~0u, ~0u));
/frameworks/av/media/codec2/hal/common/
DBufferTypes.cpp85 C2Rect(rectInfo->width, rectInfo->height). in CreateGraphicBuffer()
/frameworks/av/media/tests/benchmark/src/native/common/
DBenchmarkC2Common.h51 : C2Buffer({block->share(C2Rect(block->width(), block->height()), ::C2Fence())}) {} in GraphicBuffer()
/frameworks/av/media/codec2/components/base/include/
DSimpleC2Component.h216 const C2Rect &crop);
/frameworks/av/media/codec2/hal/hidl/1.0/utils/
DInputSurfaceConnection.cpp220 C2Rect(block->width(), block->height()), ::C2Fence())), in submitBuffer()
/frameworks/av/media/codec2/sfplugin/tests/
DCCodecBuffers_test.cpp449 C2Rect rect, C2MemoryUsage usage, C2Fence *fence, in map()
461 c2_status_t unmap(uint8_t **, C2Rect, C2Fence *) override { return C2_OK; } in unmap() argument
/frameworks/av/media/codec2/sfplugin/
DC2NodeImpl.cpp360 C2Rect(block->width(), block->height()), ::C2Fence()))); in submitBuffer()
DCodec2Buffer.cpp755 mBlock->share(C2Rect(width, height), C2Fence())); in asC2Buffer()
821 block->share(C2Rect(buffer->width, buffer->height), C2Fence())); in asC2Buffer()
/frameworks/av/media/codec2/components/mpeg4_h263/
DC2SoftMpeg4Dec.cpp328 C2Rect(mWidth, mHeight)); in finishWork()
DC2SoftMpeg4Enc.cpp564 rView->setCrop_be(C2Rect(mSize->width, mSize->height)); in process()
/frameworks/av/media/codec2/components/aom/
DC2SoftAomDec.cpp380 createGraphicBuffer(block, C2Rect(mWidth, mHeight)); in finishWork()
/frameworks/av/media/codec2/hal/common/include/codec2/common/
DBufferTypes.h296 C2Rect sRect = s.crop(); in objcpy()
/frameworks/av/media/codec2/tests/aidl/
DGraphicsTracker_test.cpp240 blk->share(C2Rect(1, 1), C2Fence()), in queueBuffer()
/frameworks/av/media/codec2/hal/hidl/1.0/vts/functional/video/
DVtsHalMediaC2V1_0TargetVideoEncTest.cpp40 : C2Buffer({block->share(C2Rect(block->width(), block->height()), ::C2Fence())}) {} in GraphicBuffer()
/frameworks/av/media/codec2/components/vpx/
DC2SoftVpxDec.cpp537 C2Rect(mWidth, mHeight)); in finishWork()
DC2SoftVpxEnc.cpp865 rView->setCrop_be(C2Rect(mSize->width, mSize->height)); in process()
/frameworks/av/media/codec2/hal/plugin/samples/
DSampleFilterPlugin.cpp709 dstBlock->share(C2Rect(width, height), C2Fence())); in processLoop()
/frameworks/av/media/codec2/components/mpeg2/
DC2SoftMpeg2Dec.cpp788 C2Rect(mWidth, mHeight)); in finishWork()
/frameworks/av/media/codec2/components/avc/
DC2SoftAvcDec.cpp719 C2Rect(mWidth, mHeight)); in finishWork()

12