1
0
mirror of https://github.com/jojo61/vdr-plugin-softhdcuvid.git synced 2023-10-10 13:37:41 +02:00

impoved still picture

This commit is contained in:
jojo61 2018-10-16 16:09:37 +02:00
parent 5f5facba9d
commit dd793f24e8
2 changed files with 9 additions and 7 deletions

View File

@ -2703,7 +2703,7 @@ void StillPicture(const uint8_t * data, int size)
#ifdef STILL_DEBUG #ifdef STILL_DEBUG
fprintf(stderr, "still-picture\n"); fprintf(stderr, "still-picture\n");
#endif #endif
for (i = 0; i < (MyVideoStream->CodecID == AV_CODEC_ID_HEVC ? 8 : 8); ++i) { for (i = 0; i < (MyVideoStream->CodecID == AV_CODEC_ID_HEVC ? 8 : 12); ++i) {
const uint8_t *split; const uint8_t *split;
int n; int n;

View File

@ -1872,9 +1872,12 @@ static void CuvidPrintFrames(const CuvidDecoder * decoder)
} }
int CuvidTestSurfaces() { int CuvidTestSurfaces() {
if (CuvidDecoders[0] != NULL) {
if (atomic_read(&CuvidDecoders[0]->SurfacesFilled) < VIDEO_SURFACES_MAX) if (atomic_read(&CuvidDecoders[0]->SurfacesFilled) < VIDEO_SURFACES_MAX)
return 1; return 1;
return 0; return 0;
} else
return 0;
} }
/// ///
@ -4842,7 +4845,7 @@ static void VideoCreateWindow(xcb_window_t parent, xcb_visualid_t visual,
XCB_WINDOW_CLASS_INPUT_OUTPUT, visual, XCB_WINDOW_CLASS_INPUT_OUTPUT, visual,
XCB_CW_BACK_PIXEL | XCB_CW_BORDER_PIXEL | XCB_CW_EVENT_MASK | XCB_CW_BACK_PIXEL | XCB_CW_BORDER_PIXEL | XCB_CW_EVENT_MASK |
XCB_CW_COLORMAP, values); XCB_CW_COLORMAP, values);
Debug(3,"Create Window at %d,%d\n",VideoWindowX,VideoWindowY);
// define only available with xcb-utils-0.3.8 // define only available with xcb-utils-0.3.8
#ifdef XCB_ICCCM_NUM_WM_SIZE_HINTS_ELEMENTS #ifdef XCB_ICCCM_NUM_WM_SIZE_HINTS_ELEMENTS
// FIXME: utf _NET_WM_NAME // FIXME: utf _NET_WM_NAME
@ -4939,8 +4942,7 @@ const char *VideoGetDriverName(void)
/// ///
int VideoSetGeometry(const char *geometry) int VideoSetGeometry(const char *geometry)
{ {
XParseGeometry(geometry, &VideoWindowX, &VideoWindowY, &VideoWindowWidth, XParseGeometry(geometry, &VideoWindowX, &VideoWindowY, &VideoWindowWidth, &VideoWindowHeight);
&VideoWindowHeight);
return 0; return 0;
} }