2014-01-20 19:32:51 +00:00
|
|
|
/*
|
|
|
|
* Lossless video DSP utils
|
|
|
|
*
|
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef AVCODEC_LOSSLESS_VIDEODSP_H
|
|
|
|
#define AVCODEC_LOSSLESS_VIDEODSP_H
|
|
|
|
|
2017-03-22 21:27:53 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
|
2014-01-20 19:32:51 +00:00
|
|
|
typedef struct LLVidDSPContext {
|
2017-11-06 20:51:54 +00:00
|
|
|
void (*add_bytes)(uint8_t *dst /* align 32 */, uint8_t *src /* align 32 */,
|
2017-03-22 21:27:53 +00:00
|
|
|
ptrdiff_t w);
|
2017-01-07 22:04:39 +00:00
|
|
|
void (*add_median_pred)(uint8_t *dst, const uint8_t *top,
|
2017-03-22 21:27:53 +00:00
|
|
|
const uint8_t *diff, ptrdiff_t w,
|
2017-01-07 22:04:39 +00:00
|
|
|
int *left, int *left_top);
|
|
|
|
int (*add_left_pred)(uint8_t *dst, const uint8_t *src,
|
2017-03-22 21:27:53 +00:00
|
|
|
ptrdiff_t w, int left);
|
2017-01-07 22:04:39 +00:00
|
|
|
|
2017-01-08 14:56:03 +00:00
|
|
|
int (*add_left_pred_int16)(uint16_t *dst, const uint16_t *src,
|
2017-03-22 21:27:53 +00:00
|
|
|
unsigned mask, ptrdiff_t w, unsigned left);
|
2017-12-02 18:46:42 +00:00
|
|
|
void (*add_gradient_pred)(uint8_t *src /* align 32 */, const ptrdiff_t stride, const ptrdiff_t width);
|
2014-01-20 19:32:51 +00:00
|
|
|
} LLVidDSPContext;
|
|
|
|
|
2017-01-08 14:48:05 +00:00
|
|
|
void ff_llviddsp_init(LLVidDSPContext *llviddsp);
|
|
|
|
void ff_llviddsp_init_x86(LLVidDSPContext *llviddsp);
|
|
|
|
void ff_llviddsp_init_ppc(LLVidDSPContext *llviddsp);
|
2014-01-20 19:32:51 +00:00
|
|
|
|
|
|
|
#endif //AVCODEC_LOSSLESS_VIDEODSP_H
|