avcodec/rv10.h: Split header into decoder- and encoder-only parts

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2022-02-01 11:05:51 +01:00
parent 9856f6a443
commit 9fa4e0e555
7 changed files with 37 additions and 13 deletions

View File

@ -42,7 +42,7 @@
#include "mathops.h"
#include "mpegutils.h"
#include "unary.h"
#include "rv10.h"
#include "rv10dec.h"
#include "mpeg4video.h"
#include "mpegvideodata.h"
#include "mpeg4videodec.h"

View File

@ -70,7 +70,7 @@
#include "internal.h"
#include "bytestream.h"
#include "wmv2enc.h"
#include "rv10.h"
#include "rv10enc.h"
#include "packet_internal.h"
#include <limits.h>
#include "sp5x.h"

View File

@ -41,7 +41,7 @@
#include "mpegvideo.h"
#include "mpeg4video.h"
#include "mpegvideodata.h"
#include "rv10.h"
#include "rv10dec.h"
#define RV_GET_MAJOR_VER(x) ((x) >> 28)
#define RV_GET_MINOR_VER(x) (((x) >> 20) & 0xFF)

28
libavcodec/rv10dec.h Normal file
View File

@ -0,0 +1,28 @@
/*
* RV10/RV20 decoder
*
* 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_RV10DEC_H
#define AVCODEC_RV10DEC_H
#include "mpegvideo.h"
int ff_rv_decode_dc(MpegEncContext *s, int n);
#endif /* AVCODEC_RV10DEC_H */

View File

@ -27,7 +27,7 @@
#include "mpegvideo.h"
#include "put_bits.h"
#include "rv10.h"
#include "rv10enc.h"
int ff_rv10_encode_picture_header(MpegEncContext *s, int picture_number)
{

View File

@ -1,5 +1,5 @@
/*
* RV10/RV20 decoder
* RV10/RV20 encoder
*
* This file is part of FFmpeg.
*
@ -18,16 +18,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AVCODEC_RV10_H
#define AVCODEC_RV10_H
#include <stdint.h>
#ifndef AVCODEC_RV10ENC_H
#define AVCODEC_RV10ENC_H
#include "mpegvideo.h"
int ff_rv_decode_dc(MpegEncContext *s, int n);
int ff_rv10_encode_picture_header(MpegEncContext *s, int picture_number);
void ff_rv20_encode_picture_header(MpegEncContext *s, int picture_number);
#endif /* AVCODEC_RV10_H */
#endif /* AVCODEC_RV10ENC_H */

View File

@ -30,7 +30,7 @@
#include "h263data.h"
#include "h263enc.h"
#include "put_bits.h"
#include "rv10.h"
#include "rv10enc.h"
void ff_rv20_encode_picture_header(MpegEncContext *s, int picture_number){
put_bits(&s->pb, 2, s->pict_type); //I 0 vs. 1 ?