Function int NvJPEGEncoder::encodeFromFd is used to Encodes a JPEG image from a file descriptor (FD) of hardware buffer memory.
Now, in my program when encode quality is set to a certain value(such as 90),this function run failed, give message “Tegra Acceleration failed” and my program quit, but this case not appeared before(yesterday even the same encode quality is set such as 90, and the p[rogram run success). TX2 powered off and restarted, when quality set to 90,my proggram still failed.
Why this case appeared? what case undered would the function give the “Tegra Acceleration failed” message?
Thanks! Expected your reply!
Notice: In API Manua, Function NvJPEGEncoder::encodeFromFd is
int NvJPEGEncoder::encodeFromFd( int fd,
unsigned char ** out_buf,
unsigned long & out_buf_size
but in sample it applicationed as
ctx->jpegenc->encodeFromFd(buffer->planes.fd, JCS_YCbCr, &out_buf,out_buf_size, ctx->quality)
difference : in Manue 4 parameters,application 5 parameters
in Manue parameter 4 is a unsigned long point,application is a unsigned long value