fix mpeg decode for ycbcr

main
Dominik Madarász 2024-03-21 12:10:28 +01:00
parent b69eaee2ee
commit 418a5ad527
3 changed files with 9 additions and 9 deletions

View File

@ -379043,9 +379043,9 @@ static void mpeg_video_callback( plm_t* plm, plm_frame_t* frame, void* user ) {
if(v->paused) return;
if(v->has_ycbcr) {
mpeg_update_texture(GL_TEXTURE4, v->textureY.id, &frame->y);
mpeg_update_texture(GL_TEXTURE5, v->textureCb.id, &frame->cb);
mpeg_update_texture(GL_TEXTURE6, v->textureCr.id, &frame->cr);
mpeg_update_texture(GL_TEXTURE0, v->textureY.id, &frame->y);
mpeg_update_texture(GL_TEXTURE1, v->textureCb.id, &frame->cb);
mpeg_update_texture(GL_TEXTURE2, v->textureCr.id, &frame->cr);
} else {
plm_frame_to_rgb( frame, v->surface, v->texture.w * 3 );
texture_update( &v->texture, v->texture.w, v->texture.h, v->texture.n, v->surface, v->texture.flags );

View File

@ -35,9 +35,9 @@ static void mpeg_video_callback( plm_t* plm, plm_frame_t* frame, void* user ) {
if(v->paused) return;
if(v->has_ycbcr) {
mpeg_update_texture(GL_TEXTURE4, v->textureY.id, &frame->y);
mpeg_update_texture(GL_TEXTURE5, v->textureCb.id, &frame->cb);
mpeg_update_texture(GL_TEXTURE6, v->textureCr.id, &frame->cr);
mpeg_update_texture(GL_TEXTURE0, v->textureY.id, &frame->y);
mpeg_update_texture(GL_TEXTURE1, v->textureCb.id, &frame->cb);
mpeg_update_texture(GL_TEXTURE2, v->textureCr.id, &frame->cr);
} else {
plm_frame_to_rgb( frame, v->surface, v->texture.w * 3 );
texture_update( &v->texture, v->texture.w, v->texture.h, v->texture.n, v->surface, v->texture.flags );

View File

@ -26189,9 +26189,9 @@ static void mpeg_video_callback( plm_t* plm, plm_frame_t* frame, void* user ) {
if(v->paused) return;
if(v->has_ycbcr) {
mpeg_update_texture(GL_TEXTURE4, v->textureY.id, &frame->y);
mpeg_update_texture(GL_TEXTURE5, v->textureCb.id, &frame->cb);
mpeg_update_texture(GL_TEXTURE6, v->textureCr.id, &frame->cr);
mpeg_update_texture(GL_TEXTURE0, v->textureY.id, &frame->y);
mpeg_update_texture(GL_TEXTURE1, v->textureCb.id, &frame->cb);
mpeg_update_texture(GL_TEXTURE2, v->textureCr.id, &frame->cr);
} else {
plm_frame_to_rgb( frame, v->surface, v->texture.w * 3 );
texture_update( &v->texture, v->texture.w, v->texture.h, v->texture.n, v->surface, v->texture.flags );