mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
cosmetics: Break some overly long lines.
patch by Keiji Costantini, lists strites net Originally committed as revision 12781 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4a24837e07
commit
08c9bfbaf8
@ -238,14 +238,16 @@ static inline int hpel_motion(MpegEncContext *s,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* apply one mpeg motion vector to the three components */
|
/* apply one mpeg motion vector to the three components */
|
||||||
static av_always_inline void mpeg_motion(MpegEncContext *s,
|
static av_always_inline
|
||||||
uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr,
|
void mpeg_motion(MpegEncContext *s,
|
||||||
int field_based, int bottom_field, int field_select,
|
uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr,
|
||||||
uint8_t **ref_picture, op_pixels_func (*pix_op)[4],
|
int field_based, int bottom_field, int field_select,
|
||||||
int motion_x, int motion_y, int h)
|
uint8_t **ref_picture, op_pixels_func (*pix_op)[4],
|
||||||
|
int motion_x, int motion_y, int h)
|
||||||
{
|
{
|
||||||
uint8_t *ptr_y, *ptr_cb, *ptr_cr;
|
uint8_t *ptr_y, *ptr_cb, *ptr_cr;
|
||||||
int dxy, uvdxy, mx, my, src_x, src_y, uvsrc_x, uvsrc_y, v_edge_pos, uvlinesize, linesize;
|
int dxy, uvdxy, mx, my, src_x, src_y,
|
||||||
|
uvsrc_x, uvsrc_y, v_edge_pos, uvlinesize, linesize;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
if(s->quarter_sample)
|
if(s->quarter_sample)
|
||||||
@ -312,18 +314,27 @@ if(s->quarter_sample)
|
|||||||
|| (unsigned)src_y > v_edge_pos - (motion_y&1) - h){
|
|| (unsigned)src_y > v_edge_pos - (motion_y&1) - h){
|
||||||
if(s->codec_id == CODEC_ID_MPEG2VIDEO ||
|
if(s->codec_id == CODEC_ID_MPEG2VIDEO ||
|
||||||
s->codec_id == CODEC_ID_MPEG1VIDEO){
|
s->codec_id == CODEC_ID_MPEG1VIDEO){
|
||||||
av_log(s->avctx,AV_LOG_DEBUG,"MPEG motion vector out of boundary\n");
|
av_log(s->avctx,AV_LOG_DEBUG,
|
||||||
|
"MPEG motion vector out of boundary\n");
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
ff_emulated_edge_mc(s->edge_emu_buffer, ptr_y, s->linesize, 17, 17+field_based,
|
ff_emulated_edge_mc(s->edge_emu_buffer, ptr_y, s->linesize,
|
||||||
src_x, src_y<<field_based, s->h_edge_pos, s->v_edge_pos);
|
17, 17+field_based,
|
||||||
|
src_x, src_y<<field_based,
|
||||||
|
s->h_edge_pos, s->v_edge_pos);
|
||||||
ptr_y = s->edge_emu_buffer;
|
ptr_y = s->edge_emu_buffer;
|
||||||
if(!ENABLE_GRAY || !(s->flags&CODEC_FLAG_GRAY)){
|
if(!ENABLE_GRAY || !(s->flags&CODEC_FLAG_GRAY)){
|
||||||
uint8_t *uvbuf= s->edge_emu_buffer+18*s->linesize;
|
uint8_t *uvbuf= s->edge_emu_buffer+18*s->linesize;
|
||||||
ff_emulated_edge_mc(uvbuf , ptr_cb, s->uvlinesize, 9, 9+field_based,
|
ff_emulated_edge_mc(uvbuf ,
|
||||||
uvsrc_x, uvsrc_y<<field_based, s->h_edge_pos>>1, s->v_edge_pos>>1);
|
ptr_cb, s->uvlinesize,
|
||||||
ff_emulated_edge_mc(uvbuf+16, ptr_cr, s->uvlinesize, 9, 9+field_based,
|
9, 9+field_based,
|
||||||
uvsrc_x, uvsrc_y<<field_based, s->h_edge_pos>>1, s->v_edge_pos>>1);
|
uvsrc_x, uvsrc_y<<field_based,
|
||||||
|
s->h_edge_pos>>1, s->v_edge_pos>>1);
|
||||||
|
ff_emulated_edge_mc(uvbuf+16,
|
||||||
|
ptr_cr, s->uvlinesize,
|
||||||
|
9, 9+field_based,
|
||||||
|
uvsrc_x, uvsrc_y<<field_based,
|
||||||
|
s->h_edge_pos>>1, s->v_edge_pos>>1);
|
||||||
ptr_cb= uvbuf;
|
ptr_cb= uvbuf;
|
||||||
ptr_cr= uvbuf+16;
|
ptr_cr= uvbuf+16;
|
||||||
}
|
}
|
||||||
@ -344,10 +355,13 @@ if(s->quarter_sample)
|
|||||||
pix_op[0][dxy](dest_y, ptr_y, linesize, h);
|
pix_op[0][dxy](dest_y, ptr_y, linesize, h);
|
||||||
|
|
||||||
if(!ENABLE_GRAY || !(s->flags&CODEC_FLAG_GRAY)){
|
if(!ENABLE_GRAY || !(s->flags&CODEC_FLAG_GRAY)){
|
||||||
pix_op[s->chroma_x_shift][uvdxy](dest_cb, ptr_cb, uvlinesize, h >> s->chroma_y_shift);
|
pix_op[s->chroma_x_shift][uvdxy]
|
||||||
pix_op[s->chroma_x_shift][uvdxy](dest_cr, ptr_cr, uvlinesize, h >> s->chroma_y_shift);
|
(dest_cb, ptr_cb, uvlinesize, h >> s->chroma_y_shift);
|
||||||
|
pix_op[s->chroma_x_shift][uvdxy]
|
||||||
|
(dest_cr, ptr_cr, uvlinesize, h >> s->chroma_y_shift);
|
||||||
}
|
}
|
||||||
if((ENABLE_H261_ENCODER || ENABLE_H261_DECODER) && s->out_format == FMT_H261){
|
if((ENABLE_H261_ENCODER || ENABLE_H261_DECODER) &&
|
||||||
|
s->out_format == FMT_H261){
|
||||||
ff_h261_loop_filter(s);
|
ff_h261_loop_filter(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user