---
schroedinger/schrodecoder.c | 4 ++--
schroedinger/schrogpumotion.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/schroedinger/schrodecoder.c b/schroedinger/schrodecoder.c
index 1e0f861..5681731 100644
--- a/schroedinger/schrodecoder.c
+++ b/schroedinger/schrodecoder.c
@@ -1040,9 +1040,9 @@ schro_decoder_x_render_motion (SchroPicture *picture)
frame_format = schro_params_get_frame_format (16,
video_format->chroma_format);
frame_width = ROUND_UP_POW2(video_format->width,
- SCHRO_LIMIT_TRANSFORM_DEPTH + video_format->chroma_h_shift);
+ SCHRO_LIMIT_TRANSFORM_DEPTH +
SCHRO_CHROMA_FORMAT_H_SHIFT(video_format->chroma_format));
frame_height = ROUND_UP_POW2(video_format->height,
- SCHRO_LIMIT_TRANSFORM_DEPTH + video_format->chroma_v_shift);
+ SCHRO_LIMIT_TRANSFORM_DEPTH +
SCHRO_CHROMA_FORMAT_V_SHIFT(video_format->chroma_format));
picture->mc_tmp_frame = schro_frame_new_and_alloc
(picture->decoder->cuda_domain,
frame_format, frame_width, frame_height);
diff --git a/schroedinger/schrogpumotion.c b/schroedinger/schrogpumotion.c
index ca7767c..c81d7e0 100644
--- a/schroedinger/schrogpumotion.c
+++ b/schroedinger/schrogpumotion.c
@@ -174,8 +174,8 @@ schro_gpumotion_render (SchroGPUMotion * self,
SchroMotion * motion,
fwidth = motion->params->video_format->width;
fheight = motion->params->video_format->height;
- hshift = motion->params->video_format->chroma_h_shift;
- vshift = motion->params->video_format->chroma_v_shift;
+ hshift =
SCHRO_CHROMA_FORMAT_H_SHIFT(motion->params->video_format->chroma_format);
+ vshift =
SCHRO_CHROMA_FORMAT_V_SHIFT(motion->params->video_format->chroma_format);
SCHRO_ASSERT(schro_async_get_exec_domain () == SCHRO_EXEC_DOMAIN_CUDA);
--
1.5.4.3
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Schrodinger-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/schrodinger-devel