History

lavc/hevc*: move to hevc/ subdir

Anton Khirnov committed 2 years ago

Commit e4601cc1 parent ba56a3064 files · +154 −114Browse files

Showing the changes to libavcodec (55 of 64 files). Show all

Unified · Split

55 files
  1. libavcodec/Makefile +2 −10
  2. libavcodec/aarch64/hevcdsp_init_aarch64.c +1 −1
  3. libavcodec/arm/hevcdsp_arm.h +1 −1
  4. libavcodec/arm/hevcdsp_init_arm.c +1 −1
  5. libavcodec/arm/hevcdsp_init_neon.c +1 −1
  6. libavcodec/bsf/extract_extradata.c +2 −1
  7. libavcodec/bsf/h265_metadata.c +2 −1
  8. libavcodec/bsf/hevc_mp4toannexb.c +2 −1
  9. libavcodec/bsf/remove_extradata.c +2 −1
  10. libavcodec/cbs_h2645.c +1 −1
  11. libavcodec/cbs_h265.h +2 −1
  12. libavcodec/d3d12va_hevc.c +2 −2
  13. libavcodec/dxva2_hevc.c +2 −2
  14. libavcodec/h2645_parse.c +2 −1
  15. libavcodec/hevc/Makefile +36 −0
  16. libavcodec/hevc/cabac.c +1 −1
  17. libavcodec/hevc/data.c +1 −1
  18. libavcodec/hevc/data.h +0 −0
  19. libavcodec/hevc/dsp.c +5 −5
  20. libavcodec/hevc/dsp.h +4 −4
  21. libavcodec/hevc/dsp_template.c +1 −1
  22. libavcodec/hevc/filter.c +0 −0
  23. libavcodec/hevc/hevc.h +3 −3
  24. libavcodec/hevc/hevcdec.c +1 −1
  25. libavcodec/hevc/hevcdec.h +17 −16
  26. libavcodec/hevc/mvs.c +0 −0
  27. libavcodec/hevc/parse.c +1 −1
  28. libavcodec/hevc/parse.h +2 −2
  29. libavcodec/hevc/parser.c +3 −3
  30. libavcodec/hevc/pred.c +5 −5
  31. libavcodec/hevc/pred.h +3 −3
  32. libavcodec/hevc/pred_template.c +1 −1
  33. libavcodec/hevc/ps.c +2 −2
  34. libavcodec/hevc/ps.h +4 −3
  35. libavcodec/hevc/ps_enc.c +1 −1
  36. libavcodec/hevc/refs.c +0 −0
  37. libavcodec/hevc/sei.c +2 −2
  38. libavcodec/hevc/sei.h +4 −3
  39. libavcodec/loongarch/hevcdsp_lasx.h +1 −1
  40. libavcodec/loongarch/hevcdsp_lsx.h +1 −1
  41. libavcodec/mediacodecdec.c +1 −1
  42. libavcodec/mips/hevcdsp_mips.h +1 −1
  43. libavcodec/mips/hevcdsp_mmi.c +1 −1
  44. libavcodec/mips/hevcpred_mips.h +1 −1
  45. libavcodec/mips/hevcpred_msa.c +1 −1
  46. libavcodec/nvdec_hevc.c +2 −2
  47. libavcodec/nvenc.c +1 −1
  48. libavcodec/ppc/hevcdsp.c +1 −1
  49. libavcodec/qsvenc_hevc.c +3 −2
  50. libavcodec/vaapi_encode_h265.c +2 −1
  51. libavcodec/vaapi_hevc.c +2 −1
  52. libavcodec/vdpau_hevc.c +2 −2
  53. libavcodec/videotoolbox.c +1 −1
  54. libavcodec/vulkan_hevc.c +3 −3
  55. libavcodec/x86/hevcdsp_init.c +1 −1
