mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-11 03:32:39 +00:00
help some gcc version to optimize out those functions
Originally committed as revision 9785 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4611b64ec1
commit
73f51a4d3e
@ -2641,6 +2641,7 @@ static void put_mspel8_mc22_c(uint8_t *dst, uint8_t *src, int stride){
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void h263_v_loop_filter_c(uint8_t *src, int stride, int qscale){
|
static void h263_v_loop_filter_c(uint8_t *src, int stride, int qscale){
|
||||||
|
if(ENABLE_ANY_H263) {
|
||||||
int x;
|
int x;
|
||||||
const int strength= ff_h263_loop_filter_strength[qscale];
|
const int strength= ff_h263_loop_filter_strength[qscale];
|
||||||
|
|
||||||
@ -2674,8 +2675,10 @@ static void h263_v_loop_filter_c(uint8_t *src, int stride, int qscale){
|
|||||||
src[x+ stride] = p3 + d2;
|
src[x+ stride] = p3 + d2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void h263_h_loop_filter_c(uint8_t *src, int stride, int qscale){
|
static void h263_h_loop_filter_c(uint8_t *src, int stride, int qscale){
|
||||||
|
if(ENABLE_ANY_H263) {
|
||||||
int y;
|
int y;
|
||||||
const int strength= ff_h263_loop_filter_strength[qscale];
|
const int strength= ff_h263_loop_filter_strength[qscale];
|
||||||
|
|
||||||
@ -2709,6 +2712,7 @@ static void h263_h_loop_filter_c(uint8_t *src, int stride, int qscale){
|
|||||||
src[y*stride+1] = p3 + d2;
|
src[y*stride+1] = p3 + d2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void h261_loop_filter_c(uint8_t *src, int stride){
|
static void h261_loop_filter_c(uint8_t *src, int stride){
|
||||||
int x,y,xy,yz;
|
int x,y,xy,yz;
|
||||||
|
@ -622,6 +622,7 @@ static void add_bytes_mmx(uint8_t *dst, uint8_t *src, int w){
|
|||||||
"paddb %%mm1, %%mm6 \n\t"
|
"paddb %%mm1, %%mm6 \n\t"
|
||||||
|
|
||||||
static void h263_v_loop_filter_mmx(uint8_t *src, int stride, int qscale){
|
static void h263_v_loop_filter_mmx(uint8_t *src, int stride, int qscale){
|
||||||
|
if(ENABLE_ANY_H263) {
|
||||||
const int strength= ff_h263_loop_filter_strength[qscale];
|
const int strength= ff_h263_loop_filter_strength[qscale];
|
||||||
|
|
||||||
asm volatile(
|
asm volatile(
|
||||||
@ -639,6 +640,7 @@ static void h263_v_loop_filter_mmx(uint8_t *src, int stride, int qscale){
|
|||||||
: "g" (2*strength), "m"(ff_pb_FC)
|
: "g" (2*strength), "m"(ff_pb_FC)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static inline void transpose4x4(uint8_t *dst, uint8_t *src, int dst_stride, int src_stride){
|
static inline void transpose4x4(uint8_t *dst, uint8_t *src, int dst_stride, int src_stride){
|
||||||
asm volatile( //FIXME could save 1 instruction if done as 8x4 ...
|
asm volatile( //FIXME could save 1 instruction if done as 8x4 ...
|
||||||
@ -670,6 +672,7 @@ static inline void transpose4x4(uint8_t *dst, uint8_t *src, int dst_stride, int
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void h263_h_loop_filter_mmx(uint8_t *src, int stride, int qscale){
|
static void h263_h_loop_filter_mmx(uint8_t *src, int stride, int qscale){
|
||||||
|
if(ENABLE_ANY_H263) {
|
||||||
const int strength= ff_h263_loop_filter_strength[qscale];
|
const int strength= ff_h263_loop_filter_strength[qscale];
|
||||||
uint64_t temp[4] __attribute__ ((aligned(8)));
|
uint64_t temp[4] __attribute__ ((aligned(8)));
|
||||||
uint8_t *btemp= (uint8_t*)temp;
|
uint8_t *btemp= (uint8_t*)temp;
|
||||||
@ -719,6 +722,7 @@ static void h263_h_loop_filter_mmx(uint8_t *src, int stride, int qscale){
|
|||||||
"r" ((long)(3*stride))
|
"r" ((long)(3*stride))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_ENCODERS
|
#ifdef CONFIG_ENCODERS
|
||||||
static int pix_norm1_mmx(uint8_t *pix, int line_size) {
|
static int pix_norm1_mmx(uint8_t *pix, int line_size) {
|
||||||
|
Loading…
Reference in New Issue
Block a user