Home
last modified time | relevance | path

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

/frameworks/av/media/codec2/core/include/
DC2Buffer.h1338 struct C2Rect { struct
1345 constexpr inline C2Rect() in C2Rect() argument
1346 : C2Rect(0, 0, 0, 0) { } in C2Rect()
1348 constexpr inline C2Rect(uint32_t width_, uint32_t height_) in C2Rect() function
1349 : C2Rect(width_, height_, 0, 0) { } in C2Rect()
1351 constexpr C2Rect inline at(uint32_t left_, uint32_t top_) const { in at() argument
1352 return C2Rect(width, height, left_, top_); in at()
1374 inline constexpr bool contains(const C2Rect &other) const { in contains() argument
1384 inline constexpr bool operator==(const C2Rect &other) const {
1393 inline constexpr bool operator!=(const C2Rect &other) const {
[all …]
DC2Config.h1228 struct C2RectStruct : C2Rect {
1230 C2RectStruct(const C2Rect &rect) : C2Rect(rect) { } in C2RectStruct()
/frameworks/av/media/codec2/tests/vndk/
DC2BufferTest.cpp301 void mapGraphic(C2Rect rect, C2PlanarLayout *layout, uint8_t **addr) { in mapGraphic()
337 C2Rect mMappedRect;
429 void fillPlane(const C2Rect rect, const C2PlaneInfo info, uint8_t *addr, uint8_t value) { in fillPlane()
439 bool verifyPlane(const C2Rect rect, const C2PlaneInfo info, const uint8_t *addr, uint8_t value) { in verifyPlane()
459 C2Rect rect(kWidth, kHeight); in TEST_F()
476 fillPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), yInfo, y, 0x12); in TEST_F()
477 fillPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), uInfo, u, 0x34); in TEST_F()
478 fillPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), vInfo, v, 0x56); in TEST_F()
494 …ASSERT_TRUE(verifyPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), yInfo, y, 0x1… in TEST_F()
495 …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/internal/
DC2BlockInternal.h93 const C2Rect &allottedCrop = C2Rect(~0u, ~0u));
/frameworks/av/media/codec2/vndk/
DC2Buffer.cpp714 alloc, poolData, C2Rect(width, height)); in fetchGraphicBlock()
791 const C2Rect &allottedCrop = C2Rect(~0u, ~0u)) in _C2Block2DImpl()
840 const C2Rect crop = mImpl->crop(); in Mapped()
1007 const C2GraphicView C2GraphicView::subView(const C2Rect &rect) const { in subView()
1011 C2GraphicView C2GraphicView::subView(const C2Rect &rect) { in subView()
1036 C2ConstGraphicBlock C2ConstGraphicBlock::subBlock(const C2Rect &rect) const { in subBlock()
1057 C2ConstGraphicBlock C2GraphicBlock::share(const C2Rect &crop, C2Fence fence) { in share()
1089 const std::shared_ptr<_C2BlockPoolData> &data, const C2Rect &allottedCrop) { in CreateGraphicBlock()
DC2AllocatorGralloc.cpp302 C2Rect rect, C2MemoryUsage usage, C2Fence *fence,
305 uint8_t **addr /* nonnull */, C2Rect rect, C2Fence *fence /* nullable */) override;
379 unmap(addr, C2Rect(), nullptr); in ~C2AllocationGralloc()
406 C2Rect rect, C2MemoryUsage usage, C2Fence *fence, in map()
820 uint8_t **addr, C2Rect rect, C2Fence *fence /* nullable */) { in unmap()
/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.h153 const C2Rect &crop);
/frameworks/av/media/codec2/components/base/
DSimpleC2Component.cpp603 return createGraphicBuffer(block, C2Rect(block->width(), block->height())); in createGraphicBuffer()
607 const std::shared_ptr<C2GraphicBlock> &block, const C2Rect &crop) { in createGraphicBuffer()
/frameworks/av/media/codec2/sfplugin/
DCodec2Buffer.cpp556 mBlock->share(C2Rect(width, height), C2Fence())); in asC2Buffer()
601 block->share(C2Rect(buffer->width, buffer->height), C2Fence())); in asC2Buffer()
DC2OMXNode.cpp407 C2Rect(block->width(), block->height()), ::C2Fence()))); in emptyBuffer()
/frameworks/av/media/codec2/hidl/1.0/utils/
DInputSurfaceConnection.cpp218 C2Rect(block->width(), block->height()), ::C2Fence())), in submitBuffer()
Dtypes.cpp826 C2Rect sRect = s.crop(); in objcpy()
1238 C2Rect(rectInfo->width, rectInfo->height). in createGraphicBuffer()
/frameworks/av/media/codec2/hidl/1.0/vts/functional/video/
DVtsHalMediaC2V1_0TargetVideoEncTest.cpp41 : C2Buffer({block->share(C2Rect(block->width(), block->height()), in GraphicBuffer()
/frameworks/av/media/codec2/components/mpeg4_h263/
DC2SoftMpeg4Dec.cpp368 C2Rect(mWidth, mHeight)); in finishWork()
/frameworks/av/media/codec2/components/gav1/
DC2SoftGav1Dec.cpp368 createGraphicBuffer(block, C2Rect(mWidth, mHeight)); in finishWork()
/frameworks/av/media/codec2/components/aom/
DC2SoftAomDec.cpp379 createGraphicBuffer(block, C2Rect(mWidth, mHeight)); in finishWork()
/frameworks/av/media/codec2/components/vpx/
DC2SoftVpxDec.cpp503 C2Rect(mWidth, mHeight)); in finishWork()
/frameworks/av/media/codec2/components/hevc/
DC2SoftHevcDec.cpp699 C2Rect(mWidth, mHeight)); in finishWork()
/frameworks/av/media/codec2/components/avc/
DC2SoftAvcDec.cpp703 C2Rect(mWidth, mHeight)); in finishWork()
/frameworks/av/media/codec2/components/mpeg2/
DC2SoftMpeg2Dec.cpp773 C2Rect(mWidth, mHeight)); in finishWork()