This example shows how to do HW-accelerated decoding with output frames from the HW video surfaces.
#include <stdio.h>
{
int err = 0;
NULL, NULL, 0)) < 0) {
fprintf(stderr, "Failed to create specified HW device.\n");
return err;
}
return err;
}
{
for (p = pix_fmts; *p != -1; p++) {
return *p;
}
fprintf(stderr, "Failed to get HW surface format.\n");
}
{
uint8_t *buffer = NULL;
int size;
int ret = 0;