#define MAX( a, b ) ( (a) > (b) ? (a) : (b) )
#endif
+#define HB_ALIGN(x, a) (((x)+(a)-1)&~((a)-1))
+
#ifndef HB_DEBUG_ASSERT
#define HB_DEBUG_ASSERT(x, y) { if ((x)) { hb_error("ASSERT: %s", y); exit(1); } }
#endif
#define HB_DVD_READ_BUFFER_SIZE 2048
-#define HBALIGN(x, a) (((x)+(a)-1)&~((a)-1))
-
typedef struct hb_handle_s hb_handle_t;
typedef struct hb_hwd_s hb_hwd_t;
typedef struct hb_list_s hb_list_t;
break;
}
- dxva2->surface_width = HBALIGN(fmt->geometry.width, surface_alignment);
- dxva2->surface_height = HBALIGN(fmt->geometry.height, surface_alignment);
+ dxva2->surface_width = HB_ALIGN(fmt->geometry.width, surface_alignment);
+ dxva2->surface_height = HB_ALIGN(fmt->geometry.height, surface_alignment);
LPDIRECT3DSURFACE9 surface_list[VA_DXVA2_MAX_SURFACE_COUNT];
if( FAILED( IDirectXVideoDecoderService_CreateSurface( dxva2->vs,