Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other
Target Operating System
Linux
QNX
other
Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other
SDK Manager Version
1.9.3.10904
other
Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other
Hi,
I tried to construct a jpeg encoder based on NvMedia with this parameter:
status = PopulateNvSciBufAttrList(
RGBA_8bit,
m_width,
m_height,
true, /* needCpuAccess */
NvSciBufImage_PitchLinearType,
2, /* RGBA image is stored in 1 plane, YUV normally in 2 */
NvSciBufAccessPerm_ReadWrite,
256U, // lumaBaseAddressAlign
NvSciColorStd_SENSOR_RGBA,
NvSciBufScan_ProgressiveType,
bufAttributeList);
if (NVMEDIA_STATUS_OK != status) {
LOG_ERR("NVDrive: Failed to populate attributes\n");
}
err = NvSciBufAttrListReconcile(&bufAttributeList, 1U,
&bufReconciledList, &bufConflictList);
if (err != NvSciError_Success) {
LOG_ERR("NVDrive: Reconciliation for input frame failed\n");
}
ijpeCtx = NvMediaIJPECreate(bufReconciledList,
n_inputs, // maxOutputBuffering
MAX_BITSTREAM_SIZE, // maxBitstreamBytes
NVMEDIA_JPEG_INSTANCE_0); // HW instance id
If I use RGBA_8bit as input, there will be an error when executing NvMediaIJPECreate(): Failed to get buffer attributes. If I replace RGBA_8bit with any yuv format, it would simply work. So my question is, does nvmedia IJPE support RGBA as input? How should I make this work?
Any help is appreciated. Thanks