74 |
|
|
75 |
#include <stdio.h> |
#include <stdio.h> |
76 |
#include <stdlib.h> |
#include <stdlib.h> |
77 |
|
#include <string.h> |
78 |
#include <math.h> // needed for log10 |
#include <math.h> // needed for log10 |
79 |
#include <sys/time.h> // only needed for gettimeofday |
#include <sys/time.h> // only needed for gettimeofday |
80 |
|
|
352 |
|
|
353 |
xframe.image = image; |
xframe.image = image; |
354 |
xframe.stride = XDIM; |
xframe.stride = XDIM; |
355 |
xframe.colorspace = XVID_CSP_YV12; // defined in <xvid.h> |
xframe.colorspace = XVID_CSP_I420; // defined in <xvid.h> |
356 |
|
|
357 |
xframe.intra = -1; // let the codec decide between I-frame (1) and P-frame (0) |
xframe.intra = -1; // let the codec decide between I-frame (1) and P-frame (0) |
358 |
|
|
425 |
xframe.length = 1234; // *m4v_size; |
xframe.length = 1234; // *m4v_size; |
426 |
xframe.image = out_buffer; |
xframe.image = out_buffer; |
427 |
xframe.stride = XDIM; |
xframe.stride = XDIM; |
428 |
xframe.colorspace = XVID_CSP_YV12; // XVID_CSP_USER is fastest (no memcopy involved) |
xframe.colorspace = XVID_CSP_I420; // XVID_CSP_USER is fastest (no memcopy involved) |
429 |
|
|
430 |
xerr = xvid_decore(dec_handle, XVID_DEC_DECODE, &xframe, NULL); |
xerr = xvid_decore(dec_handle, XVID_DEC_DECODE, &xframe, NULL); |
431 |
|
|