mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-11-01 08:10:54 +00:00
Move internal function ff_set_systematic_pal() to libavcore, and
rename it ff_set_systematic_pal2(). Originally committed as revision 25712 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a29039aef3
commit
ed5d30d91c
8 changed files with 85 additions and 44 deletions
|
|
@ -30,6 +30,7 @@
|
|||
#include "libavutil/crc.h"
|
||||
#include "libavutil/pixdesc.h"
|
||||
#include "libavcore/imgutils.h"
|
||||
#include "libavcore/internal.h"
|
||||
#include "libavcore/samplefmt.h"
|
||||
#include "avcodec.h"
|
||||
#include "dsputil.h"
|
||||
|
|
@ -323,7 +324,7 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
|
|||
buf->data[i] = buf->base[i] + FFALIGN((buf->linesize[i]*EDGE_WIDTH>>v_shift) + (EDGE_WIDTH>>h_shift), stride_align[i]);
|
||||
}
|
||||
if(size[1] && !size[2])
|
||||
ff_set_systematic_pal((uint32_t*)buf->data[1], s->pix_fmt);
|
||||
ff_set_systematic_pal2((uint32_t*)buf->data[1], s->pix_fmt);
|
||||
buf->width = s->width;
|
||||
buf->height = s->height;
|
||||
buf->pix_fmt= s->pix_fmt;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue