

Public Member Functions | |
| bool | OutputVideoFrame (uint8_t *frame, int size) |
| Output a video frame - the input is assumed to be RGB24 and output is YUV420P. | |
|
||||||||||||
|
Output a video frame - the input is assumed to be RGB24 and output is YUV420P.
Reimplemented from KinoMJPEGVideoPipe. Definition at line 668 of file kino_av_pipe.cc. References KinoMJPEGVideoPipe::frame, frame_RGB24_to_YUV420P(), KinoMJPEGVideoPipe::height, KinoMJPEGVideoPipe::output, sigpipe_clear(), sigpipe_get(), and KinoMJPEGVideoPipe::width. 00669 {
00670 sigpipe_clear();
00671 fprintf( output, "FRAME\n" );
00672 frame_RGB24_to_YUV420P( frame, pixels, width, height );
00673 fwrite( frame[ 0 ], width * height, 1, output );
00674 fwrite( frame[ 1 ], width * height / 4, 1, output );
00675 fwrite( frame[ 2 ], width * height / 4, 1, output );
00676 return sigpipe_get() == 0;
00677 }
|
1.4.2