Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ EGLImage egl_create_image_from_va(VASurfaceID* _va_surface, VADisplay va_display
va_surface_attrib.type = VASurfaceAttribPixelFormat;
va_surface_attrib.flags = VA_SURFACE_ATTRIB_SETTABLE;
va_surface_attrib.value.type = VAGenericValueTypeInteger;
va_surface_attrib.value.value.i = VA_FOURCC_RGBA;
va_surface_attrib.value.value.i = VA_FOURCC_BGRA;

r = vaCreateSurfaces( va_display, VA_RT_FORMAT_RGB32, width, height, &va_surface, 1, &va_surface_attrib, 1 );
if( r != VA_STATUS_SUCCESS )
Expand Down
2 changes: 1 addition & 1 deletion src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

typedef void *GLeglImageOES;
typedef void (*PFNGLEGLIMAGETARGETTEXTURE2DOESPROC)(GLenum target, GLeglImageOES image);
PFNGLEGLIMAGETARGETTEXTURE2DOESPROC glEGLImageTargetTexture2DOES;
extern PFNGLEGLIMAGETARGETTEXTURE2DOESPROC glEGLImageTargetTexture2DOES;

int texture2d_to_jpeg( GLuint tex, int level, const char* filename );
int texture_2d_load_from_file( GLuint* tex, const char* filename );
Expand Down