FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
fastmemcpy.h File Reference
#include <inttypes.h>
#include <string.h>
#include <stddef.h>

Go to the source code of this file.

Macros

#define mem2agpcpy(a, b, c)   memcpy(a,b,c)
 
#define fast_memcpy(a, b, c)   memcpy(a,b,c)
 
#define memcpy_pic(d, s, b, h, ds, ss)   memcpy_pic2(d, s, b, h, ds, ss, 0)
 
#define my_memcpy_pic(d, s, b, h, ds, ss)   memcpy_pic2(d, s, b, h, ds, ss, 1)
 

Functions

voidfast_memcpy (void *to, const void *from, size_t len)
 
voidmem2agpcpy (void *to, const void *from, size_t len)
 
static voidmem2agpcpy_pic (void *dst, const void *src, int bytesPerLine, int height, int dstStride, int srcStride)
 
static voidmemcpy_pic2 (void *dst, const void *src, int bytesPerLine, int height, int dstStride, int srcStride, int limit2width)
 

Macro Definition Documentation

#define mem2agpcpy (   a,
  b,
  c 
)    memcpy(a,b,c)

Definition at line 30 of file fastmemcpy.h.

Referenced by mem2agpcpy_pic().

#define fast_memcpy (   a,
  b,
  c 
)    memcpy(a,b,c)

Definition at line 31 of file fastmemcpy.h.

Referenced by memcpy_pic2().

#define memcpy_pic (   d,
  s,
  b,
  h,
  ds,
  ss 
)    memcpy_pic2(d, s, b, h, ds, ss, 0)

Definition at line 62 of file fastmemcpy.h.

Referenced by ff_copy_mpi(), and ff_vf_next_draw_slice().

#define my_memcpy_pic (   d,
  s,
  b,
  h,
  ds,
  ss 
)    memcpy_pic2(d, s, b, h, ds, ss, 1)

Definition at line 63 of file fastmemcpy.h.

Function Documentation

void* fast_memcpy ( void to,
const void from,
size_t  len 
)
void* mem2agpcpy ( void to,
const void from,
size_t  len 
)
static void* mem2agpcpy_pic ( void dst,
const void src,
int  bytesPerLine,
int  height,
int  dstStride,
int  srcStride 
)
inlinestatic

Definition at line 34 of file fastmemcpy.h.

static void* memcpy_pic2 ( void dst,
const void src,
int  bytesPerLine,
int  height,
int  dstStride,
int  srcStride,
int  limit2width 
)
inlinestatic
Parameters
limit2widthalways skip data between end of line and start of next instead of copying the full block when strides are the same

Definition at line 69 of file fastmemcpy.h.