1
H.264/AVC / Regarding image raw data output of x264_encoder_encode()
« on: March 29, 2011, 11:04:00 PM »
/* x264_encoder_encode:
* encode one picture.
* *pi_nal is the number of NAL units outputted in pp_nal.
* returns negative on error, zero if no NAL units returned.
* the payloads of all output NALs are guaranteed to be sequential in memory. */
int x264_encoder_encode( x264_t *, x264_nal_t **pp_nal, int *pi_nal, x264_picture_t *pic_in, x264_picture_t *pic_out );
If I were to draw the frame after calling x264_encoder_encode above (using raw data from pic_out->img), what type of image do I get? I tried it, but what I got is some low quality picture.
I don't know if this has to do with the x264 params set incorrectly/badly or are the pictures just delta pictures?
For example, in a
1 2 3 4 5
IDR P P P P
sequence, picture 2 drawn using the above method, is it the actual complete output of the frame or is it just "predicted and not motion estimated-compensated picture"?
* encode one picture.
* *pi_nal is the number of NAL units outputted in pp_nal.
* returns negative on error, zero if no NAL units returned.
* the payloads of all output NALs are guaranteed to be sequential in memory. */
int x264_encoder_encode( x264_t *, x264_nal_t **pp_nal, int *pi_nal, x264_picture_t *pic_in, x264_picture_t *pic_out );
If I were to draw the frame after calling x264_encoder_encode above (using raw data from pic_out->img), what type of image do I get? I tried it, but what I got is some low quality picture.
I don't know if this has to do with the x264 params set incorrectly/badly or are the pictures just delta pictures?
For example, in a
1 2 3 4 5
IDR P P P P
sequence, picture 2 drawn using the above method, is it the actual complete output of the frame or is it just "predicted and not motion estimated-compensated picture"?