generic-pc: add Pig function to cVideo / GLFB

This commit is contained in:
Stefan Seyfried
2013-05-27 00:47:35 +02:00
parent 9593fe09cf
commit 05ac116312
3 changed files with 39 additions and 3 deletions

View File

@@ -78,6 +78,7 @@ cVideo::cVideo(int, void *, void *)
buf_num = 0;
buf_in = 0;
buf_out = 0;
pig_x = pig_y = pig_w = pig_h = 0;
display_aspect = DISPLAY_AR_16_9;
display_crop = DISPLAY_AR_MODE_LETTERBOX;
v_format = VIDEO_FORMAT_MPEG2;
@@ -325,8 +326,12 @@ int cVideo::getBlank(void)
return 0;
}
void cVideo::Pig(int, int, int, int, int, int)
void cVideo::Pig(int x, int y, int w, int h, int, int)
{
pig_x = x;
pig_y = y;
pig_w = w;
pig_h = h;
}
void cVideo::getPictureInfo(int &width, int &height, int &rate)