Lines Matching refs:encode

72     EXPECT_EQ(8 + HeaderSize, BufferId::encode(18, buffer.data(), 0));  in TEST()
74 EXPECT_EQ(8 + HeaderSize, BufferId::encode(18, buffer.data(), buffer.size())); in TEST()
88 EXPECT_EQ(4 + HeaderSize, DataspaceValue::encode(Dataspace::BT2020, buffer.data(), 0)); in TEST()
91 DataspaceValue::encode(Dataspace::BT2020, buffer.data(), buffer.size())); in TEST()
106 EXPECT_EQ(expectedSize, NameValue::encode("Hello", buffer.data(), buffer.size())); in TEST()
127 NameValue::encode("This is a long string", buffer.data(), buffer.size())); in TEST()
143 NameValue::encode(bad_string, buffer.data(), buffer.size())); in TEST()
148 NameValue::encode(bad_string, buffer.data(), buffer.size())); in TEST()
157 EXPECT_EQ(8 + HeaderSize, WidthValue::encode(100, buffer.data(), buffer.size())); in TEST()
172 EXPECT_EQ(expectedSize, CompressionValue::encode(myCompression, buffer.data(), 0)); in TEST()
174 EXPECT_EQ(expectedSize, CompressionValue::encode(myCompression, buffer.data(), buffer.size())); in TEST()
192 EXPECT_EQ(expectedSize, PlaneLayoutValue::encode(layouts, buffer.data(), 0)); in TEST()
194 EXPECT_EQ(expectedSize, PlaneLayoutValue::encode(layouts, buffer.data(), buffer.size())); in TEST()
217 EXPECT_EQ(expectedSize, RectsValue::encode(cropRects, buffer.data(), buffer.size())); in TEST()
238 EXPECT_EQ(expectedSize, Smpte2086Value::encode(source, buffer.data(), buffer.size())); in TEST()
258 EXPECT_EQ(expectedSize, Cta861_3Value::encode(source, buffer.data(), buffer.size())); in TEST()
274 EXPECT_EQ(0, SMPTE2094_10Value::encode(std::nullopt, buffer.data(), buffer.size())); in TEST()
281 SMPTE2094_10Value::encode(emptyBuffer, buffer.data(), buffer.size())); in TEST()
289 SMPTE2094_10Value::encode(simpleBuffer, buffer.data(), buffer.size())); in TEST()
347 std::vector<uint8_t> encode(const typename StandardMetadata<T>::value_type& value) { in encode() function
350 int desiredSize = Value::encode(value, nullptr, 0); in encode()
354 EXPECT_EQ(desiredSize, Value::encode(value, buffer.data(), buffer.size())); in encode()
359 auto mpbuf = encode<StandardMetadataType::BUFFER_ID>(42); in TEST()
366 auto mpbuf = encode<StandardMetadataType::NAME>("Hello, Interop!"); in TEST()
373 auto mpbuf = encode<StandardMetadataType::WIDTH>(128); in TEST()
380 auto mpbuf = encode<StandardMetadataType::HEIGHT>(64); in TEST()
387 auto mpbuf = encode<StandardMetadataType::LAYER_COUNT>(3); in TEST()
394 auto mpbuf = encode<StandardMetadataType::PIXEL_FORMAT_REQUESTED>(PixelFormat::RGBX_8888); in TEST()
402 auto mpbuf = encode<StandardMetadataType::PIXEL_FORMAT_FOURCC>(DRM_FORMAT_ABGR8888); in TEST()
409 auto mpbuf = encode<StandardMetadataType::PIXEL_FORMAT_MODIFIER>(123456); in TEST()
416 auto mpbuf = encode<StandardMetadataType::USAGE>(BufferUsage::COMPOSER_OVERLAY); in TEST()
427 auto mpbuf = encode<StandardMetadataType::ALLOCATION_SIZE>(10200); in TEST()
434 auto mpbuf = encode<StandardMetadataType::PROTECTED_CONTENT>(1); in TEST()
441 auto mpbuf = encode<StandardMetadataType::COMPRESSION>( in TEST()
450 auto mpbuf = encode<StandardMetadataType::INTERLACED>(gralloc4::Interlaced_TopBottom); in TEST()
458 encode<StandardMetadataType::CHROMA_SITING>(gralloc4::ChromaSiting_SitedInterstitial); in TEST()
466 auto mpbuf = encode<StandardMetadataType::PLANE_LAYOUTS>(fakePlaneLayouts()); in TEST()
474 auto mpbuf = encode<StandardMetadataType::CROP>(cropRects); in TEST()
481 auto mpbuf = encode<StandardMetadataType::DATASPACE>(Dataspace::DISPLAY_P3); in TEST()
488 auto mpbuf = encode<StandardMetadataType::BLEND_MODE>(BlendMode::PREMULTIPLIED); in TEST()
498 auto mpbuf = encode<StandardMetadataType::SMPTE2086>(hdrdata); in TEST()
506 auto mpbuf = encode<StandardMetadataType::CTA861_3>(hdrdata); in TEST()
513 auto mpbuf = encode<StandardMetadataType::SMPTE2094_10>(std::nullopt); in TEST()
519 mpbuf = encode<StandardMetadataType::SMPTE2094_10>(hdrdata); in TEST()
525 auto mpbuf = encode<StandardMetadataType::SMPTE2094_40>(std::nullopt); in TEST()
531 mpbuf = encode<StandardMetadataType::SMPTE2094_40>(hdrdata); in TEST()