~ubuntu-branches/ubuntu/lucid/schroedinger/lucid

« back to all changes in this revision

Viewing changes to schroedinger/schroparams.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2008-03-16 18:26:29 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080316182629-6ofrq5h72ddrl1oo
Tags: 1.0.1-2
* debian/patches/01_no-x86-opcodes.patch:
  + Don't use x86 opcodes, these obviously don't work on non-x86 archs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
#include <liboil/liboil.h>
7
7
 
8
8
 
9
 
const int16_t schro_zero[SCHRO_LIMIT_WIDTH];
10
 
 
11
9
void
12
10
schro_params_init (SchroParams *params, int video_format)
13
11
{
155
153
 * the new values.
156
154
 *
157
155
 * The structure fields changed are: x_num_blocks, y_num_blocks,
158
 
 * mc_luma_width, mc_luma_height, mc_chroma_width, mc_chroma_height.
 
156
 * mc_luma_width, mc_luma_height, mc_chroma_width, mc_chroma_height,
 
157
 * x_offset, y_offset.
159
158
 */
160
159
void
161
160
schro_params_calculate_mc_sizes (SchroParams *params)
180
179
  SCHRO_DEBUG("mc_luma %dx%d, mc_chroma %dx%d",
181
180
      params->mc_luma_width, params->mc_luma_height,
182
181
      params->mc_chroma_width, params->mc_chroma_height);
 
182
 
 
183
  params->x_offset = (params->xblen_luma - params->xbsep_luma)/2;
 
184
  params->y_offset = (params->yblen_luma - params->ybsep_luma)/2;
183
185
}
184
186
 
185
187
typedef struct _SchroBlockParams SchroBlockParams;