Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2016-01-27 18:19:38 +0300
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2016-01-27 19:36:46 +0300
commit21f946840260da150affd9a20cc35b3d56194ba6 (patch)
tree5ca004c2ff6cf737f6858a56ce17602c339d80e6 /libavcodec/mjpegdec.c
parent0aada30510d809bccfd539a90ea37b61188f2cb4 (diff)
avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPAT
Libav, for some reason, merged this as a public API function. This will aid in future merges. A define is left for backwards compat, just in case some person used it, since it is in a public header. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/mjpegdec.c')
-rw-r--r--libavcodec/mjpegdec.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index a51c580006..77a1ac2a59 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -1266,8 +1266,8 @@ static int mjpeg_decode_scan(MJpegDecodeContext *s, int nb_components, int Ah,
av_pix_fmt_get_chroma_sub_sample(s->avctx->pix_fmt, &chroma_h_shift,
&chroma_v_shift);
- chroma_width = FF_CEIL_RSHIFT(s->width, chroma_h_shift);
- chroma_height = FF_CEIL_RSHIFT(s->height, chroma_v_shift);
+ chroma_width = AV_CEIL_RSHIFT(s->width, chroma_h_shift);
+ chroma_height = AV_CEIL_RSHIFT(s->height, chroma_v_shift);
for (i = 0; i < nb_components; i++) {
int c = s->comp_index[i];
@@ -2241,8 +2241,8 @@ the_end:
if (!s->upscale_h[p])
continue;
if (p==1 || p==2) {
- w = FF_CEIL_RSHIFT(w, hshift);
- h = FF_CEIL_RSHIFT(h, vshift);
+ w = AV_CEIL_RSHIFT(w, hshift);
+ h = AV_CEIL_RSHIFT(h, vshift);
}
if (s->upscale_v[p])
h = (h+1)>>1;
@@ -2299,8 +2299,8 @@ the_end:
if (!s->upscale_v[p])
continue;
if (p==1 || p==2) {
- w = FF_CEIL_RSHIFT(w, hshift);
- h = FF_CEIL_RSHIFT(h, vshift);
+ w = AV_CEIL_RSHIFT(w, hshift);
+ h = AV_CEIL_RSHIFT(h, vshift);
}
dst = &((uint8_t *)s->picture_ptr->data[p])[(h - 1) * s->linesize[p]];
for (i = h - 1; i; i--) {
@@ -2324,8 +2324,8 @@ the_end:
int w = s->picture_ptr->width;
int h = s->picture_ptr->height;
if(index && index<3){
- w = FF_CEIL_RSHIFT(w, hshift);
- h = FF_CEIL_RSHIFT(h, vshift);
+ w = AV_CEIL_RSHIFT(w, hshift);
+ h = AV_CEIL_RSHIFT(h, vshift);
}
if(dst){
uint8_t *dst2 = dst + s->picture_ptr->linesize[index]*(h-1);