FFmpeg
libavcodec
prores_raw.h
Go to the documentation of this file.
1
/*
2
* ProRes RAW decoder
3
* Copyright (c) 2025 Lynne
4
*
5
* This file is part of FFmpeg.
6
*
7
* FFmpeg is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the License, or (at your option) any later version.
11
*
12
* FFmpeg is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
16
*
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with FFmpeg; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
*/
21
22
#ifndef AVCODEC_PRORES_RAW_H
23
#define AVCODEC_PRORES_RAW_H
24
25
#include "
libavutil/frame.h
"
26
#include "
libavutil/mem_internal.h
"
27
#include "
libavutil/pixfmt.h
"
28
29
#include "
bytestream.h
"
30
#include "
blockdsp.h
"
31
#include "
proresdsp.h
"
32
33
typedef
struct
TileContext
{
34
GetByteContext
gb
;
35
unsigned
x
,
y
;
36
}
TileContext
;
37
38
typedef
struct
ProResRAWContext
{
39
ProresDSPContext
prodsp
;
40
BlockDSPContext
bdsp
;
41
42
TileContext
*
tiles
;
43
unsigned
int
tiles_size
;
44
int
nb_tiles
;
45
int
tw
,
th
;
46
int
nb_tw
,
nb_th
;
47
48
enum
AVPixelFormat
pix_fmt
;
49
AVFrame
*
frame
;
50
void
*
hwaccel_picture_private
;
51
52
int
version
;
53
54
DECLARE_ALIGNED
(32, uint8_t,
scan
)[64];
55
DECLARE_ALIGNED
(32, uint8_t,
qmat
)[64];
56
}
ProResRAWContext
;
57
58
extern
const
uint8_t
ff_prores_raw_dc_cb
[13];
59
extern
const
int16_t
ff_prores_raw_ac_cb
[95];
60
extern
const
int16_t
ff_prores_raw_rn_cb
[28];
61
extern
const
int16_t
ff_prores_raw_ln_cb
[15];
62
63
#endif
/* AVCODEC_PRORES_RAW_H */
AVPixelFormat
AVPixelFormat
Pixel format.
Definition:
pixfmt.h:71
blockdsp.h
mem_internal.h
GetByteContext
Definition:
bytestream.h:33
AVFrame
This structure describes decoded (raw) audio or video data.
Definition:
frame.h:427
ProResRAWContext::prodsp
ProresDSPContext prodsp
Definition:
prores_raw.h:39
TileContext::y
unsigned y
Definition:
prores_raw.h:35
ProResRAWContext::tw
int tw
Definition:
prores_raw.h:45
ProResRAWContext::version
int version
Definition:
prores_raw.h:52
BlockDSPContext
Definition:
blockdsp.h:32
ProresDSPContext
Definition:
proresdsp.h:29
ProResRAWContext::nb_tiles
int nb_tiles
Definition:
prores_raw.h:44
ff_prores_raw_ac_cb
const int16_t ff_prores_raw_ac_cb[95]
Definition:
prores_raw.c:108
ProResRAWContext::tiles
TileContext * tiles
Definition:
prores_raw.h:42
ff_prores_raw_ln_cb
const int16_t ff_prores_raw_ln_cb[15]
Definition:
prores_raw.c:126
ff_prores_raw_rn_cb
const int16_t ff_prores_raw_rn_cb[28]
Definition:
prores_raw.c:120
ProResRAWContext
Definition:
prores_raw.h:38
ProResRAWContext::th
int th
Definition:
prores_raw.h:45
ProResRAWContext::scan
uint8_t scan[64]
Definition:
prores_raw.h:54
DECLARE_ALIGNED
#define DECLARE_ALIGNED(n, t, v)
Definition:
mem_internal.h:104
ProResRAWContext::nb_tw
int nb_tw
Definition:
prores_raw.h:46
frame.h
proresdsp.h
ProResRAWContext::pix_fmt
enum AVPixelFormat pix_fmt
Definition:
prores_raw.h:48
ProResRAWContext::frame
AVFrame * frame
Definition:
prores_raw.h:49
pixfmt.h
TileContext::gb
GetByteContext gb
Definition:
prores_raw.h:34
ProResRAWContext::bdsp
BlockDSPContext bdsp
Definition:
prores_raw.h:40
ProResRAWContext::nb_th
int nb_th
Definition:
prores_raw.h:46
TileContext::x
unsigned x
Definition:
prores_raw.h:35
bytestream.h
TileContext
Definition:
prores_raw.h:33
ProResRAWContext::hwaccel_picture_private
void * hwaccel_picture_private
Definition:
prores_raw.h:50
ff_prores_raw_dc_cb
const uint8_t ff_prores_raw_dc_cb[13]
Definition:
prores_raw.c:103
ProResRAWContext::tiles_size
unsigned int tiles_size
Definition:
prores_raw.h:43
ProResRAWContext::qmat
uint8_t qmat[64]
Definition:
prores_raw.h:55
Generated on Mon Sep 1 2025 19:22:28 for FFmpeg by
1.8.17