/* This is not a full code, just an example */ #include "video/VPXEncoder.h" VPXEncoder encoder; char *pixels; int main() { /* do blablabla */ encoder.in_width = 1280; // Input Image Width encoder.in_height = 720; // Input Image Height encoder.out_width = 1280; // Output Image Width encoder.out_height = 720; // Output Image Height encoder.open("teste.vpx"); // Open the output file for writting, in this example teste.vpx will be the file /* do your stuff */ while(bla) { // Do Stuff and put the pixels you want on char array pixels. The pixels array must be width * height * 3 (RGB Pixel data) // If you need to Flip Vertically (for example with an OpenGL Pixel array) use this encoder.encode(pixels, true); // If not, use this encoder.encode(pixels); } // Lets close the file and finish the vpx: encoder.close() return 0; }