libavcodec/Makefile+2−10
@@ -65,6 +65,7 @@ OBJS = ac3_parser.o \ · 64 unmodified lines
6565
6666 # subsystems
6767 include $(SRC_PATH)/libavcodec/aac/Makefile
68+include $(SRC_PATH)/libavcodec/hevc/Makefile
6869 include $(SRC_PATH)/libavcodec/vvc/Makefile
6970 -include $(SRC_PATH)/libavcodec/$(ARCH)/vvc/Makefile
7071 OBJS-$(CONFIG_AANDCTTABLES) += aandcttab.o
@@ -105,10 +106,6 @@ OBJS-$(CONFIG_H264PARSE) += h264_parse.o h264_ps.o h264data.o \ · 34 unmodified lines
105106 OBJS-$(CONFIG_H264PRED) += h264pred.o
106107 OBJS-$(CONFIG_H264QPEL) += h264qpel.o
107108 OBJS-$(CONFIG_H264_SEI) += h264_sei.o h2645_sei.o
108−OBJS-$(CONFIG_HEVCPARSE) += hevc_parse.o hevc_ps.o hevc_data.o \
109− h2645data.o h2645_parse.o h2645_vui.o
110−OBJS-$(CONFIG_HEVC_SEI) += hevc_sei.o h2645_sei.o \
111− dynamic_hdr_vivid.o aom_film_grain.o
112109 OBJS-$(CONFIG_HPELDSP) += hpeldsp.o
113110 OBJS-$(CONFIG_HUFFMAN) += huffman.o
114111 OBJS-$(CONFIG_HUFFYUVDSP) += huffyuvdsp.o
@@ -430,10 +427,6 @@ OBJS-$(CONFIG_HCA_DECODER) += hcadec.o · 315 unmodified lines
430427 OBJS-$(CONFIG_HCOM_DECODER) += hcom.o
431428 OBJS-$(CONFIG_HDR_DECODER) += hdrdec.o
432429 OBJS-$(CONFIG_HDR_ENCODER) += hdrenc.o
433−OBJS-$(CONFIG_HEVC_DECODER) += hevcdec.o hevc_mvs.o \
434− hevc_cabac.o hevc_refs.o hevcpred.o \
435− hevcdsp.o hevc_filter.o hevc_data.o \
436− h274.o aom_film_grain.o
437430 OBJS-$(CONFIG_HEVC_AMF_ENCODER) += amfenc_hevc.o
438431 OBJS-$(CONFIG_HEVC_CUVID_DECODER) += cuviddec.o
439432 OBJS-$(CONFIG_HEVC_MEDIACODEC_DECODER) += mediacodecdec.o
@@ -441,7 +434,7 @@ OBJS-$(CONFIG_HEVC_MEDIACODEC_ENCODER) += mediacodecenc.o · 1 unmodified line
441434 OBJS-$(CONFIG_HEVC_MF_ENCODER) += mfenc.o mf_utils.o
442435 OBJS-$(CONFIG_HEVC_NVENC_ENCODER) += nvenc_hevc.o nvenc.o
443436 OBJS-$(CONFIG_HEVC_QSV_DECODER) += qsvdec.o
444−OBJS-$(CONFIG_HEVC_QSV_ENCODER) += qsvenc_hevc.o hevc_ps_enc.o
437+OBJS-$(CONFIG_HEVC_QSV_ENCODER) += qsvenc_hevc.o hevc/ps_enc.o
445438 OBJS-$(CONFIG_HEVC_RKMPP_DECODER) += rkmppdec.o
446439 OBJS-$(CONFIG_HEVC_VAAPI_ENCODER) += vaapi_encode_h265.o h265_profile_level.o \
447440 h2645data.o
@@ -1199,7 +1192,6 @@ OBJS-$(CONFIG_GSM_PARSER) += gsm_parser.o · 751 unmodified lines
11991192 OBJS-$(CONFIG_H261_PARSER) += h261_parser.o
12001193 OBJS-$(CONFIG_H263_PARSER) += h263_parser.o
12011194 OBJS-$(CONFIG_H264_PARSER) += h264_parser.o h264data.o
1202−OBJS-$(CONFIG_HEVC_PARSER) += hevc_parser.o
12031195 OBJS-$(CONFIG_HDR_PARSER) += hdr_parser.o
12041196 OBJS-$(CONFIG_IPU_PARSER) += ipu_parser.o
12051197 OBJS-$(CONFIG_JPEG2000_PARSER) += jpeg2000_parser.o
libavcodec/aarch64/hevcdsp_init_aarch64.c+1−1
@@ -24,7 +24,7 @@ · 23 unmodified lines
2424 #include "libavutil/attributes.h"
2525 #include "libavutil/cpu.h"
2626 #include "libavutil/aarch64/cpu.h"
27−#include "libavcodec/hevcdsp.h"
27+#include "libavcodec/hevc/dsp.h"
2828
2929 void ff_hevc_v_loop_filter_chroma_8_neon(uint8_t *_pix, ptrdiff_t _stride,
3030 const int *_tc, const uint8_t *_no_p, const uint8_t *_no_q);
libavcodec/arm/hevcdsp_arm.h+1−1
@@ -19,7 +19,7 @@ · 18 unmodified lines
1919 #ifndef AVCODEC_ARM_HEVCDSP_ARM_H
2020 #define AVCODEC_ARM_HEVCDSP_ARM_H
2121
22−#include "libavcodec/hevcdsp.h"
22+#include "libavcodec/hevc/dsp.h"
2323
2424 void ff_hevc_dsp_init_neon(HEVCDSPContext *c, const int bit_depth);
2525
libavcodec/arm/hevcdsp_init_arm.c+1−1
@@ -22,7 +22,7 @@ · 21 unmodified lines
2222 #include "libavutil/cpu.h"
2323 #include "libavutil/arm/cpu.h"
2424
25−#include "libavcodec/hevcdsp.h"
25+#include "libavcodec/hevc/dsp.h"
2626 #include "hevcdsp_arm.h"
2727
2828 av_cold void ff_hevc_dsp_init_arm(HEVCDSPContext *c, const int bit_depth)
libavcodec/arm/hevcdsp_init_neon.c+1−1
@@ -20,7 +20,7 @@ · 19 unmodified lines
2020
2121 #include "libavutil/attributes.h"
2222 #include "libavutil/arm/cpu.h"
23−#include "libavcodec/hevcdsp.h"
23+#include "libavcodec/hevc/dsp.h"
2424 #include "libavcodec/avcodec.h"
2525 #include "hevcdsp_arm.h"
2626
libavcodec/bsf/extract_extradata.c+2−1
@@ -29,11 +29,12 @@ · 28 unmodified lines
2929 #include "bytestream.h"
3030 #include "h2645_parse.h"
3131 #include "h264.h"
32−#include "hevc.h"
3332 #include "startcode.h"
3433 #include "vc1_common.h"
3534 #include "vvc.h"
3635
36+#include "hevc/hevc.h"
37+
3738 typedef struct ExtractExtradataContext {
3839 const AVClass *class;
3940
libavcodec/bsf/h265_metadata.c+2−1
@@ -25,9 +25,10 @@ · 24 unmodified lines
2525 #include "cbs_bsf.h"
2626 #include "cbs_h265.h"
2727 #include "h2645data.h"
28−#include "hevc.h"
2928 #include "h265_profile_level.h"
3029
30+#include "hevc/hevc.h"
31+
3132 enum {
3233 LEVEL_UNSET = -2,
3334 LEVEL_AUTO = -1,
libavcodec/bsf/hevc_mp4toannexb.c+2−1
@@ -28,7 +28,8 @@ · 27 unmodified lines
2828 #include "bsf_internal.h"
2929 #include "bytestream.h"
3030 #include "defs.h"
31−#include "hevc.h"
31+
32+#include "hevc/hevc.h"
3233
3334 #define MIN_HEVCC_LENGTH 23
3435
libavcodec/bsf/remove_extradata.c+2−1
@@ -25,10 +25,11 @@ · 24 unmodified lines
2525 #include "bsf.h"
2626 #include "bsf_internal.h"
2727 #include "h264.h"
28−#include "hevc.h"
2928 #include "startcode.h"
3029 #include "vc1_common.h"
3130
31+#include "hevc/hevc.h"
32+
3233 enum RemoveFreq {
3334 REMOVE_FREQ_KEYFRAME,
3435 REMOVE_FREQ_ALL,
libavcodec/cbs_h2645.c+1−1
@@ -28,10 +28,10 @@ · 27 unmodified lines
2828 #include "cbs_h266.h"
2929 #include "h264.h"
3030 #include "h2645_parse.h"
31−#include "hevc.h"
3231 #include "refstruct.h"
3332 #include "vvc.h"
3433
34+#include "hevc/hevc.h"
3535
3636 static int cbs_read_ue_golomb(CodedBitstreamContext *ctx, GetBitContext *gbc,
3737 const char *name, const int *subscripts,
libavcodec/cbs_h265.h+2−1
@@ -24,7 +24,8 @@ · 23 unmodified lines
2424
2525 #include "cbs_h2645.h"
2626 #include "cbs_sei.h"
27−#include "hevc.h"
27+
28+#include "hevc/hevc.h"
2829
2930 typedef struct H265RawNALUnitHeader {
3031 uint8_t nal_unit_type;
libavcodec/d3d12va_hevc.c+2−2
@@ -24,8 +24,8 @@ · 23 unmodified lines
2424
2525 #include "libavutil/avassert.h"
2626 #include "libavutil/hwcontext_d3d12va_internal.h"
27−#include "hevc_data.h"
28−#include "hevcdec.h"
27+#include "hevc/data.h"
28+#include "hevc/hevcdec.h"
2929 #include "dxva2_internal.h"
3030 #include "d3d12va_decode.h"
3131 #include <dxva.h>
libavcodec/dxva2_hevc.c+2−2
@@ -25,8 +25,8 @@ · 24 unmodified lines
2525 #include "libavutil/avassert.h"
2626
2727 #include "dxva2_internal.h"
28−#include "hevc_data.h"
29−#include "hevcdec.h"
28+#include "hevc/data.h"
29+#include "hevc/hevcdec.h"
3030 #include "hwaccel_internal.h"
3131
3232 #define MAX_SLICES 256
libavcodec/h2645_parse.c+2−1
@@ -27,11 +27,12 @@ · 26 unmodified lines
2727 #include "libavutil/mem.h"
2828
2929 #include "bytestream.h"
30−#include "hevc.h"
3130 #include "h264.h"
3231 #include "h2645_parse.h"
3332 #include "vvc.h"
3433
34+#include "hevc/hevc.h"
35+
3536 int ff_h2645_extract_rbsp(const uint8_t *src, int length,
3637 H2645RBSP *rbsp, H2645NAL *nal, int small_padding)
3738 {
libavcodec/hevc/Makefile+36−0
@@ -0,0 +1,36 @@
1+clean::
2+ $(RM) $(CLEANSUFFIXES:%=libavcodec/hevc/%)
3+
4+OBJS-$(CONFIG_HEVC_DECODER) += \
5+ aom_film_grain.o \
6+ h274.o \
7+ hevc/cabac.o \
8+ hevc/data.o \
9+ hevc/dsp.o \
10+ hevc/filter.o \
11+ hevc/hevcdec.o \
12+ hevc/mvs.o \
13+ hevc/pred.o \
14+ hevc/refs.o \
15+
16+OBJS-$(CONFIG_HEVC_PARSER) += \
17+ hevc/parser.o \
18+
19+
20+OBJS-$(CONFIG_HEVCPARSE) += \
21+ h2645data.o \
22+ h2645_parse.o \
23+ h2645_vui.o \
24+ hevc/data.o \
25+ hevc/parse.o \
26+ hevc/ps.o \
27+
28+
29+OBJS-$(CONFIG_HEVC_SEI) += \
30+ hevc/sei.o \
31+ h2645_sei.o \
32+ dynamic_hdr_vivid.o \
33+ aom_film_grain.o \
34+
35+
36+libavcodec/hevc/%.o: CPPFLAGS += -I$(SRC_PATH)/libavcodec/
libavcodec/hevc/cabac.crenamed from libavcodec/hevc_cabac.c+1−1
@@ -25,7 +25,7 @@ · 24 unmodified lines
2525 #include "libavutil/common.h"
2626
2727 #include "cabac_functions.h"
28−#include "hevc_data.h"
28+#include "data.h"
2929 #include "hevc.h"
3030 #include "hevcdec.h"
3131
libavcodec/hevc/data.crenamed from libavcodec/hevc_data.c+1−1
@@ -20,7 +20,7 @@ · 19 unmodified lines
2020
2121 #include <stdint.h>
2222
23−#include "hevc_data.h"
23+#include "data.h"
2424
2525 const uint8_t ff_hevc_diag_scan4x4_x[16] = {
2626 0, 0, 1, 0,
libavcodec/hevc/data.hrenamed from libavcodec/hevc_data.h+0−0

File renamed without changes.

libavcodec/hevc/dsp.crenamed from libavcodec/hevcdsp.c+5−5
@@ -22,7 +22,7 @@ · 21 unmodified lines
2222 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2323 */
2424
25−#include "hevcdsp.h"
25+#include "dsp.h"
2626
2727 static const int8_t transform[32][32] = {
2828 { 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
@@ -110,19 +110,19 @@ DECLARE_ALIGNED(16, const int8_t, ff_hevc_qpel_filters)[4][16] = { · 81 unmodified lines
110110 };
111111
112112 #define BIT_DEPTH 8
113−#include "hevcdsp_template.c"
113+#include "dsp_template.c"
114114 #undef BIT_DEPTH
115115
116116 #define BIT_DEPTH 9
117−#include "hevcdsp_template.c"
117+#include "dsp_template.c"
118118 #undef BIT_DEPTH
119119
120120 #define BIT_DEPTH 10
121−#include "hevcdsp_template.c"
121+#include "dsp_template.c"
122122 #undef BIT_DEPTH
123123
124124 #define BIT_DEPTH 12
125−#include "hevcdsp_template.c"
125+#include "dsp_template.c"
126126 #undef BIT_DEPTH
127127
128128 void ff_hevc_dsp_init(HEVCDSPContext *hevcdsp, int bit_depth)
libavcodec/hevc/dsp.hrenamed from libavcodec/hevcdsp.h+4−4
@@ -22,12 +22,12 @@ · 21 unmodified lines
2222 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2323 */
2424
25−#ifndef AVCODEC_HEVCDSP_H
26−#define AVCODEC_HEVCDSP_H
25+#ifndef AVCODEC_HEVC_DSP_H
26+#define AVCODEC_HEVC_DSP_H
2727
2828 #include "libavutil/mem_internal.h"
2929
30−#include "get_bits.h"
30+#include "libavcodec/get_bits.h"
3131
3232 #define MAX_PB_SIZE 64
3333
@@ -137,4 +137,4 @@ void ff_hevc_dsp_init_x86(HEVCDSPContext *c, const int bit_depth); · 103 unmodified lines
137137 void ff_hevc_dsp_init_mips(HEVCDSPContext *c, const int bit_depth);
138138 void ff_hevc_dsp_init_loongarch(HEVCDSPContext *c, const int bit_depth);
139139
140−#endif /* AVCODEC_HEVCDSP_H */
140+#endif /* AVCODEC_HEVC_DSP_H */
libavcodec/hevc/dsp_template.crenamed from libavcodec/hevcdsp_template.c+1−1
@@ -24,7 +24,7 @@ · 23 unmodified lines
2424 #include "hevcdec.h"
2525
2626 #include "bit_depth_template.c"
27−#include "hevcdsp.h"
27+#include "dsp.h"
2828 #include "h26x/h2656_sao_template.c"
2929 #include "h26x/h2656_inter_template.c"
3030
libavcodec/hevc/filter.crenamed from libavcodec/hevc_filter.c+0−0

File renamed without changes.

libavcodec/hevc/hevc.hrenamed from libavcodec/hevc.h+3−3
@@ -18,8 +18,8 @@ · 17 unmodified lines
1818 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1919 */
2020
21−#ifndef AVCODEC_HEVC_H
22−#define AVCODEC_HEVC_H
21+#ifndef AVCODEC_HEVC_HEVC_H
22+#define AVCODEC_HEVC_HEVC_H
2323
2424 /**
2525 * Table 7-1 – NAL unit type codes and NAL unit type classes in
@@ -160,4 +160,4 @@ enum { · 134 unmodified lines
160160 };
161161
162162
163−#endif /* AVCODEC_HEVC_H */
163+#endif /* AVCODEC_HEVC_HEVC_H */
libavcodec/hevc/hevcdec.crenamed from libavcodec/hevcdec.c+1−1
@@ -43,7 +43,7 @@ · 42 unmodified lines
4343 #include "decode.h"
4444 #include "golomb.h"
4545 #include "hevc.h"
46−#include "hevc_parse.h"
46+#include "parse.h"
4747 #include "hevcdec.h"
4848 #include "hwaccel_internal.h"
4949 #include "hwconfig.h"
libavcodec/hevc/hevcdec.hrenamed from libavcodec/hevcdec.h+17−16
@@ -20,28 +20,29 @@ · 19 unmodified lines
2020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2121 */
2222
23−#ifndef AVCODEC_HEVCDEC_H
24−#define AVCODEC_HEVCDEC_H
23+#ifndef AVCODEC_HEVC_HEVCDEC_H
24+#define AVCODEC_HEVC_HEVCDEC_H
2525
2626 #include <stdatomic.h>
2727
2828 #include "libavutil/buffer.h"
2929 #include "libavutil/mem_internal.h"
3030
31−#include "avcodec.h"
32−#include "bswapdsp.h"
33−#include "cabac.h"
34−#include "dovi_rpu.h"
35−#include "get_bits.h"
36−#include "hevcpred.h"
37−#include "h2645_parse.h"
31+#include "libavcodec/avcodec.h"
32+#include "libavcodec/bswapdsp.h"
33+#include "libavcodec/cabac.h"
34+#include "libavcodec/dovi_rpu.h"
35+#include "libavcodec/get_bits.h"
36+#include "libavcodec/h2645_parse.h"
37+#include "libavcodec/h274.h"
38+#include "libavcodec/progressframe.h"
39+#include "libavcodec/videodsp.h"
40+
41+#include "dsp.h"
3842 #include "hevc.h"
39−#include "hevc_ps.h"
40−#include "hevc_sei.h"
41−#include "hevcdsp.h"
42−#include "h274.h"
43−#include "progressframe.h"
44−#include "videodsp.h"
43+#include "pred.h"
44+#include "ps.h"
45+#include "sei.h"
4546
4647 #define SHIFT_CTB_WPP 2
4748
@@ -675,4 +676,4 @@ extern const uint8_t ff_hevc_qpel_extra_before[4]; · 627 unmodified lines
675676 extern const uint8_t ff_hevc_qpel_extra_after[4];
676677 extern const uint8_t ff_hevc_qpel_extra[4];
677678
678−#endif /* AVCODEC_HEVCDEC_H */
679+#endif /* AVCODEC_HEVC_HEVCDEC_H */
libavcodec/hevc/mvs.crenamed from libavcodec/hevc_mvs.c+0−0

File renamed without changes.

libavcodec/hevc/parse.crenamed from libavcodec/hevc_parse.c+1−1
@@ -19,7 +19,7 @@ · 18 unmodified lines
1919 #include "bytestream.h"
2020 #include "h2645_parse.h"
2121 #include "hevc.h"
22−#include "hevc_parse.h"
22+#include "parse.h"
2323
2424 static int hevc_decode_nal_units(const uint8_t *buf, int buf_size, HEVCParamSets *ps,
2525 HEVCSEI *sei, int is_nalff, int nal_length_size,
libavcodec/hevc/parse.hrenamed from libavcodec/hevc_parse.h+2−2
@@ -26,8 +26,8 @@ · 25 unmodified lines
2626
2727 #include <stdint.h>
2828
29−#include "hevc_ps.h"
30−#include "hevc_sei.h"
29+#include "ps.h"
30+#include "sei.h"
3131
3232 int ff_hevc_decode_extradata(const uint8_t *data, int size, HEVCParamSets *ps,
3333 HEVCSEI *sei, int *is_nalff, int *nal_length_size,
libavcodec/hevc/parser.crenamed from libavcodec/hevc_parser.c+3−3
@@ -25,9 +25,9 @@ · 24 unmodified lines
2525
2626 #include "golomb.h"
2727 #include "hevc.h"
28−#include "hevc_parse.h"
29−#include "hevc_ps.h"
30−#include "hevc_sei.h"
28+#include "parse.h"
29+#include "ps.h"
30+#include "sei.h"
3131 #include "h2645_parse.h"
3232 #include "parser.h"
3333
libavcodec/hevc/pred.crenamed from libavcodec/hevcpred.c+5−5
@@ -22,22 +22,22 @@ · 21 unmodified lines
2222
2323 #include "hevcdec.h"
2424
25−#include "hevcpred.h"
25+#include "pred.h"
2626
2727 #define BIT_DEPTH 8
28−#include "hevcpred_template.c"
28+#include "pred_template.c"
2929 #undef BIT_DEPTH
3030
3131 #define BIT_DEPTH 9
32−#include "hevcpred_template.c"
32+#include "pred_template.c"
3333 #undef BIT_DEPTH
3434
3535 #define BIT_DEPTH 10
36−#include "hevcpred_template.c"
36+#include "pred_template.c"
3737 #undef BIT_DEPTH
3838
3939 #define BIT_DEPTH 12
40−#include "hevcpred_template.c"
40+#include "pred_template.c"
4141 #undef BIT_DEPTH
4242
4343 void ff_hevc_pred_init(HEVCPredContext *hpc, int bit_depth)
libavcodec/hevc/pred.hrenamed from libavcodec/hevcpred.h+3−3
@@ -20,8 +20,8 @@ · 19 unmodified lines
2020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2121 */
2222
23−#ifndef AVCODEC_HEVCPRED_H
24−#define AVCODEC_HEVCPRED_H
23+#ifndef AVCODEC_HEVC_PRED_H
24+#define AVCODEC_HEVC_PRED_H
2525
2626 #include <stddef.h>
2727 #include <stdint.h>
@@ -43,4 +43,4 @@ typedef struct HEVCPredContext { · 15 unmodified lines
4343 void ff_hevc_pred_init(HEVCPredContext *hpc, int bit_depth);
4444 void ff_hevc_pred_init_mips(HEVCPredContext *hpc, int bit_depth);
4545
46−#endif /* AVCODEC_HEVCPRED_H */
46+#endif /* AVCODEC_HEVC_PRED_H */
libavcodec/hevc/pred_template.crenamed from libavcodec/hevcpred_template.c+1−1
@@ -23,7 +23,7 @@ · 22 unmodified lines
2323 #include "libavutil/pixdesc.h"
2424
2525 #include "bit_depth_template.c"
26−#include "hevcpred.h"
26+#include "pred.h"
2727
2828 #define POS(x, y) src[(x) + stride * (y)]
2929
libavcodec/hevc/ps.crenamed from libavcodec/hevc_ps.c+2−2
@@ -27,8 +27,8 @@ · 26 unmodified lines
2727 #include "libavutil/mem.h"
2828 #include "golomb.h"
2929 #include "h2645_vui.h"
30−#include "hevc_data.h"
31−#include "hevc_ps.h"
30+#include "data.h"
31+#include "ps.h"
3232 #include "refstruct.h"
3333
3434 static const uint8_t default_scaling_list_intra[] = {
libavcodec/hevc/ps.hrenamed from libavcodec/hevc_ps.h+4−3
@@ -26,9 +26,10 @@ · 25 unmodified lines
2626 #include "libavutil/pixfmt.h"
2727 #include "libavutil/rational.h"
2828
29−#include "avcodec.h"
30−#include "get_bits.h"
31−#include "h2645_vui.h"
29+#include "libavcodec/avcodec.h"
30+#include "libavcodec/get_bits.h"
31+#include "libavcodec/h2645_vui.h"
32+
3233 #include "hevc.h"
3334
3435 typedef struct HEVCSublayerHdrParams {
libavcodec/hevc/ps_enc.crenamed from libavcodec/hevc_ps_enc.c+1−1
@@ -19,7 +19,7 @@ · 18 unmodified lines
1919 */
2020
2121 #include "put_golomb.h"
22−#include "hevc_ps.h"
22+#include "ps.h"
2323 #include "put_bits.h"
2424
2525 static void write_ptl_layer(PutBitContext *pb, PTLCommon *ptl)
libavcodec/hevc/refs.crenamed from libavcodec/hevc_refs.c+0−0

File renamed without changes.

libavcodec/hevc/sei.crenamed from libavcodec/hevc_sei.c+2−2
@@ -24,8 +24,8 @@ · 23 unmodified lines
2424
2525 #include "bytestream.h"
2626 #include "golomb.h"
27−#include "hevc_ps.h"
28−#include "hevc_sei.h"
27+#include "ps.h"
28+#include "sei.h"
2929
3030 static int decode_nal_sei_decoded_picture_hash(HEVCSEIPictureHash *s,
3131 GetByteContext *gb)
libavcodec/hevc/sei.hrenamed from libavcodec/hevc_sei.h+4−3
@@ -25,10 +25,11 @@ · 24 unmodified lines
2525
2626 #include "libavutil/buffer.h"
2727
28−#include "get_bits.h"
28+#include "libavcodec/get_bits.h"
29+#include "libavcodec/h2645_sei.h"
30+#include "libavcodec/sei.h"
31+
2932 #include "hevc.h"
30−#include "h2645_sei.h"
31−#include "sei.h"
3233
3334
3435 typedef enum {
libavcodec/loongarch/hevcdsp_lasx.h+1−1
@@ -22,7 +22,7 @@ · 21 unmodified lines
2222 #ifndef AVCODEC_LOONGARCH_HEVCDSP_LASX_H
2323 #define AVCODEC_LOONGARCH_HEVCDSP_LASX_H
2424
25−#include "libavcodec/hevcdsp.h"
25+#include "libavcodec/hevc/dsp.h"
2626
2727 #define PEL_UNI_W(PEL, DIR, WIDTH) \
2828 void ff_hevc_put_hevc_##PEL##_uni_w_##DIR##WIDTH##_8_lasx(uint8_t *dst, \
libavcodec/loongarch/hevcdsp_lsx.h+1−1
@@ -23,7 +23,7 @@ · 22 unmodified lines
2323 #ifndef AVCODEC_LOONGARCH_HEVCDSP_LSX_H
2424 #define AVCODEC_LOONGARCH_HEVCDSP_LSX_H
2525
26−#include "libavcodec/hevcdsp.h"
26+#include "libavcodec/hevc/dsp.h"
2727
2828 #define MC(PEL, DIR, WIDTH) \
2929 void ff_hevc_put_hevc_##PEL##_##DIR##WIDTH##_8_lsx(int16_t *dst, \
libavcodec/mediacodecdec.c+1−1
@@ -38,7 +38,7 @@ · 37 unmodified lines
3838 #include "decode.h"
3939 #include "h264_parse.h"
4040 #include "h264_ps.h"
41−#include "hevc_parse.h"
41+#include "hevc/parse.h"
4242 #include "hwconfig.h"
4343 #include "internal.h"
4444 #include "jni.h"
libavcodec/mips/hevcdsp_mips.h+1−1
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121 #ifndef AVCODEC_MIPS_HEVCDSP_MIPS_H
2222 #define AVCODEC_MIPS_HEVCDSP_MIPS_H
2323
24−#include "libavcodec/hevcdsp.h"
24+#include "libavcodec/hevc/dsp.h"
2525
2626 #define MC(PEL, DIR, WIDTH) \
2727 void ff_hevc_put_hevc_##PEL##_##DIR##WIDTH##_8_msa(int16_t *dst, \
libavcodec/mips/hevcdsp_mmi.c+1−1
@@ -18,7 +18,7 @@ · 17 unmodified lines
1818 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1919 */
2020
21−#include "libavcodec/hevcdec.h"
21+#include "libavcodec/hevc/hevcdec.h"
2222 #include "libavcodec/bit_depth_template.c"
2323 #include "libavcodec/mips/hevcdsp_mips.h"
2424 #include "libavutil/mips/mmiutils.h"
libavcodec/mips/hevcpred_mips.h+1−1
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121 #ifndef AVCODEC_MIPS_HEVCPRED_MIPS_H
2222 #define AVCODEC_MIPS_HEVCPRED_MIPS_H
2323
24−#include "libavcodec/hevcpred.h"
24+#include "libavcodec/hevc/pred.h"
2525
2626 void ff_hevc_intra_pred_planar_0_msa(uint8_t *dst,
2727 const uint8_t *src_top,
libavcodec/mips/hevcpred_msa.c+1−1
@@ -18,7 +18,7 @@ · 17 unmodified lines
1818 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1919 */
2020
21−#include "libavcodec/hevcdec.h"
21+#include "libavcodec/hevc/dec.h"
2222 #include "libavutil/mips/generic_macros_msa.h"
2323 #include "hevcpred_mips.h"
2424
libavcodec/nvdec_hevc.c+2−2
@@ -28,8 +28,8 @@ · 27 unmodified lines
2828 #include "nvdec.h"
2929 #include "decode.h"
3030 #include "internal.h"
31−#include "hevcdec.h"
32−#include "hevc_data.h"
31+#include "hevc/hevcdec.h"
32+#include "hevc/data.h"
3333 #include "hwaccel_internal.h"
3434
3535 static void dpb_add(CUVIDHEVCPICPARAMS *pp, int idx, const HEVCFrame *src)
libavcodec/nvenc.c+1−1
@@ -23,7 +23,7 @@ · 22 unmodified lines
2323 #include "config_components.h"
2424
2525 #include "nvenc.h"
26−#include "hevc_sei.h"
26+#include "hevc/sei.h"
2727 #if CONFIG_AV1_NVENC_ENCODER
2828 #include "av1.h"
2929 #endif
libavcodec/ppc/hevcdsp.c+1−1
@@ -26,7 +26,7 @@ · 25 unmodified lines
2626 #include "libavutil/ppc/cpu.h"
2727 #include "libavutil/ppc/util_altivec.h"
2828
29−#include "libavcodec/hevcdsp.h"
29+#include "libavcodec/hevc/dsp.h"
3030
3131 #if HAVE_ALTIVEC
3232 static const vec_s16 trans4[4] = {
libavcodec/qsvenc_hevc.c+3−2
@@ -33,12 +33,13 @@ · 32 unmodified lines
3333 #include "bytestream.h"
3434 #include "codec_internal.h"
3535 #include "get_bits.h"
36−#include "hevc.h"
37−#include "hevcdec.h"
3836 #include "h2645_parse.h"
3937 #include "qsv.h"
4038 #include "qsvenc.h"
4139
40+#include "hevc/hevc.h"
41+#include "hevc/ps.h"
42+
4243 enum LoadPlugin {
4344 LOAD_PLUGIN_NONE,
4445 LOAD_PLUGIN_HEVC_SW,
libavcodec/vaapi_encode_h265.c+2−1
@@ -35,9 +35,10 @@ · 34 unmodified lines
3535 #include "codec_internal.h"
3636 #include "h2645data.h"
3737 #include "h265_profile_level.h"
38−#include "hevc.h"
3938 #include "vaapi_encode.h"
4039
40+#include "hevc/hevc.h"
41+
4142 enum {
4243 SEI_MASTERING_DISPLAY = 0x08,
4344 SEI_CONTENT_LIGHT_LEVEL = 0x10,
libavcodec/vaapi_hevc.c+2−1
@@ -24,12 +24,13 @@ · 23 unmodified lines
2424 #include <va/va_dec_hevc.h>
2525
2626 #include "avcodec.h"
27−#include "hevcdec.h"
2827 #include "hwaccel_internal.h"
2928 #include "vaapi_decode.h"
3029 #include "vaapi_hevc.h"
3130 #include "h265_profile_level.h"
3231
32+#include "hevc/hevcdec.h"
33+
3334 typedef struct VAAPIDecodePictureHEVC {
3435 #if VA_CHECK_VERSION(1, 2, 0)
3536 VAPictureParameterBufferHEVCExtension pic_param;
libavcodec/vdpau_hevc.c+2−2
@@ -23,8 +23,8 @@ · 22 unmodified lines
2323 #include <vdpau/vdpau.h>
2424
2525 #include "avcodec.h"
26−#include "hevc_data.h"
27−#include "hevcdec.h"
26+#include "hevc/data.h"
27+#include "hevc/hevcdec.h"
2828 #include "hwaccel_internal.h"
2929 #include "vdpau.h"
3030 #include "vdpau_internal.h"
libavcodec/videotoolbox.c+1−1
@@ -33,7 +33,7 @@ · 32 unmodified lines
3333 #include "decode.h"
3434 #include "internal.h"
3535 #include "h264dec.h"
36−#include "hevcdec.h"
36+#include "hevc/hevcdec.h"
3737 #include "hwaccel_internal.h"
3838 #include "mpegvideo.h"
3939 #include "proresdec.h"
libavcodec/vulkan_hevc.c+3−3
@@ -17,9 +17,9 @@ · 16 unmodified lines
1717 */
1818
1919 #include "libavutil/mem.h"
20−#include "hevcdec.h"
21−#include "hevc_data.h"
22−#include "hevc_ps.h"
20+#include "hevc/hevcdec.h"
21+#include "hevc/data.h"
22+#include "hevc/ps.h"
2323
2424 #include "vulkan_decode.h"
2525
libavcodec/x86/hevcdsp_init.c+1−1
@@ -26,7 +26,7 @@ · 25 unmodified lines
2626 #include "libavutil/mem_internal.h"
2727 #include "libavutil/x86/asm.h"
2828 #include "libavutil/x86/cpu.h"
29−#include "libavcodec/hevcdsp.h"
29+#include "libavcodec/hevc/dsp.h"
3030 #include "libavcodec/x86/hevcdsp.h"
3131 #include "libavcodec/x86/h26x/h2656dsp.h"
3232

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t