Showing
100 changed files
with
1620 additions
and
2 deletions
Too many changes to show.
To preserve performance only 100 of 100+ files are displayed.
| 1 | Pod::Spec.new do |s| | 1 | Pod::Spec.new do |s| |
| 2 | s.name = "HHVDoctorSDK" | 2 | s.name = "HHVDoctorSDK" |
| 3 | 3 | ||
| 4 | - s.version = "3.1.4.041314" | 4 | + s.version = "3.1.4.041315" |
| 5 | s.summary = "和缓视频医生 SDK" | 5 | s.summary = "和缓视频医生 SDK" |
| 6 | 6 | ||
| 7 | s.description = <<-DESC | 7 | s.description = <<-DESC |
| @@ -23,7 +23,7 @@ Pod::Spec.new do |s| | @@ -23,7 +23,7 @@ Pod::Spec.new do |s| | ||
| 23 | base.vendored_frameworks = 'HHVDoctorSDK/*.framework' | 23 | base.vendored_frameworks = 'HHVDoctorSDK/*.framework' |
| 24 | base.resources = 'HHVDoctorSDK/resources/*.bundle' | 24 | base.resources = 'HHVDoctorSDK/resources/*.bundle' |
| 25 | 25 | ||
| 26 | - base.frameworks = 'SystemConfiguration', 'MobileCoreServices', 'AVFoundation', 'CoreTelephony', 'VideoToolbox', 'AudioToolbox', 'CoreMedia' | 26 | + base.frameworks = ['AVFoundation', 'Accelerate', 'MetalKit', 'AudioToolbox', 'VideoToolbox', 'CoreTelephony', 'ReplayKit', 'SystemConfiguration'] |
| 27 | base.libraries = 'z', 'sqlite3.0', 'c++', 'resolv.9' | 27 | base.libraries = 'z', 'sqlite3.0', 'c++', 'resolv.9' |
| 28 | end | 28 | end |
| 29 | 29 |
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
HHVDoctorSDK/HHSDKVideo.framework/MedicStatus.storyboardc/LXC-Q0-bne-view-uRS-pr-z6i.nib/runtime.nib
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
HHVDoctorSDK/TXFFmpeg.xcframework/.DS_Store
0 → 100644
No preview for this file type
HHVDoctorSDK/TXFFmpeg.xcframework/Info.plist
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| 3 | +<plist version="1.0"> | ||
| 4 | +<dict> | ||
| 5 | + <key>AvailableLibraries</key> | ||
| 6 | + <array> | ||
| 7 | + <dict> | ||
| 8 | + <key>LibraryIdentifier</key> | ||
| 9 | + <string>ios-arm64_armv7</string> | ||
| 10 | + <key>LibraryPath</key> | ||
| 11 | + <string>TXFFmpeg.framework</string> | ||
| 12 | + <key>SupportedArchitectures</key> | ||
| 13 | + <array> | ||
| 14 | + <string>arm64</string> | ||
| 15 | + <string>armv7</string> | ||
| 16 | + </array> | ||
| 17 | + <key>SupportedPlatform</key> | ||
| 18 | + <string>ios</string> | ||
| 19 | + </dict> | ||
| 20 | + <dict> | ||
| 21 | + <key>LibraryIdentifier</key> | ||
| 22 | + <string>ios-x86_64-simulator</string> | ||
| 23 | + <key>LibraryPath</key> | ||
| 24 | + <string>TXFFmpeg.framework</string> | ||
| 25 | + <key>SupportedArchitectures</key> | ||
| 26 | + <array> | ||
| 27 | + <string>x86_64</string> | ||
| 28 | + </array> | ||
| 29 | + <key>SupportedPlatform</key> | ||
| 30 | + <string>ios</string> | ||
| 31 | + <key>SupportedPlatformVariant</key> | ||
| 32 | + <string>simulator</string> | ||
| 33 | + </dict> | ||
| 34 | + </array> | ||
| 35 | + <key>CFBundlePackageType</key> | ||
| 36 | + <string>XFWK</string> | ||
| 37 | + <key>XCFrameworkFormatVersion</key> | ||
| 38 | + <string>1.0</string> | ||
| 39 | +</dict> | ||
| 40 | +</plist> |
No preview for this file type
No preview for this file type
| 1 | +/* | ||
| 2 | + * Copyright (c) 2022 Tencent. All Rights Reserved. | ||
| 3 | + * | ||
| 4 | + */ | ||
| 5 | + | ||
| 6 | +#import <TXFFmpeg/ffmpeg_rename_defines.h> | ||
| 7 | +#import <TXFFmpeg/libavutil/adler32.h> | ||
| 8 | +#import <TXFFmpeg/libavutil/aes.h> | ||
| 9 | +#import <TXFFmpeg/libavutil/aes_ctr.h> | ||
| 10 | +#import <TXFFmpeg/libavutil/attributes.h> | ||
| 11 | +#import <TXFFmpeg/libavutil/audio_fifo.h> | ||
| 12 | +#import <TXFFmpeg/libavutil/avassert.h> | ||
| 13 | +#import <TXFFmpeg/libavutil/avstring.h> | ||
| 14 | +#import <TXFFmpeg/libavutil/avutil.h> | ||
| 15 | +#import <TXFFmpeg/libavutil/base64.h> | ||
| 16 | +#import <TXFFmpeg/libavutil/blowfish.h> | ||
| 17 | +#import <TXFFmpeg/libavutil/bprint.h> | ||
| 18 | +#import <TXFFmpeg/libavutil/bswap.h> | ||
| 19 | +#import <TXFFmpeg/libavutil/buffer.h> | ||
| 20 | +#import <TXFFmpeg/libavutil/cast5.h> | ||
| 21 | +#import <TXFFmpeg/libavutil/camellia.h> | ||
| 22 | +#import <TXFFmpeg/libavutil/channel_layout.h> | ||
| 23 | +#import <TXFFmpeg/libavutil/common.h> | ||
| 24 | +#import <TXFFmpeg/libavutil/cpu.h> | ||
| 25 | +#import <TXFFmpeg/libavutil/crc.h> | ||
| 26 | +#import <TXFFmpeg/libavutil/des.h> | ||
| 27 | +#import <TXFFmpeg/libavutil/dict.h> | ||
| 28 | +#import <TXFFmpeg/libavutil/display.h> | ||
| 29 | +#import <TXFFmpeg/libavutil/dovi_meta.h> | ||
| 30 | +#import <TXFFmpeg/libavutil/downmix_info.h> | ||
| 31 | +#import <TXFFmpeg/libavutil/encryption_info.h> | ||
| 32 | +#import <TXFFmpeg/libavutil/error.h> | ||
| 33 | +#import <TXFFmpeg/libavutil/eval.h> | ||
| 34 | +#import <TXFFmpeg/libavutil/fifo.h> | ||
| 35 | +#import <TXFFmpeg/libavutil/file.h> | ||
| 36 | +#import <TXFFmpeg/libavutil/frame.h> | ||
| 37 | +#import <TXFFmpeg/libavutil/hash.h> | ||
| 38 | +#import <TXFFmpeg/libavutil/hmac.h> | ||
| 39 | +#import <TXFFmpeg/libavutil/hwcontext.h> | ||
| 40 | +#import <TXFFmpeg/libavutil/hwcontext_cuda.h> | ||
| 41 | +#import <TXFFmpeg/libavutil/hwcontext_d3d11va.h> | ||
| 42 | +#import <TXFFmpeg/libavutil/hwcontext_drm.h> | ||
| 43 | +#import <TXFFmpeg/libavutil/hwcontext_dxva2.h> | ||
| 44 | +#import <TXFFmpeg/libavutil/hwcontext_qsv.h> | ||
| 45 | +#import <TXFFmpeg/libavutil/hwcontext_mediacodec.h> | ||
| 46 | +#import <TXFFmpeg/libavutil/hwcontext_vaapi.h> | ||
| 47 | +#import <TXFFmpeg/libavutil/hwcontext_videotoolbox.h> | ||
| 48 | +#import <TXFFmpeg/libavutil/hwcontext_vdpau.h> | ||
| 49 | +#import <TXFFmpeg/libavutil/imgutils.h> | ||
| 50 | +#import <TXFFmpeg/libavutil/intfloat.h> | ||
| 51 | +#import <TXFFmpeg/libavutil/intreadwrite.h> | ||
| 52 | +#import <TXFFmpeg/libavutil/lfg.h> | ||
| 53 | +#import <TXFFmpeg/libavutil/log.h> | ||
| 54 | +#import <TXFFmpeg/libavutil/macros.h> | ||
| 55 | +#import <TXFFmpeg/libavutil/mathematics.h> | ||
| 56 | +#import <TXFFmpeg/libavutil/mastering_display_metadata.h> | ||
| 57 | +#import <TXFFmpeg/libavutil/md5.h> | ||
| 58 | +#import <TXFFmpeg/libavutil/mem.h> | ||
| 59 | +#import <TXFFmpeg/libavutil/motion_vector.h> | ||
| 60 | +#import <TXFFmpeg/libavutil/murmur3.h> | ||
| 61 | +#import <TXFFmpeg/libavutil/opt.h> | ||
| 62 | +#import <TXFFmpeg/libavutil/parseutils.h> | ||
| 63 | +#import <TXFFmpeg/libavutil/pixdesc.h> | ||
| 64 | +#import <TXFFmpeg/libavutil/pixfmt.h> | ||
| 65 | +#import <TXFFmpeg/libavutil/random_seed.h> | ||
| 66 | +#import <TXFFmpeg/libavutil/rc4.h> | ||
| 67 | +#import <TXFFmpeg/libavutil/rational.h> | ||
| 68 | +#import <TXFFmpeg/libavutil/replaygain.h> | ||
| 69 | +#import <TXFFmpeg/libavutil/ripemd.h> | ||
| 70 | +#import <TXFFmpeg/libavutil/samplefmt.h> | ||
| 71 | +#import <TXFFmpeg/libavutil/sha.h> | ||
| 72 | +#import <TXFFmpeg/libavutil/sha512.h> | ||
| 73 | +#import <TXFFmpeg/libavutil/spherical.h> | ||
| 74 | +#import <TXFFmpeg/libavutil/stereo3d.h> | ||
| 75 | +#import <TXFFmpeg/libavutil/threadmessage.h> | ||
| 76 | +#import <TXFFmpeg/libavutil/time.h> | ||
| 77 | +#import <TXFFmpeg/libavutil/timecode.h> | ||
| 78 | +#import <TXFFmpeg/libavutil/timestamp.h> | ||
| 79 | +#import <TXFFmpeg/libavutil/tree.h> | ||
| 80 | +#import <TXFFmpeg/libavutil/twofish.h> | ||
| 81 | +#import <TXFFmpeg/libavutil/version.h> | ||
| 82 | +#import <TXFFmpeg/libavutil/xtea.h> | ||
| 83 | +#import <TXFFmpeg/libavutil/tea.h> | ||
| 84 | +#import <TXFFmpeg/libavutil/pthread_helper.h> | ||
| 85 | +#import <TXFFmpeg/libavutil/tx.h> | ||
| 86 | +#import <TXFFmpeg/libavutil/avconfig.h> | ||
| 87 | +#import <TXFFmpeg/libavutil/ffversion.h> | ||
| 88 | +#import <TXFFmpeg/libavutil/lzo.h> | ||
| 89 | +#import <TXFFmpeg/libavfilter/avfilter.h> | ||
| 90 | +#import <TXFFmpeg/libavfilter/version.h> | ||
| 91 | +#import <TXFFmpeg/libavfilter/buffersink.h> | ||
| 92 | +#import <TXFFmpeg/libavfilter/buffersrc.h> | ||
| 93 | +#import <TXFFmpeg/libswresample/swresample.h> | ||
| 94 | +#import <TXFFmpeg/libswresample/version.h> | ||
| 95 | +#import <TXFFmpeg/libswscale/swscale.h> | ||
| 96 | +#import <TXFFmpeg/libswscale/version.h> | ||
| 97 | +#import <TXFFmpeg/libavcodec/ac3_parser.h> | ||
| 98 | +#import <TXFFmpeg/libavcodec/adts_parser.h> | ||
| 99 | +#import <TXFFmpeg/libavcodec/avcodec.h> | ||
| 100 | +#import <TXFFmpeg/libavcodec/avdct.h> | ||
| 101 | +#import <TXFFmpeg/libavcodec/avfft.h> | ||
| 102 | +#import <TXFFmpeg/libavcodec/d3d11va.h> | ||
| 103 | +#import <TXFFmpeg/libavcodec/dirac.h> | ||
| 104 | +#import <TXFFmpeg/libavcodec/dv_profile.h> | ||
| 105 | +#import <TXFFmpeg/libavcodec/dxva2.h> | ||
| 106 | +#import <TXFFmpeg/libavcodec/jni.h> | ||
| 107 | +#import <TXFFmpeg/libavcodec/mediacodec.h> | ||
| 108 | +#import <TXFFmpeg/libavcodec/qsv.h> | ||
| 109 | +#import <TXFFmpeg/libavcodec/vaapi.h> | ||
| 110 | +#import <TXFFmpeg/libavcodec/vdpau.h> | ||
| 111 | +#import <TXFFmpeg/libavcodec/version.h> | ||
| 112 | +#import <TXFFmpeg/libavcodec/videotoolbox.h> | ||
| 113 | +#import <TXFFmpeg/libavcodec/vorbis_parser.h> | ||
| 114 | +#import <TXFFmpeg/libavcodec/xvmc.h> | ||
| 115 | +#import <TXFFmpeg/libavcodec/ass_split.h> | ||
| 116 | +#import <TXFFmpeg/libavcodec/bytestream.h> | ||
| 117 | +#import <TXFFmpeg/libavformat/avformat.h> | ||
| 118 | +#import <TXFFmpeg/libavformat/avio.h> | ||
| 119 | +#import <TXFFmpeg/libavformat/version.h> | ||
| 120 | +#import <TXFFmpeg/libavformat/internal.h> | ||
| 121 | +#import <TXFFmpeg/libavformat/os_support.h> | ||
| 122 | +#import <TXFFmpeg/libavformat/avc.h> | ||
| 123 | +#import <TXFFmpeg/libavformat/url.h> |
HHVDoctorSDK/TXFFmpeg.xcframework/ios-arm64_armv7/TXFFmpeg.framework/Headers/ffmpeg_rename_defines.h
0 → 100644
This diff could not be displayed because it is too large.
HHVDoctorSDK/TXFFmpeg.xcframework/ios-arm64_armv7/TXFFmpeg.framework/Headers/libavcodec/ac3_parser.h
0 → 100644
| 1 | +#include "third_party/ffmpeg/ffmpeg_rename_defines.h" // add by source_replacer.py | ||
| 2 | +/* | ||
| 3 | + * AC-3 parser prototypes | ||
| 4 | + * Copyright (c) 2003 Fabrice Bellard | ||
| 5 | + * Copyright (c) 2003 Michael Niedermayer | ||
| 6 | + * | ||
| 7 | + * This file is part of FFmpeg. | ||
| 8 | + * | ||
| 9 | + * FFmpeg is free software; you can redistribute it and/or | ||
| 10 | + * modify it under the terms of the GNU Lesser General Public | ||
| 11 | + * License as published by the Free Software Foundation; either | ||
| 12 | + * version 2.1 of the License, or (at your option) any later version. | ||
| 13 | + * | ||
| 14 | + * FFmpeg is distributed in the hope that it will be useful, | ||
| 15 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 17 | + * Lesser General Public License for more details. | ||
| 18 | + * | ||
| 19 | + * You should have received a copy of the GNU Lesser General Public | ||
| 20 | + * License along with FFmpeg; if not, write to the Free Software | ||
| 21 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 22 | + */ | ||
| 23 | + | ||
| 24 | +#ifndef AVCODEC_AC3_PARSER_H | ||
| 25 | +#define AVCODEC_AC3_PARSER_H | ||
| 26 | + | ||
| 27 | +#include <stddef.h> | ||
| 28 | +#include <stdint.h> | ||
| 29 | + | ||
| 30 | +/** | ||
| 31 | + * Extract the bitstream ID and the frame size from AC-3 data. | ||
| 32 | + */ | ||
| 33 | +int liteav_av_ac3_parse_header(const uint8_t *buf, size_t size, | ||
| 34 | + uint8_t *bitstream_id, uint16_t *frame_size); | ||
| 35 | + | ||
| 36 | + | ||
| 37 | +#endif /* AVCODEC_AC3_PARSER_H */ |
| 1 | +#include "third_party/ffmpeg/ffmpeg_rename_defines.h" // add by source_replacer.py | ||
| 2 | +/* | ||
| 3 | + * This file is part of FFmpeg. | ||
| 4 | + * | ||
| 5 | + * FFmpeg is free software; you can redistribute it and/or | ||
| 6 | + * modify it under the terms of the GNU Lesser General Public | ||
| 7 | + * License as published by the Free Software Foundation; either | ||
| 8 | + * version 2.1 of the License, or (at your option) any later version. | ||
| 9 | + * | ||
| 10 | + * FFmpeg is distributed in the hope that it will be useful, | ||
| 11 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 13 | + * Lesser General Public License for more details. | ||
| 14 | + * | ||
| 15 | + * You should have received a copy of the GNU Lesser General Public | ||
| 16 | + * License along with FFmpeg; if not, write to the Free Software | ||
| 17 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 18 | + */ | ||
| 19 | + | ||
| 20 | +#ifndef AVCODEC_ADTS_PARSER_H | ||
| 21 | +#define AVCODEC_ADTS_PARSER_H | ||
| 22 | + | ||
| 23 | +#include <stddef.h> | ||
| 24 | +#include <stdint.h> | ||
| 25 | + | ||
| 26 | +#define AV_AAC_ADTS_HEADER_SIZE 7 | ||
| 27 | + | ||
| 28 | +/** | ||
| 29 | + * Extract the number of samples and frames from AAC data. | ||
| 30 | + * @param[in] buf pointer to AAC data buffer | ||
| 31 | + * @param[out] samples Pointer to where number of samples is written | ||
| 32 | + * @param[out] frames Pointer to where number of frames is written | ||
| 33 | + * @return Returns 0 on success, error code on failure. | ||
| 34 | + */ | ||
| 35 | +int liteav_av_adts_header_parse(const uint8_t *buf, uint32_t *samples, | ||
| 36 | + uint8_t *frames); | ||
| 37 | + | ||
| 38 | +#endif /* AVCODEC_ADTS_PARSER_H */ |
HHVDoctorSDK/TXFFmpeg.xcframework/ios-arm64_armv7/TXFFmpeg.framework/Headers/libavcodec/ass_split.h
0 → 100644
| 1 | +#include "third_party/ffmpeg/ffmpeg_rename_defines.h" // add by source_replacer.py | ||
| 2 | +/* | ||
| 3 | + * SSA/ASS spliting functions | ||
| 4 | + * Copyright (c) 2010 Aurelien Jacobs <aurel@gnuage.org> | ||
| 5 | + * | ||
| 6 | + * This file is part of FFmpeg. | ||
| 7 | + * | ||
| 8 | + * FFmpeg is free software; you can redistribute it and/or | ||
| 9 | + * modify it under the terms of the GNU Lesser General Public | ||
| 10 | + * License as published by the Free Software Foundation; either | ||
| 11 | + * version 2.1 of the License, or (at your option) any later version. | ||
| 12 | + * | ||
| 13 | + * FFmpeg is distributed in the hope that it will be useful, | ||
| 14 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 16 | + * Lesser General Public License for more details. | ||
| 17 | + * | ||
| 18 | + * You should have received a copy of the GNU Lesser General Public | ||
| 19 | + * License along with FFmpeg; if not, write to the Free Software | ||
| 20 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 21 | + */ | ||
| 22 | + | ||
| 23 | +#ifndef AVCODEC_ASS_SPLIT_H | ||
| 24 | +#define AVCODEC_ASS_SPLIT_H | ||
| 25 | + | ||
| 26 | +/** | ||
| 27 | + * fields extracted from the [Script Info] section | ||
| 28 | + */ | ||
| 29 | +typedef struct { | ||
| 30 | + char *script_type; /**< SSA script format version (eg. v4.00) */ | ||
| 31 | + char *collisions; /**< how subtitles are moved to prevent collisions */ | ||
| 32 | + int play_res_x; /**< video width that ASS coords are referring to */ | ||
| 33 | + int play_res_y; /**< video height that ASS coords are referring to */ | ||
| 34 | + float timer; /**< time multiplier to apply to SSA clock (in %) */ | ||
| 35 | +} ASSScriptInfo; | ||
| 36 | + | ||
| 37 | +/** | ||
| 38 | + * fields extracted from the [V4(+) Styles] section | ||
| 39 | + */ | ||
| 40 | +typedef struct { | ||
| 41 | + char *name; /**< name of the tyle (case sensitive) */ | ||
| 42 | + char *font_name; /**< font face (case sensitive) */ | ||
| 43 | + int font_size; /**< font height */ | ||
| 44 | + int primary_color; /**< color that a subtitle will normally appear in */ | ||
| 45 | + int secondary_color; | ||
| 46 | + int outline_color; /**< color for outline in ASS, called tertiary in SSA */ | ||
| 47 | + int back_color; /**< color of the subtitle outline or shadow */ | ||
| 48 | + int bold; /**< whether text is bold (1) or not (0) */ | ||
| 49 | + int italic; /**< whether text is italic (1) or not (0) */ | ||
| 50 | + int underline; /**< whether text is underlined (1) or not (0) */ | ||
| 51 | + int strikeout; | ||
| 52 | + float scalex; | ||
| 53 | + float scaley; | ||
| 54 | + float spacing; | ||
| 55 | + float angle; | ||
| 56 | + int border_style; | ||
| 57 | + float outline; | ||
| 58 | + float shadow; | ||
| 59 | + int alignment; /**< position of the text (left, center, top...), | ||
| 60 | + defined after the layout of the numpad | ||
| 61 | + (1-3 sub, 4-6 mid, 7-9 top) */ | ||
| 62 | + int margin_l; | ||
| 63 | + int margin_r; | ||
| 64 | + int margin_v; | ||
| 65 | + int alpha_level; | ||
| 66 | + int encoding; | ||
| 67 | +} ASSStyle; | ||
| 68 | + | ||
| 69 | +/** | ||
| 70 | + * fields extracted from the [Events] section | ||
| 71 | + */ | ||
| 72 | +typedef struct { | ||
| 73 | + int readorder; | ||
| 74 | + int layer; /**< higher numbered layers are drawn over lower numbered */ | ||
| 75 | + int start; /**< start time of the dialog in centiseconds */ | ||
| 76 | + int end; /**< end time of the dialog in centiseconds */ | ||
| 77 | + char *style; /**< name of the ASSStyle to use with this dialog */ | ||
| 78 | + char *name; | ||
| 79 | + int margin_l; | ||
| 80 | + int margin_r; | ||
| 81 | + int margin_v; | ||
| 82 | + char *effect; | ||
| 83 | + char *text; /**< actual text which will be displayed as a subtitle, | ||
| 84 | + can include style override control codes (see | ||
| 85 | + liteav_ff_ass_split_override_codes()) */ | ||
| 86 | +} ASSDialog; | ||
| 87 | + | ||
| 88 | +/** | ||
| 89 | + * structure containing the whole split ASS data | ||
| 90 | + */ | ||
| 91 | +typedef struct { | ||
| 92 | + ASSScriptInfo script_info; /**< general information about the SSA script*/ | ||
| 93 | + ASSStyle *styles; /**< array of split out styles */ | ||
| 94 | + int styles_count; /**< number of ASSStyle in the styles array */ | ||
| 95 | + ASSDialog *dialogs; /**< array of split out dialogs */ | ||
| 96 | + int dialogs_count; /**< number of ASSDialog in the dialogs array*/ | ||
| 97 | +} ASS; | ||
| 98 | + | ||
| 99 | +typedef enum { | ||
| 100 | + ASS_STR, | ||
| 101 | + ASS_INT, | ||
| 102 | + ASS_FLT, | ||
| 103 | + ASS_COLOR, | ||
| 104 | + ASS_TIMESTAMP, | ||
| 105 | + ASS_ALGN, | ||
| 106 | +} ASSFieldType; | ||
| 107 | + | ||
| 108 | +typedef struct { | ||
| 109 | + const char *name; | ||
| 110 | + int type; | ||
| 111 | + int offset; | ||
| 112 | +} ASSFields; | ||
| 113 | + | ||
| 114 | +typedef struct { | ||
| 115 | + const char *section; | ||
| 116 | + const char *format_header; | ||
| 117 | + const char *fields_header; | ||
| 118 | + int size; | ||
| 119 | + int offset; | ||
| 120 | + int offset_count; | ||
| 121 | + ASSFields fields[24]; | ||
| 122 | +} ASSSection; | ||
| 123 | + | ||
| 124 | +static const ASSSection ass_sections[] = { | ||
| 125 | + { .section = "Script Info", | ||
| 126 | + .offset = offsetof(ASS, script_info), | ||
| 127 | + .fields = {{"ScriptType", ASS_STR, offsetof(ASSScriptInfo, script_type)}, | ||
| 128 | + {"Collisions", ASS_STR, offsetof(ASSScriptInfo, collisions) }, | ||
| 129 | + {"PlayResX", ASS_INT, offsetof(ASSScriptInfo, play_res_x) }, | ||
| 130 | + {"PlayResY", ASS_INT, offsetof(ASSScriptInfo, play_res_y) }, | ||
| 131 | + {"Timer", ASS_FLT, offsetof(ASSScriptInfo, timer) }, | ||
| 132 | + {0}, | ||
| 133 | + } | ||
| 134 | + }, | ||
| 135 | + { .section = "V4+ Styles", | ||
| 136 | + .format_header = "Format", | ||
| 137 | + .fields_header = "Style", | ||
| 138 | + .size = sizeof(ASSStyle), | ||
| 139 | + .offset = offsetof(ASS, styles), | ||
| 140 | + .offset_count = offsetof(ASS, styles_count), | ||
| 141 | + .fields = {{"Name", ASS_STR, offsetof(ASSStyle, name) }, | ||
| 142 | + {"Fontname", ASS_STR, offsetof(ASSStyle, font_name) }, | ||
| 143 | + {"Fontsize", ASS_INT, offsetof(ASSStyle, font_size) }, | ||
| 144 | + {"PrimaryColour", ASS_COLOR, offsetof(ASSStyle, primary_color) }, | ||
| 145 | + {"SecondaryColour", ASS_COLOR, offsetof(ASSStyle, secondary_color)}, | ||
| 146 | + {"OutlineColour", ASS_COLOR, offsetof(ASSStyle, outline_color) }, | ||
| 147 | + {"BackColour", ASS_COLOR, offsetof(ASSStyle, back_color) }, | ||
| 148 | + {"Bold", ASS_INT, offsetof(ASSStyle, bold) }, | ||
| 149 | + {"Italic", ASS_INT, offsetof(ASSStyle, italic) }, | ||
| 150 | + {"Underline", ASS_INT, offsetof(ASSStyle, underline) }, | ||
| 151 | + {"StrikeOut", ASS_INT, offsetof(ASSStyle, strikeout) }, | ||
| 152 | + {"ScaleX", ASS_FLT, offsetof(ASSStyle, scalex) }, | ||
| 153 | + {"ScaleY", ASS_FLT, offsetof(ASSStyle, scaley) }, | ||
| 154 | + {"Spacing", ASS_FLT, offsetof(ASSStyle, spacing) }, | ||
| 155 | + {"Angle", ASS_FLT, offsetof(ASSStyle, angle) }, | ||
| 156 | + {"BorderStyle", ASS_INT, offsetof(ASSStyle, border_style) }, | ||
| 157 | + {"Outline", ASS_FLT, offsetof(ASSStyle, outline) }, | ||
| 158 | + {"Shadow", ASS_FLT, offsetof(ASSStyle, shadow) }, | ||
| 159 | + {"Alignment", ASS_INT, offsetof(ASSStyle, alignment) }, | ||
| 160 | + {"MarginL", ASS_INT, offsetof(ASSStyle, margin_l) }, | ||
| 161 | + {"MarginR", ASS_INT, offsetof(ASSStyle, margin_r) }, | ||
| 162 | + {"MarginV", ASS_INT, offsetof(ASSStyle, margin_v) }, | ||
| 163 | + {"Encoding", ASS_INT, offsetof(ASSStyle, encoding) }, | ||
| 164 | + {0}, | ||
| 165 | + } | ||
| 166 | + }, | ||
| 167 | + { .section = "V4 Styles", | ||
| 168 | + .format_header = "Format", | ||
| 169 | + .fields_header = "Style", | ||
| 170 | + .size = sizeof(ASSStyle), | ||
| 171 | + .offset = offsetof(ASS, styles), | ||
| 172 | + .offset_count = offsetof(ASS, styles_count), | ||
| 173 | + .fields = {{"Name", ASS_STR, offsetof(ASSStyle, name) }, | ||
| 174 | + {"Fontname", ASS_STR, offsetof(ASSStyle, font_name) }, | ||
| 175 | + {"Fontsize", ASS_INT, offsetof(ASSStyle, font_size) }, | ||
| 176 | + {"PrimaryColour", ASS_COLOR, offsetof(ASSStyle, primary_color) }, | ||
| 177 | + {"SecondaryColour", ASS_COLOR, offsetof(ASSStyle, secondary_color)}, | ||
| 178 | + {"TertiaryColour", ASS_COLOR, offsetof(ASSStyle, outline_color) }, | ||
| 179 | + {"BackColour", ASS_COLOR, offsetof(ASSStyle, back_color) }, | ||
| 180 | + {"Bold", ASS_INT, offsetof(ASSStyle, bold) }, | ||
| 181 | + {"Italic", ASS_INT, offsetof(ASSStyle, italic) }, | ||
| 182 | + {"BorderStyle", ASS_INT, offsetof(ASSStyle, border_style) }, | ||
| 183 | + {"Outline", ASS_FLT, offsetof(ASSStyle, outline) }, | ||
| 184 | + {"Shadow", ASS_FLT, offsetof(ASSStyle, shadow) }, | ||
| 185 | + {"Alignment", ASS_ALGN, offsetof(ASSStyle, alignment) }, | ||
| 186 | + {"MarginL", ASS_INT, offsetof(ASSStyle, margin_l) }, | ||
| 187 | + {"MarginR", ASS_INT, offsetof(ASSStyle, margin_r) }, | ||
| 188 | + {"MarginV", ASS_INT, offsetof(ASSStyle, margin_v) }, | ||
| 189 | + {"AlphaLevel", ASS_INT, offsetof(ASSStyle, alpha_level) }, | ||
| 190 | + {"Encoding", ASS_INT, offsetof(ASSStyle, encoding) }, | ||
| 191 | + {0}, | ||
| 192 | + } | ||
| 193 | + }, | ||
| 194 | + { .section = "Events", | ||
| 195 | + .format_header = "Format", | ||
| 196 | + .fields_header = "Dialogue", | ||
| 197 | + .size = sizeof(ASSDialog), | ||
| 198 | + .offset = offsetof(ASS, dialogs), | ||
| 199 | + .offset_count = offsetof(ASS, dialogs_count), | ||
| 200 | + .fields = {{"Layer", ASS_INT, offsetof(ASSDialog, layer) }, | ||
| 201 | + {"Start", ASS_TIMESTAMP, offsetof(ASSDialog, start) }, | ||
| 202 | + {"End", ASS_TIMESTAMP, offsetof(ASSDialog, end) }, | ||
| 203 | + {"Style", ASS_STR, offsetof(ASSDialog, style) }, | ||
| 204 | + {"Name", ASS_STR, offsetof(ASSDialog, name) }, | ||
| 205 | + {"MarginL", ASS_INT, offsetof(ASSDialog, margin_l)}, | ||
| 206 | + {"MarginR", ASS_INT, offsetof(ASSDialog, margin_r)}, | ||
| 207 | + {"MarginV", ASS_INT, offsetof(ASSDialog, margin_v)}, | ||
| 208 | + {"Effect", ASS_STR, offsetof(ASSDialog, effect) }, | ||
| 209 | + {"Text", ASS_STR, offsetof(ASSDialog, text) }, | ||
| 210 | + {0}, | ||
| 211 | + } | ||
| 212 | + }, | ||
| 213 | +}; | ||
| 214 | + | ||
| 215 | +struct ASSSplitContext { | ||
| 216 | + ASS ass; | ||
| 217 | + int current_section; | ||
| 218 | + int field_number[FF_ARRAY_ELEMS(ass_sections)]; | ||
| 219 | + int *field_order[FF_ARRAY_ELEMS(ass_sections)]; | ||
| 220 | +}; | ||
| 221 | + | ||
| 222 | +/** | ||
| 223 | + * This struct can be casted to ASS to access to the split data. | ||
| 224 | + */ | ||
| 225 | +typedef struct ASSSplitContext ASSSplitContext; | ||
| 226 | + | ||
| 227 | +/** | ||
| 228 | + * Split a full ASS file or a ASS header from a string buffer and store | ||
| 229 | + * the split structure in a newly allocated context. | ||
| 230 | + * | ||
| 231 | + * @param buf String containing the ASS formatted data. | ||
| 232 | + * @return Newly allocated struct containing split data. | ||
| 233 | + */ | ||
| 234 | +ASSSplitContext *liteav_ff_ass_split(const char *buf); | ||
| 235 | + | ||
| 236 | +/** | ||
| 237 | + * Split one or several ASS "Dialogue" lines from a string buffer and store | ||
| 238 | + * them in an already initialized context. | ||
| 239 | + * | ||
| 240 | + * @param ctx Context previously initialized by liteav_ff_ass_split(). | ||
| 241 | + * @param buf String containing the ASS "Dialogue" lines. | ||
| 242 | + * @param cache Set to 1 to keep all the previously split ASSDialog in | ||
| 243 | + * the context, or set to 0 to free all the previously split | ||
| 244 | + * ASSDialog. | ||
| 245 | + * @param number If not NULL, the pointed integer will be set to the number | ||
| 246 | + * of split ASSDialog. | ||
| 247 | + * @return Pointer to the first split ASSDialog. | ||
| 248 | + */ | ||
| 249 | +ASSDialog *liteav_ff_ass_split_dialog(ASSSplitContext *ctx, const char *buf, | ||
| 250 | + int cache, int *number); | ||
| 251 | + | ||
| 252 | +/** | ||
| 253 | + * Free a dialogue obtained from liteav_ff_ass_split_dialog2(). | ||
| 254 | + */ | ||
| 255 | +void liteav_ff_ass_free_dialog(ASSDialog **dialogp); | ||
| 256 | + | ||
| 257 | +/** | ||
| 258 | + * Split one ASS Dialogue line from a string buffer. | ||
| 259 | + * | ||
| 260 | + * @param ctx Context previously initialized by liteav_ff_ass_split(). | ||
| 261 | + * @param buf String containing the ASS "Dialogue" line. | ||
| 262 | + * @return Pointer to the split ASSDialog. Must be freed with liteav_ff_ass_free_dialog() | ||
| 263 | + */ | ||
| 264 | +ASSDialog *liteav_ff_ass_split_dialog2(ASSSplitContext *ctx, const char *buf); | ||
| 265 | + | ||
| 266 | +/** | ||
| 267 | + * Free all the memory allocated for an ASSSplitContext. | ||
| 268 | + * | ||
| 269 | + * @param ctx Context previously initialized by liteav_ff_ass_split(). | ||
| 270 | + */ | ||
| 271 | +void liteav_ff_ass_split_free(ASSSplitContext *ctx); | ||
| 272 | + | ||
| 273 | + | ||
| 274 | +/** | ||
| 275 | + * Set of callback functions corresponding to each override codes that can | ||
| 276 | + * be encountered in a "Dialogue" Text field. | ||
| 277 | + */ | ||
| 278 | +typedef struct { | ||
| 279 | + /** | ||
| 280 | + * @defgroup ass_styles ASS styles | ||
| 281 | + * @{ | ||
| 282 | + */ | ||
| 283 | + void (*text)(void *priv, const char *text, int len); | ||
| 284 | + void (*new_line)(void *priv, int forced); | ||
| 285 | + void (*style)(void *priv, char style, int close); | ||
| 286 | + void (*color)(void *priv, unsigned int /* color */, unsigned int color_id); | ||
| 287 | + void (*alpha)(void *priv, int alpha, int alpha_id); | ||
| 288 | + void (*font_name)(void *priv, const char *name); | ||
| 289 | + void (*font_size)(void *priv, int size); | ||
| 290 | + void (*alignment)(void *priv, int alignment); | ||
| 291 | + void (*cancel_overrides)(void *priv, const char *style); | ||
| 292 | + /** @} */ | ||
| 293 | + | ||
| 294 | + /** | ||
| 295 | + * @defgroup ass_functions ASS functions | ||
| 296 | + * @{ | ||
| 297 | + */ | ||
| 298 | + void (*move)(void *priv, int x1, int y1, int x2, int y2, int t1, int t2); | ||
| 299 | + void (*origin)(void *priv, int x, int y); | ||
| 300 | + /** @} */ | ||
| 301 | + | ||
| 302 | + /** | ||
| 303 | + * @defgroup ass_end end of Dialogue Event | ||
| 304 | + * @{ | ||
| 305 | + */ | ||
| 306 | + void (*end)(void *priv); | ||
| 307 | + /** @} */ | ||
| 308 | +} ASSCodesCallbacks; | ||
| 309 | + | ||
| 310 | +/** | ||
| 311 | + * Split override codes out of a ASS "Dialogue" Text field. | ||
| 312 | + * | ||
| 313 | + * @param callbacks Set of callback functions called for each override code | ||
| 314 | + * encountered. | ||
| 315 | + * @param priv Opaque pointer passed to the callback functions. | ||
| 316 | + * @param buf The ASS "Dialogue" Text field to split. | ||
| 317 | + * @return >= 0 on success otherwise an error code <0 | ||
| 318 | + */ | ||
| 319 | +int liteav_ff_ass_split_override_codes(const ASSCodesCallbacks *callbacks, void *priv, | ||
| 320 | + const char *buf); | ||
| 321 | + | ||
| 322 | +/** | ||
| 323 | + * Find an ASSStyle structure by its name. | ||
| 324 | + * | ||
| 325 | + * @param ctx Context previously initialized by liteav_ff_ass_split(). | ||
| 326 | + * @param style name of the style to search for. | ||
| 327 | + * @return the ASSStyle corresponding to style, or NULL if style can't be found | ||
| 328 | + */ | ||
| 329 | +ASSStyle *liteav_ff_ass_style_get(ASSSplitContext *ctx, const char *style); | ||
| 330 | + | ||
| 331 | +#endif /* AVCODEC_ASS_SPLIT_H */ |
HHVDoctorSDK/TXFFmpeg.xcframework/ios-arm64_armv7/TXFFmpeg.framework/Headers/libavcodec/avcodec.h
0 → 100755
This diff could not be displayed because it is too large.
HHVDoctorSDK/TXFFmpeg.xcframework/ios-arm64_armv7/TXFFmpeg.framework/Headers/libavcodec/avdct.h
0 → 100644
| 1 | +#include "third_party/ffmpeg/ffmpeg_rename_defines.h" // add by source_replacer.py | ||
| 2 | +/* | ||
| 3 | + * This file is part of FFmpeg. | ||
| 4 | + * | ||
| 5 | + * FFmpeg is free software; you can redistribute it and/or | ||
| 6 | + * modify it under the terms of the GNU Lesser General Public | ||
| 7 | + * License as published by the Free Software Foundation; either | ||
| 8 | + * version 2.1 of the License, or (at your option) any later version. | ||
| 9 | + * | ||
| 10 | + * FFmpeg is distributed in the hope that it will be useful, | ||
| 11 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 13 | + * Lesser General Public License for more details. | ||
| 14 | + * | ||
| 15 | + * You should have received a copy of the GNU Lesser General Public | ||
| 16 | + * License along with FFmpeg; if not, write to the Free Software | ||
| 17 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 18 | + */ | ||
| 19 | + | ||
| 20 | +#ifndef AVCODEC_AVDCT_H | ||
| 21 | +#define AVCODEC_AVDCT_H | ||
| 22 | + | ||
| 23 | +#include "libavutil/opt.h" | ||
| 24 | + | ||
| 25 | +/** | ||
| 26 | + * AVDCT context. | ||
| 27 | + * @note function pointers can be NULL if the specific features have been | ||
| 28 | + * disabled at build time. | ||
| 29 | + */ | ||
| 30 | +typedef struct AVDCT { | ||
| 31 | + const AVClass *av_class; | ||
| 32 | + | ||
| 33 | + void (*idct)(int16_t *block /* align 16 */); | ||
| 34 | + | ||
| 35 | + /** | ||
| 36 | + * IDCT input permutation. | ||
| 37 | + * Several optimized IDCTs need a permutated input (relative to the | ||
| 38 | + * normal order of the reference IDCT). | ||
| 39 | + * This permutation must be performed before the idct_put/add. | ||
| 40 | + * Note, normally this can be merged with the zigzag/alternate scan<br> | ||
| 41 | + * An example to avoid confusion: | ||
| 42 | + * - (->decode coeffs -> zigzag reorder -> dequant -> reference IDCT -> ...) | ||
| 43 | + * - (x -> reference DCT -> reference IDCT -> x) | ||
| 44 | + * - (x -> reference DCT -> simple_mmx_perm = idct_permutation | ||
| 45 | + * -> simple_idct_mmx -> x) | ||
| 46 | + * - (-> decode coeffs -> zigzag reorder -> simple_mmx_perm -> dequant | ||
| 47 | + * -> simple_idct_mmx -> ...) | ||
| 48 | + */ | ||
| 49 | + uint8_t idct_permutation[64]; | ||
| 50 | + | ||
| 51 | + void (*fdct)(int16_t *block /* align 16 */); | ||
| 52 | + | ||
| 53 | + | ||
| 54 | + /** | ||
| 55 | + * DCT algorithm. | ||
| 56 | + * must use AVOptions to set this field. | ||
| 57 | + */ | ||
| 58 | + int dct_algo; | ||
| 59 | + | ||
| 60 | + /** | ||
| 61 | + * IDCT algorithm. | ||
| 62 | + * must use AVOptions to set this field. | ||
| 63 | + */ | ||
| 64 | + int idct_algo; | ||
| 65 | + | ||
| 66 | + void (*get_pixels)(int16_t *block /* align 16 */, | ||
| 67 | + const uint8_t *pixels /* align 8 */, | ||
| 68 | + ptrdiff_t line_size); | ||
| 69 | + | ||
| 70 | + int bits_per_sample; | ||
| 71 | +} AVDCT; | ||
| 72 | + | ||
| 73 | +/** | ||
| 74 | + * Allocates a AVDCT context. | ||
| 75 | + * This needs to be initialized with liteav_avcodec_dct_init() after optionally | ||
| 76 | + * configuring it with AVOptions. | ||
| 77 | + * | ||
| 78 | + * To free it use liteav_av_free() | ||
| 79 | + */ | ||
| 80 | +AVDCT *liteav_avcodec_dct_alloc(void); | ||
| 81 | +int liteav_avcodec_dct_init(AVDCT *); | ||
| 82 | + | ||
| 83 | +const AVClass *liteav_avcodec_dct_get_class(void); | ||
| 84 | + | ||
| 85 | +#endif /* AVCODEC_AVDCT_H */ |
HHVDoctorSDK/TXFFmpeg.xcframework/ios-arm64_armv7/TXFFmpeg.framework/Headers/libavcodec/avfft.h
0 → 100644
| 1 | +#include "third_party/ffmpeg/ffmpeg_rename_defines.h" // add by source_replacer.py | ||
| 2 | +/* | ||
| 3 | + * This file is part of FFmpeg. | ||
| 4 | + * | ||
| 5 | + * FFmpeg is free software; you can redistribute it and/or | ||
| 6 | + * modify it under the terms of the GNU Lesser General Public | ||
| 7 | + * License as published by the Free Software Foundation; either | ||
| 8 | + * version 2.1 of the License, or (at your option) any later version. | ||
| 9 | + * | ||
| 10 | + * FFmpeg is distributed in the hope that it will be useful, | ||
| 11 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 13 | + * Lesser General Public License for more details. | ||
| 14 | + * | ||
| 15 | + * You should have received a copy of the GNU Lesser General Public | ||
| 16 | + * License along with FFmpeg; if not, write to the Free Software | ||
| 17 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 18 | + */ | ||
| 19 | + | ||
| 20 | +#ifndef AVCODEC_AVFFT_H | ||
| 21 | +#define AVCODEC_AVFFT_H | ||
| 22 | + | ||
| 23 | +/** | ||
| 24 | + * @file | ||
| 25 | + * @ingroup lavc_fft | ||
| 26 | + * FFT functions | ||
| 27 | + */ | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * @defgroup lavc_fft FFT functions | ||
| 31 | + * @ingroup lavc_misc | ||
| 32 | + * | ||
| 33 | + * @{ | ||
| 34 | + */ | ||
| 35 | + | ||
| 36 | +typedef float FFTSample; | ||
| 37 | + | ||
| 38 | +typedef struct FFTComplex { | ||
| 39 | + FFTSample re, im; | ||
| 40 | +} FFTComplex; | ||
| 41 | + | ||
| 42 | +typedef struct FFTContext FFTContext; | ||
| 43 | + | ||
| 44 | +/** | ||
| 45 | + * Set up a complex FFT. | ||
| 46 | + * @param nbits log2 of the length of the input array | ||
| 47 | + * @param inverse if 0 perform the forward transform, if 1 perform the inverse | ||
| 48 | + */ | ||
| 49 | +FFTContext *liteav_av_fft_init(int nbits, int inverse); | ||
| 50 | + | ||
| 51 | +/** | ||
| 52 | + * Do the permutation needed BEFORE calling liteav_ff_fft_calc(). | ||
| 53 | + */ | ||
| 54 | +void liteav_av_fft_permute(FFTContext *s, FFTComplex *z); | ||
| 55 | + | ||
| 56 | +/** | ||
| 57 | + * Do a complex FFT with the parameters defined in liteav_av_fft_init(). The | ||
| 58 | + * input data must be permuted before. No 1.0/sqrt(n) normalization is done. | ||
| 59 | + */ | ||
| 60 | +void liteav_av_fft_calc(FFTContext *s, FFTComplex *z); | ||
| 61 | + | ||
| 62 | +void liteav_av_fft_end(FFTContext *s); | ||
| 63 | + | ||
| 64 | +FFTContext *liteav_av_mdct_init(int nbits, int inverse, double scale); | ||
| 65 | +void liteav_av_imdct_calc(FFTContext *s, FFTSample *output, const FFTSample *input); | ||
| 66 | +void liteav_av_imdct_half(FFTContext *s, FFTSample *output, const FFTSample *input); | ||
| 67 | +void liteav_av_mdct_calc(FFTContext *s, FFTSample *output, const FFTSample *input); | ||
| 68 | +void liteav_av_mdct_end(FFTContext *s); | ||
| 69 | + | ||
| 70 | +/* Real Discrete Fourier Transform */ | ||
| 71 | + | ||
| 72 | +enum RDFTransformType { | ||
| 73 | + DFT_R2C, | ||
| 74 | + IDFT_C2R, | ||
| 75 | + IDFT_R2C, | ||
| 76 | + DFT_C2R, | ||
| 77 | +}; | ||
| 78 | + | ||
| 79 | +typedef struct RDFTContext RDFTContext; | ||
| 80 | + | ||
| 81 | +/** | ||
| 82 | + * Set up a real FFT. | ||
| 83 | + * @param nbits log2 of the length of the input array | ||
| 84 | + * @param trans the type of transform | ||
| 85 | + */ | ||
| 86 | +RDFTContext *liteav_av_rdft_init(int nbits, enum RDFTransformType trans); | ||
| 87 | +void liteav_av_rdft_calc(RDFTContext *s, FFTSample *data); | ||
| 88 | +void liteav_av_rdft_end(RDFTContext *s); | ||
| 89 | + | ||
| 90 | +/* Discrete Cosine Transform */ | ||
| 91 | + | ||
| 92 | +typedef struct DCTContext DCTContext; | ||
| 93 | + | ||
| 94 | +enum DCTTransformType { | ||
| 95 | + DCT_II = 0, | ||
| 96 | + DCT_III, | ||
| 97 | + DCT_I, | ||
| 98 | + DST_I, | ||
| 99 | +}; | ||
| 100 | + | ||
| 101 | +/** | ||
| 102 | + * Set up DCT. | ||
| 103 | + * | ||
| 104 | + * @param nbits size of the input array: | ||
| 105 | + * (1 << nbits) for DCT-II, DCT-III and DST-I | ||
| 106 | + * (1 << nbits) + 1 for DCT-I | ||
| 107 | + * @param type the type of transform | ||
| 108 | + * | ||
| 109 | + * @note the first element of the input of DST-I is ignored | ||
| 110 | + */ | ||
| 111 | +DCTContext *liteav_av_dct_init(int nbits, enum DCTTransformType type); | ||
| 112 | +void liteav_av_dct_calc(DCTContext *s, FFTSample *data); | ||
| 113 | +void liteav_av_dct_end (DCTContext *s); | ||
| 114 | + | ||
| 115 | +/** | ||
| 116 | + * @} | ||
| 117 | + */ | ||
| 118 | + | ||
| 119 | +#endif /* AVCODEC_AVFFT_H */ |
HHVDoctorSDK/TXFFmpeg.xcframework/ios-arm64_armv7/TXFFmpeg.framework/Headers/libavcodec/bytestream.h
0 → 100644
| 1 | +/* | ||
| 2 | + * Bytestream functions | ||
| 3 | + * copyright (c) 2006 Baptiste Coudurier <baptiste.coudurier@free.fr> | ||
| 4 | + * Copyright (c) 2012 Aneesh Dogra (lionaneesh) <lionaneesh@gmail.com> | ||
| 5 | + * | ||
| 6 | + * This file is part of FFmpeg. | ||
| 7 | + * | ||
| 8 | + * FFmpeg is free software; you can redistribute it and/or | ||
| 9 | + * modify it under the terms of the GNU Lesser General Public | ||
| 10 | + * License as published by the Free Software Foundation; either | ||
| 11 | + * version 2.1 of the License, or (at your option) any later version. | ||
| 12 | + * | ||
| 13 | + * FFmpeg is distributed in the hope that it will be useful, | ||
| 14 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 16 | + * Lesser General Public License for more details. | ||
| 17 | + * | ||
| 18 | + * You should have received a copy of the GNU Lesser General Public | ||
| 19 | + * License along with FFmpeg; if not, write to the Free Software | ||
| 20 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 21 | + */ | ||
| 22 | + | ||
| 23 | +#ifndef AVCODEC_BYTESTREAM_H | ||
| 24 | +#define AVCODEC_BYTESTREAM_H | ||
| 25 | + | ||
| 26 | +#include <stdint.h> | ||
| 27 | +#include <string.h> | ||
| 28 | + | ||
| 29 | +#include "libavutil/avassert.h" | ||
| 30 | +#include "libavutil/common.h" | ||
| 31 | +#include "libavutil/intreadwrite.h" | ||
| 32 | + | ||
| 33 | +typedef struct GetByteContext { | ||
| 34 | + const uint8_t *buffer, *buffer_end, *buffer_start; | ||
| 35 | +} GetByteContext; | ||
| 36 | + | ||
| 37 | +typedef struct PutByteContext { | ||
| 38 | + uint8_t *buffer, *buffer_end, *buffer_start; | ||
| 39 | + int eof; | ||
| 40 | +} PutByteContext; | ||
| 41 | + | ||
| 42 | +#define DEF(type, name, bytes, read, write) \ | ||
| 43 | +static av_always_inline type bytestream_get_ ## name(const uint8_t **b) \ | ||
| 44 | +{ \ | ||
| 45 | + (*b) += bytes; \ | ||
| 46 | + return read(*b - bytes); \ | ||
| 47 | +} \ | ||
| 48 | +static av_always_inline void bytestream_put_ ## name(uint8_t **b, \ | ||
| 49 | + const type value) \ | ||
| 50 | +{ \ | ||
| 51 | + write(*b, value); \ | ||
| 52 | + (*b) += bytes; \ | ||
| 53 | +} \ | ||
| 54 | +static av_always_inline void bytestream2_put_ ## name ## u(PutByteContext *p, \ | ||
| 55 | + const type value) \ | ||
| 56 | +{ \ | ||
| 57 | + bytestream_put_ ## name(&p->buffer, value); \ | ||
| 58 | +} \ | ||
| 59 | +static av_always_inline void bytestream2_put_ ## name(PutByteContext *p, \ | ||
| 60 | + const type value) \ | ||
| 61 | +{ \ | ||
| 62 | + if (!p->eof && (p->buffer_end - p->buffer >= bytes)) { \ | ||
| 63 | + write(p->buffer, value); \ | ||
| 64 | + p->buffer += bytes; \ | ||
| 65 | + } else \ | ||
| 66 | + p->eof = 1; \ | ||
| 67 | +} \ | ||
| 68 | +static av_always_inline type bytestream2_get_ ## name ## u(GetByteContext *g) \ | ||
| 69 | +{ \ | ||
| 70 | + return bytestream_get_ ## name(&g->buffer); \ | ||
| 71 | +} \ | ||
| 72 | +static av_always_inline type bytestream2_get_ ## name(GetByteContext *g) \ | ||
| 73 | +{ \ | ||
| 74 | + if (g->buffer_end - g->buffer < bytes) { \ | ||
| 75 | + g->buffer = g->buffer_end; \ | ||
| 76 | + return 0; \ | ||
| 77 | + } \ | ||
| 78 | + return bytestream2_get_ ## name ## u(g); \ | ||
| 79 | +} \ | ||
| 80 | +static av_always_inline type bytestream2_peek_ ## name(GetByteContext *g) \ | ||
| 81 | +{ \ | ||
| 82 | + if (g->buffer_end - g->buffer < bytes) \ | ||
| 83 | + return 0; \ | ||
| 84 | + return read(g->buffer); \ | ||
| 85 | +} | ||
| 86 | + | ||
| 87 | +DEF(uint64_t, le64, 8, AV_RL64, AV_WL64) | ||
| 88 | +DEF(unsigned int, le32, 4, AV_RL32, AV_WL32) | ||
| 89 | +DEF(unsigned int, le24, 3, AV_RL24, AV_WL24) | ||
| 90 | +DEF(unsigned int, le16, 2, AV_RL16, AV_WL16) | ||
| 91 | +DEF(uint64_t, be64, 8, AV_RB64, AV_WB64) | ||
| 92 | +DEF(unsigned int, be32, 4, AV_RB32, AV_WB32) | ||
| 93 | +DEF(unsigned int, be24, 3, AV_RB24, AV_WB24) | ||
| 94 | +DEF(unsigned int, be16, 2, AV_RB16, AV_WB16) | ||
| 95 | +DEF(unsigned int, byte, 1, AV_RB8 , AV_WB8) | ||
| 96 | + | ||
| 97 | +#if AV_HAVE_BIGENDIAN | ||
| 98 | +# define bytestream2_get_ne16 bytestream2_get_be16 | ||
| 99 | +# define bytestream2_get_ne24 bytestream2_get_be24 | ||
| 100 | +# define bytestream2_get_ne32 bytestream2_get_be32 | ||
| 101 | +# define bytestream2_get_ne64 bytestream2_get_be64 | ||
| 102 | +# define bytestream2_get_ne16u bytestream2_get_be16u | ||
| 103 | +# define bytestream2_get_ne24u bytestream2_get_be24u | ||
| 104 | +# define bytestream2_get_ne32u bytestream2_get_be32u | ||
| 105 | +# define bytestream2_get_ne64u bytestream2_get_be64u | ||
| 106 | +# define bytestream2_put_ne16 bytestream2_put_be16 | ||
| 107 | +# define bytestream2_put_ne24 bytestream2_put_be24 | ||
| 108 | +# define bytestream2_put_ne32 bytestream2_put_be32 | ||
| 109 | +# define bytestream2_put_ne64 bytestream2_put_be64 | ||
| 110 | +# define bytestream2_peek_ne16 bytestream2_peek_be16 | ||
| 111 | +# define bytestream2_peek_ne24 bytestream2_peek_be24 | ||
| 112 | +# define bytestream2_peek_ne32 bytestream2_peek_be32 | ||
| 113 | +# define bytestream2_peek_ne64 bytestream2_peek_be64 | ||
| 114 | +#else | ||
| 115 | +# define bytestream2_get_ne16 bytestream2_get_le16 | ||
| 116 | +# define bytestream2_get_ne24 bytestream2_get_le24 | ||
| 117 | +# define bytestream2_get_ne32 bytestream2_get_le32 | ||
| 118 | +# define bytestream2_get_ne64 bytestream2_get_le64 | ||
| 119 | +# define bytestream2_get_ne16u bytestream2_get_le16u | ||
| 120 | +# define bytestream2_get_ne24u bytestream2_get_le24u | ||
| 121 | +# define bytestream2_get_ne32u bytestream2_get_le32u | ||
| 122 | +# define bytestream2_get_ne64u bytestream2_get_le64u | ||
| 123 | +# define bytestream2_put_ne16 bytestream2_put_le16 | ||
| 124 | +# define bytestream2_put_ne24 bytestream2_put_le24 | ||
| 125 | +# define bytestream2_put_ne32 bytestream2_put_le32 | ||
| 126 | +# define bytestream2_put_ne64 bytestream2_put_le64 | ||
| 127 | +# define bytestream2_peek_ne16 bytestream2_peek_le16 | ||
| 128 | +# define bytestream2_peek_ne24 bytestream2_peek_le24 | ||
| 129 | +# define bytestream2_peek_ne32 bytestream2_peek_le32 | ||
| 130 | +# define bytestream2_peek_ne64 bytestream2_peek_le64 | ||
| 131 | +#endif | ||
| 132 | + | ||
| 133 | +static av_always_inline void bytestream2_init(GetByteContext *g, | ||
| 134 | + const uint8_t *buf, | ||
| 135 | + int buf_size) | ||
| 136 | +{ | ||
| 137 | + av_assert0(buf_size >= 0); | ||
| 138 | + g->buffer = buf; | ||
| 139 | + g->buffer_start = buf; | ||
| 140 | + g->buffer_end = buf + buf_size; | ||
| 141 | +} | ||
| 142 | + | ||
| 143 | +static av_always_inline void bytestream2_init_writer(PutByteContext *p, | ||
| 144 | + uint8_t *buf, | ||
| 145 | + int buf_size) | ||
| 146 | +{ | ||
| 147 | + av_assert0(buf_size >= 0); | ||
| 148 | + p->buffer = buf; | ||
| 149 | + p->buffer_start = buf; | ||
| 150 | + p->buffer_end = buf + buf_size; | ||
| 151 | + p->eof = 0; | ||
| 152 | +} | ||
| 153 | + | ||
| 154 | +static av_always_inline unsigned int bytestream2_get_bytes_left(GetByteContext *g) | ||
| 155 | +{ | ||
| 156 | + return g->buffer_end - g->buffer; | ||
| 157 | +} | ||
| 158 | + | ||
| 159 | +static av_always_inline unsigned int bytestream2_get_bytes_left_p(PutByteContext *p) | ||
| 160 | +{ | ||
| 161 | + return p->buffer_end - p->buffer; | ||
| 162 | +} | ||
| 163 | + | ||
| 164 | +static av_always_inline void bytestream2_skip(GetByteContext *g, | ||
| 165 | + unsigned int size) | ||
| 166 | +{ | ||
| 167 | + g->buffer += FFMIN(g->buffer_end - g->buffer, size); | ||
| 168 | +} | ||
| 169 | + | ||
| 170 | +static av_always_inline void bytestream2_skipu(GetByteContext *g, | ||
| 171 | + unsigned int size) | ||
| 172 | +{ | ||
| 173 | + g->buffer += size; | ||
| 174 | +} | ||
| 175 | + | ||
| 176 | +static av_always_inline void bytestream2_skip_p(PutByteContext *p, | ||
| 177 | + unsigned int size) | ||
| 178 | +{ | ||
| 179 | + int size2; | ||
| 180 | + if (p->eof) | ||
| 181 | + return; | ||
| 182 | + size2 = FFMIN(p->buffer_end - p->buffer, size); | ||
| 183 | + if (size2 != size) | ||
| 184 | + p->eof = 1; | ||
| 185 | + p->buffer += size2; | ||
| 186 | +} | ||
| 187 | + | ||
| 188 | +static av_always_inline int bytestream2_tell(GetByteContext *g) | ||
| 189 | +{ | ||
| 190 | + return (int)(g->buffer - g->buffer_start); | ||
| 191 | +} | ||
| 192 | + | ||
| 193 | +static av_always_inline int bytestream2_tell_p(PutByteContext *p) | ||
| 194 | +{ | ||
| 195 | + return (int)(p->buffer - p->buffer_start); | ||
| 196 | +} | ||
| 197 | + | ||
| 198 | +static av_always_inline int bytestream2_size(GetByteContext *g) | ||
| 199 | +{ | ||
| 200 | + return (int)(g->buffer_end - g->buffer_start); | ||
| 201 | +} | ||
| 202 | + | ||
| 203 | +static av_always_inline int bytestream2_size_p(PutByteContext *p) | ||
| 204 | +{ | ||
| 205 | + return (int)(p->buffer_end - p->buffer_start); | ||
| 206 | +} | ||
| 207 | + | ||
| 208 | +static av_always_inline int bytestream2_seek(GetByteContext *g, | ||
| 209 | + int offset, | ||
| 210 | + int whence) | ||
| 211 | +{ | ||
| 212 | + switch (whence) { | ||
| 213 | + case SEEK_CUR: | ||
| 214 | + offset = av_clip(offset, -(g->buffer - g->buffer_start), | ||
| 215 | + g->buffer_end - g->buffer); | ||
| 216 | + g->buffer += offset; | ||
| 217 | + break; | ||
| 218 | + case SEEK_END: | ||
| 219 | + offset = av_clip(offset, -(g->buffer_end - g->buffer_start), 0); | ||
| 220 | + g->buffer = g->buffer_end + offset; | ||
| 221 | + break; | ||
| 222 | + case SEEK_SET: | ||
| 223 | + offset = av_clip(offset, 0, g->buffer_end - g->buffer_start); | ||
| 224 | + g->buffer = g->buffer_start + offset; | ||
| 225 | + break; | ||
| 226 | + default: | ||
| 227 | + return AVERROR(EINVAL); | ||
| 228 | + } | ||
| 229 | + return bytestream2_tell(g); | ||
| 230 | +} | ||
| 231 | + | ||
| 232 | +static av_always_inline int bytestream2_seek_p(PutByteContext *p, | ||
| 233 | + int offset, | ||
| 234 | + int whence) | ||
| 235 | +{ | ||
| 236 | + p->eof = 0; | ||
| 237 | + switch (whence) { | ||
| 238 | + case SEEK_CUR: | ||
| 239 | + if (p->buffer_end - p->buffer < offset) | ||
| 240 | + p->eof = 1; | ||
| 241 | + offset = av_clip(offset, -(p->buffer - p->buffer_start), | ||
| 242 | + p->buffer_end - p->buffer); | ||
| 243 | + p->buffer += offset; | ||
| 244 | + break; | ||
| 245 | + case SEEK_END: | ||
| 246 | + if (offset > 0) | ||
| 247 | + p->eof = 1; | ||
| 248 | + offset = av_clip(offset, -(p->buffer_end - p->buffer_start), 0); | ||
| 249 | + p->buffer = p->buffer_end + offset; | ||
| 250 | + break; | ||
| 251 | + case SEEK_SET: | ||
| 252 | + if (p->buffer_end - p->buffer_start < offset) | ||
| 253 | + p->eof = 1; | ||
| 254 | + offset = av_clip(offset, 0, p->buffer_end - p->buffer_start); | ||
| 255 | + p->buffer = p->buffer_start + offset; | ||
| 256 | + break; | ||
| 257 | + default: | ||
| 258 | + return AVERROR(EINVAL); | ||
| 259 | + } | ||
| 260 | + return bytestream2_tell_p(p); | ||
| 261 | +} | ||
| 262 | + | ||
| 263 | +static av_always_inline unsigned int bytestream2_get_buffer(GetByteContext *g, | ||
| 264 | + uint8_t *dst, | ||
| 265 | + unsigned int size) | ||
| 266 | +{ | ||
| 267 | + int size2 = FFMIN(g->buffer_end - g->buffer, size); | ||
| 268 | + memcpy(dst, g->buffer, size2); | ||
| 269 | + g->buffer += size2; | ||
| 270 | + return size2; | ||
| 271 | +} | ||
| 272 | + | ||
| 273 | +static av_always_inline unsigned int bytestream2_get_bufferu(GetByteContext *g, | ||
| 274 | + uint8_t *dst, | ||
| 275 | + unsigned int size) | ||
| 276 | +{ | ||
| 277 | + memcpy(dst, g->buffer, size); | ||
| 278 | + g->buffer += size; | ||
| 279 | + return size; | ||
| 280 | +} | ||
| 281 | + | ||
| 282 | +static av_always_inline unsigned int bytestream2_put_buffer(PutByteContext *p, | ||
| 283 | + const uint8_t *src, | ||
| 284 | + unsigned int size) | ||
| 285 | +{ | ||
| 286 | + int size2; | ||
| 287 | + if (p->eof) | ||
| 288 | + return 0; | ||
| 289 | + size2 = FFMIN(p->buffer_end - p->buffer, size); | ||
| 290 | + if (size2 != size) | ||
| 291 | + p->eof = 1; | ||
| 292 | + memcpy(p->buffer, src, size2); | ||
| 293 | + p->buffer += size2; | ||
| 294 | + return size2; | ||
| 295 | +} | ||
| 296 | + | ||
| 297 | +static av_always_inline unsigned int bytestream2_put_bufferu(PutByteContext *p, | ||
| 298 | + const uint8_t *src, | ||
| 299 | + unsigned int size) | ||
| 300 | +{ | ||
| 301 | + memcpy(p->buffer, src, size); | ||
| 302 | + p->buffer += size; | ||
| 303 | + return size; | ||
| 304 | +} | ||
| 305 | + | ||
| 306 | +static av_always_inline void bytestream2_set_buffer(PutByteContext *p, | ||
| 307 | + const uint8_t c, | ||
| 308 | + unsigned int size) | ||
| 309 | +{ | ||
| 310 | + int size2; | ||
| 311 | + if (p->eof) | ||
| 312 | + return; | ||
| 313 | + size2 = FFMIN(p->buffer_end - p->buffer, size); | ||
| 314 | + if (size2 != size) | ||
| 315 | + p->eof = 1; | ||
| 316 | + memset(p->buffer, c, size2); | ||
| 317 | + p->buffer += size2; | ||
| 318 | +} | ||
| 319 | + | ||
| 320 | +static av_always_inline void bytestream2_set_bufferu(PutByteContext *p, | ||
| 321 | + const uint8_t c, | ||
| 322 | + unsigned int size) | ||
| 323 | +{ | ||
| 324 | + memset(p->buffer, c, size); | ||
| 325 | + p->buffer += size; | ||
| 326 | +} | ||
| 327 | + | ||
| 328 | +static av_always_inline unsigned int bytestream2_get_eof(PutByteContext *p) | ||
| 329 | +{ | ||
| 330 | + return p->eof; | ||
| 331 | +} | ||
| 332 | + | ||
| 333 | +static av_always_inline unsigned int bytestream2_copy_bufferu(PutByteContext *p, | ||
| 334 | + GetByteContext *g, | ||
| 335 | + unsigned int size) | ||
| 336 | +{ | ||
| 337 | + memcpy(p->buffer, g->buffer, size); | ||
| 338 | + p->buffer += size; | ||
| 339 | + g->buffer += size; | ||
| 340 | + return size; | ||
| 341 | +} | ||
| 342 | + | ||
| 343 | +static av_always_inline unsigned int bytestream2_copy_buffer(PutByteContext *p, | ||
| 344 | + GetByteContext *g, | ||
| 345 | + unsigned int size) | ||
| 346 | +{ | ||
| 347 | + int size2; | ||
| 348 | + | ||
| 349 | + if (p->eof) | ||
| 350 | + return 0; | ||
| 351 | + size = FFMIN(g->buffer_end - g->buffer, size); | ||
| 352 | + size2 = FFMIN(p->buffer_end - p->buffer, size); | ||
| 353 | + if (size2 != size) | ||
| 354 | + p->eof = 1; | ||
| 355 | + | ||
| 356 | + return bytestream2_copy_bufferu(p, g, size2); | ||
| 357 | +} | ||
| 358 | + | ||
| 359 | +static av_always_inline unsigned int bytestream_get_buffer(const uint8_t **b, | ||
| 360 | + uint8_t *dst, | ||
| 361 | + unsigned int size) | ||
| 362 | +{ | ||
| 363 | + memcpy(dst, *b, size); | ||
| 364 | + (*b) += size; | ||
| 365 | + return size; | ||
| 366 | +} | ||
| 367 | + | ||
| 368 | +static av_always_inline void bytestream_put_buffer(uint8_t **b, | ||
| 369 | + const uint8_t *src, | ||
| 370 | + unsigned int size) | ||
| 371 | +{ | ||
| 372 | + memcpy(*b, src, size); | ||
| 373 | + (*b) += size; | ||
| 374 | +} | ||
| 375 | + | ||
| 376 | +#endif /* AVCODEC_BYTESTREAM_H */ |
HHVDoctorSDK/TXFFmpeg.xcframework/ios-arm64_armv7/TXFFmpeg.framework/Headers/libavcodec/d3d11va.h
0 → 100644
| 1 | +#include "third_party/ffmpeg/ffmpeg_rename_defines.h" // add by source_replacer.py | ||
| 2 | +/* | ||
| 3 | + * Direct3D11 HW acceleration | ||
| 4 | + * | ||
| 5 | + * copyright (c) 2009 Laurent Aimar | ||
| 6 | + * copyright (c) 2015 Steve Lhomme | ||
| 7 | + * | ||
| 8 | + * This file is part of FFmpeg. | ||
| 9 | + * | ||
| 10 | + * FFmpeg is free software; you can redistribute it and/or | ||
| 11 | + * modify it under the terms of the GNU Lesser General Public | ||
| 12 | + * License as published by the Free Software Foundation; either | ||
| 13 | + * version 2.1 of the License, or (at your option) any later version. | ||
| 14 | + * | ||
| 15 | + * FFmpeg is distributed in the hope that it will be useful, | ||
| 16 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 18 | + * Lesser General Public License for more details. | ||
| 19 | + * | ||
| 20 | + * You should have received a copy of the GNU Lesser General Public | ||
| 21 | + * License along with FFmpeg; if not, write to the Free Software | ||
| 22 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 23 | + */ | ||
| 24 | + | ||
| 25 | +#ifndef AVCODEC_D3D11VA_H | ||
| 26 | +#define AVCODEC_D3D11VA_H | ||
| 27 | + | ||
| 28 | +/** | ||
| 29 | + * @file | ||
| 30 | + * @ingroup lavc_codec_hwaccel_d3d11va | ||
| 31 | + * Public libavcodec D3D11VA header. | ||
| 32 | + */ | ||
| 33 | + | ||
| 34 | +#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0602 | ||
| 35 | +#undef _WIN32_WINNT | ||
| 36 | +#define _WIN32_WINNT 0x0602 | ||
| 37 | +#endif | ||
| 38 | + | ||
| 39 | +#include <stdint.h> | ||
| 40 | +#include <d3d11.h> | ||
| 41 | + | ||
| 42 | +/** | ||
| 43 | + * @defgroup lavc_codec_hwaccel_d3d11va Direct3D11 | ||
| 44 | + * @ingroup lavc_codec_hwaccel | ||
| 45 | + * | ||
| 46 | + * @{ | ||
| 47 | + */ | ||
| 48 | + | ||
| 49 | +#define FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG 1 ///< Work around for Direct3D11 and old UVD/UVD+ ATI video cards | ||
| 50 | +#define FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO 2 ///< Work around for Direct3D11 and old Intel GPUs with ClearVideo interface | ||
| 51 | + | ||
| 52 | +/** | ||
| 53 | + * This structure is used to provides the necessary configurations and data | ||
| 54 | + * to the Direct3D11 FFmpeg HWAccel implementation. | ||
| 55 | + * | ||
| 56 | + * The application must make it available as AVCodecContext.hwaccel_context. | ||
| 57 | + * | ||
| 58 | + * Use liteav_av_d3d11va_alloc_context() exclusively to allocate an AVD3D11VAContext. | ||
| 59 | + */ | ||
| 60 | +typedef struct AVD3D11VAContext { | ||
| 61 | + /** | ||
| 62 | + * D3D11 decoder object | ||
| 63 | + */ | ||
| 64 | + ID3D11VideoDecoder *decoder; | ||
| 65 | + | ||
| 66 | + /** | ||
| 67 | + * D3D11 VideoContext | ||
| 68 | + */ | ||
| 69 | + ID3D11VideoContext *video_context; | ||
| 70 | + | ||
| 71 | + /** | ||
| 72 | + * D3D11 configuration used to create the decoder | ||
| 73 | + */ | ||
| 74 | + D3D11_VIDEO_DECODER_CONFIG *cfg; | ||
| 75 | + | ||
| 76 | + /** | ||
| 77 | + * The number of surface in the surface array | ||
| 78 | + */ | ||
| 79 | + unsigned surface_count; | ||
| 80 | + | ||
| 81 | + /** | ||
| 82 | + * The array of Direct3D surfaces used to create the decoder | ||
| 83 | + */ | ||
| 84 | + ID3D11VideoDecoderOutputView **surface; | ||
| 85 | + | ||
| 86 | + /** | ||
| 87 | + * A bit field configuring the workarounds needed for using the decoder | ||
| 88 | + */ | ||
| 89 | + uint64_t workaround; | ||
| 90 | + | ||
| 91 | + /** | ||
| 92 | + * Private to the FFmpeg AVHWAccel implementation | ||
| 93 | + */ | ||
| 94 | + unsigned report_id; | ||
| 95 | + | ||
| 96 | + /** | ||
| 97 | + * Mutex to access video_context | ||
| 98 | + */ | ||
| 99 | + HANDLE context_mutex; | ||
| 100 | +} AVD3D11VAContext; | ||
| 101 | + | ||
| 102 | +/** | ||
| 103 | + * Allocate an AVD3D11VAContext. | ||
| 104 | + * | ||
| 105 | + * @return Newly-allocated AVD3D11VAContext or NULL on failure. | ||
| 106 | + */ | ||
| 107 | +AVD3D11VAContext *liteav_av_d3d11va_alloc_context(void); | ||
| 108 | + | ||
| 109 | +/** | ||
| 110 | + * @} | ||
| 111 | + */ | ||
| 112 | + | ||
| 113 | +#endif /* AVCODEC_D3D11VA_H */ |
HHVDoctorSDK/TXFFmpeg.xcframework/ios-arm64_armv7/TXFFmpeg.framework/Headers/libavcodec/dirac.h
0 → 100644
| 1 | +#include "third_party/ffmpeg/ffmpeg_rename_defines.h" // add by source_replacer.py | ||
| 2 | +/* | ||
| 3 | + * Copyright (C) 2007 Marco Gerards <marco@gnu.org> | ||
| 4 | + * Copyright (C) 2009 David Conrad | ||
| 5 | + * Copyright (C) 2011 Jordi Ortiz | ||
| 6 | + * | ||
| 7 | + * This file is part of FFmpeg. | ||
| 8 | + * | ||
| 9 | + * FFmpeg is free software; you can redistribute it and/or | ||
| 10 | + * modify it under the terms of the GNU Lesser General Public | ||
| 11 | + * License as published by the Free Software Foundation; either | ||
| 12 | + * version 2.1 of the License, or (at your option) any later version. | ||
| 13 | + * | ||
| 14 | + * FFmpeg is distributed in the hope that it will be useful, | ||
| 15 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 17 | + * Lesser General Public License for more details. | ||
| 18 | + * | ||
| 19 | + * You should have received a copy of the GNU Lesser General Public | ||
| 20 | + * License along with FFmpeg; if not, write to the Free Software | ||
| 21 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 22 | + */ | ||
| 23 | + | ||
| 24 | +#ifndef AVCODEC_DIRAC_H | ||
| 25 | +#define AVCODEC_DIRAC_H | ||
| 26 | + | ||
| 27 | +/** | ||
| 28 | + * @file | ||
| 29 | + * Interface to Dirac Decoder/Encoder | ||
| 30 | + * @author Marco Gerards <marco@gnu.org> | ||
| 31 | + * @author David Conrad | ||
| 32 | + * @author Jordi Ortiz | ||
| 33 | + */ | ||
| 34 | + | ||
| 35 | +#include "avcodec.h" | ||
| 36 | + | ||
| 37 | +/** | ||
| 38 | + * The spec limits the number of wavelet decompositions to 4 for both | ||
| 39 | + * level 1 (VC-2) and 128 (long-gop default). | ||
| 40 | + * 5 decompositions is the maximum before >16-bit buffers are needed. | ||
| 41 | + * Schroedinger allows this for DD 9,7 and 13,7 wavelets only, limiting | ||
| 42 | + * the others to 4 decompositions (or 3 for the fidelity filter). | ||
| 43 | + * | ||
| 44 | + * We use this instead of MAX_DECOMPOSITIONS to save some memory. | ||
| 45 | + */ | ||
| 46 | +#define MAX_DWT_LEVELS 5 | ||
| 47 | + | ||
| 48 | +/** | ||
| 49 | + * Parse code values: | ||
| 50 | + * | ||
| 51 | + * Dirac Specification -> | ||
| 52 | + * 9.6.1 Table 9.1 | ||
| 53 | + * | ||
| 54 | + * VC-2 Specification -> | ||
| 55 | + * 10.4.1 Table 10.1 | ||
| 56 | + */ | ||
| 57 | + | ||
| 58 | +enum DiracParseCodes { | ||
| 59 | + DIRAC_PCODE_SEQ_HEADER = 0x00, | ||
| 60 | + DIRAC_PCODE_END_SEQ = 0x10, | ||
| 61 | + DIRAC_PCODE_AUX = 0x20, | ||
| 62 | + DIRAC_PCODE_PAD = 0x30, | ||
| 63 | + DIRAC_PCODE_PICTURE_CODED = 0x08, | ||
| 64 | + DIRAC_PCODE_PICTURE_RAW = 0x48, | ||
| 65 | + DIRAC_PCODE_PICTURE_LOW_DEL = 0xC8, | ||
| 66 | + DIRAC_PCODE_PICTURE_HQ = 0xE8, | ||
| 67 | + DIRAC_PCODE_INTER_NOREF_CO1 = 0x0A, | ||
| 68 | + DIRAC_PCODE_INTER_NOREF_CO2 = 0x09, | ||
| 69 | + DIRAC_PCODE_INTER_REF_CO1 = 0x0D, | ||
| 70 | + DIRAC_PCODE_INTER_REF_CO2 = 0x0E, | ||
| 71 | + DIRAC_PCODE_INTRA_REF_CO = 0x0C, | ||
| 72 | + DIRAC_PCODE_INTRA_REF_RAW = 0x4C, | ||
| 73 | + DIRAC_PCODE_INTRA_REF_PICT = 0xCC, | ||
| 74 | + DIRAC_PCODE_MAGIC = 0x42424344, | ||
| 75 | +}; | ||
| 76 | + | ||
| 77 | +typedef struct DiracVersionInfo { | ||
| 78 | + int major; | ||
| 79 | + int minor; | ||
| 80 | +} DiracVersionInfo; | ||
| 81 | + | ||
| 82 | +typedef struct AVDiracSeqHeader { | ||
| 83 | + unsigned width; | ||
| 84 | + unsigned height; | ||
| 85 | + uint8_t chroma_format; ///< 0: 444 1: 422 2: 420 | ||
| 86 | + | ||
| 87 | + uint8_t interlaced; | ||
| 88 | + uint8_t top_field_first; | ||
| 89 | + | ||
| 90 | + uint8_t frame_rate_index; ///< index into dirac_frame_rate[] | ||
| 91 | + uint8_t aspect_ratio_index; ///< index into dirac_aspect_ratio[] | ||
| 92 | + | ||
| 93 | + uint16_t clean_width; | ||
| 94 | + uint16_t clean_height; | ||
| 95 | + uint16_t clean_left_offset; | ||
| 96 | + uint16_t clean_right_offset; | ||
| 97 | + | ||
| 98 | + uint8_t pixel_range_index; ///< index into dirac_pixel_range_presets[] | ||
| 99 | + uint8_t color_spec_index; ///< index into dirac_color_spec_presets[] | ||
| 100 | + | ||
| 101 | + int profile; | ||
| 102 | + int level; | ||
| 103 | + | ||
| 104 | + AVRational framerate; | ||
| 105 | + AVRational sample_aspect_ratio; | ||
| 106 | + | ||
| 107 | + enum AVPixelFormat pix_fmt; | ||
| 108 | + enum AVColorRange color_range; | ||
| 109 | + enum AVColorPrimaries color_primaries; | ||
| 110 | + enum AVColorTransferCharacteristic color_trc; | ||
| 111 | + enum AVColorSpace colorspace; | ||
| 112 | + | ||
| 113 | + DiracVersionInfo version; | ||
| 114 | + int bit_depth; | ||
| 115 | +} AVDiracSeqHeader; | ||
| 116 | + | ||
| 117 | +/** | ||
| 118 | + * Parse a Dirac sequence header. | ||
| 119 | + * | ||
| 120 | + * @param dsh this function will allocate and fill an AVDiracSeqHeader struct | ||
| 121 | + * and write it into this pointer. The caller must free it with | ||
| 122 | + * liteav_av_free(). | ||
| 123 | + * @param buf the data buffer | ||
| 124 | + * @param buf_size the size of the data buffer in bytes | ||
| 125 | + * @param log_ctx if non-NULL, this function will log errors here | ||
| 126 | + * @return 0 on success, a negative AVERROR code on failure | ||
| 127 | + */ | ||
| 128 | +int liteav_av_dirac_parse_sequence_header(AVDiracSeqHeader **dsh, | ||
| 129 | + const uint8_t *buf, size_t buf_size, | ||
| 130 | + void *log_ctx); | ||
| 131 | + | ||
| 132 | +#endif /* AVCODEC_DIRAC_H */ |
HHVDoctorSDK/TXFFmpeg.xcframework/ios-arm64_armv7/TXFFmpeg.framework/Headers/libavcodec/dv_profile.h
0 → 100644
| 1 | +#include "third_party/ffmpeg/ffmpeg_rename_defines.h" // add by source_replacer.py | ||
| 2 | +/* | ||
| 3 | + * This file is part of FFmpeg. | ||
| 4 | + * | ||
| 5 | + * FFmpeg is free software; you can redistribute it and/or | ||
| 6 | + * modify it under the terms of the GNU Lesser General Public | ||
| 7 | + * License as published by the Free Software Foundation; either | ||
| 8 | + * version 2.1 of the License, or (at your option) any later version. | ||
| 9 | + * | ||
| 10 | + * FFmpeg is distributed in the hope that it will be useful, | ||
| 11 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 13 | + * Lesser General Public License for more details. | ||
| 14 | + * | ||
| 15 | + * You should have received a copy of the GNU Lesser General Public | ||
| 16 | + * License along with FFmpeg; if not, write to the Free Software | ||
| 17 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 18 | + */ | ||
| 19 | + | ||
| 20 | +#ifndef AVCODEC_DV_PROFILE_H | ||
| 21 | +#define AVCODEC_DV_PROFILE_H | ||
| 22 | + | ||
| 23 | +#include <stdint.h> | ||
| 24 | + | ||
| 25 | +#include "libavutil/pixfmt.h" | ||
| 26 | +#include "libavutil/rational.h" | ||
| 27 | +#include "avcodec.h" | ||
| 28 | + | ||
| 29 | +/* minimum number of bytes to read from a DV stream in order to | ||
| 30 | + * determine the profile */ | ||
| 31 | +#define DV_PROFILE_BYTES (6 * 80) /* 6 DIF blocks */ | ||
| 32 | + | ||
| 33 | + | ||
| 34 | +/* | ||
| 35 | + * AVDVProfile is used to express the differences between various | ||
| 36 | + * DV flavors. For now it's primarily used for differentiating | ||
| 37 | + * 525/60 and 625/50, but the plans are to use it for various | ||
| 38 | + * DV specs as well (e.g. SMPTE314M vs. IEC 61834). | ||
| 39 | + */ | ||
| 40 | +typedef struct AVDVProfile { | ||
| 41 | + int dsf; /* value of the dsf in the DV header */ | ||
| 42 | + int video_stype; /* stype for VAUX source pack */ | ||
| 43 | + int frame_size; /* total size of one frame in bytes */ | ||
| 44 | + int difseg_size; /* number of DIF segments per DIF channel */ | ||
| 45 | + int n_difchan; /* number of DIF channels per frame */ | ||
| 46 | + AVRational time_base; /* 1/framerate */ | ||
| 47 | + int ltc_divisor; /* FPS from the LTS standpoint */ | ||
| 48 | + int height; /* picture height in pixels */ | ||
| 49 | + int width; /* picture width in pixels */ | ||
| 50 | + AVRational sar[2]; /* sample aspect ratios for 4:3 and 16:9 */ | ||
| 51 | + enum AVPixelFormat pix_fmt; /* picture pixel format */ | ||
| 52 | + int bpm; /* blocks per macroblock */ | ||
| 53 | + const uint8_t *block_sizes; /* AC block sizes, in bits */ | ||
| 54 | + int audio_stride; /* size of audio_shuffle table */ | ||
| 55 | + int audio_min_samples[3]; /* min amount of audio samples */ | ||
| 56 | + /* for 48kHz, 44.1kHz and 32kHz */ | ||
| 57 | + int audio_samples_dist[5]; /* how many samples are supposed to be */ | ||
| 58 | + /* in each frame in a 5 frames window */ | ||
| 59 | + const uint8_t (*audio_shuffle)[9]; /* PCM shuffling table */ | ||
| 60 | +} AVDVProfile; | ||
| 61 | + | ||
| 62 | +/** | ||
| 63 | + * Get a DV profile for the provided compressed frame. | ||
| 64 | + * | ||
| 65 | + * @param sys the profile used for the previous frame, may be NULL | ||
| 66 | + * @param frame the compressed data buffer | ||
| 67 | + * @param buf_size size of the buffer in bytes | ||
| 68 | + * @return the DV profile for the supplied data or NULL on failure | ||
| 69 | + */ | ||
| 70 | +const AVDVProfile *liteav_av_dv_frame_profile(const AVDVProfile *sys, | ||
| 71 | + const uint8_t *frame, unsigned buf_size); | ||
| 72 | + | ||
| 73 | +/** | ||
| 74 | + * Get a DV profile for the provided stream parameters. | ||
| 75 | + */ | ||
| 76 | +const AVDVProfile *liteav_av_dv_codec_profile(int width, int height, enum AVPixelFormat pix_fmt); | ||
| 77 | + | ||
| 78 | +/** | ||
| 79 | + * Get a DV profile for the provided stream parameters. | ||
| 80 | + * The frame rate is used as a best-effort parameter. | ||
| 81 | + */ | ||
| 82 | +const AVDVProfile *liteav_av_dv_codec_profile2(int width, int height, enum AVPixelFormat pix_fmt, AVRational frame_rate); | ||
| 83 | + | ||
| 84 | +#endif /* AVCODEC_DV_PROFILE_H */ |
HHVDoctorSDK/TXFFmpeg.xcframework/ios-arm64_armv7/TXFFmpeg.framework/Headers/libavcodec/dxva2.h
0 → 100644
| 1 | +/* | ||
| 2 | + * DXVA2 HW acceleration | ||
| 3 | + * | ||
| 4 | + * copyright (c) 2009 Laurent Aimar | ||
| 5 | + * | ||
| 6 | + * This file is part of FFmpeg. | ||
| 7 | + * | ||
| 8 | + * FFmpeg is free software; you can redistribute it and/or | ||
| 9 | + * modify it under the terms of the GNU Lesser General Public | ||
| 10 | + * License as published by the Free Software Foundation; either | ||
| 11 | + * version 2.1 of the License, or (at your option) any later version. | ||
| 12 | + * | ||
| 13 | + * FFmpeg is distributed in the hope that it will be useful, | ||
| 14 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 16 | + * Lesser General Public License for more details. | ||
| 17 | + * | ||
| 18 | + * You should have received a copy of the GNU Lesser General Public | ||
| 19 | + * License along with FFmpeg; if not, write to the Free Software | ||
| 20 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 21 | + */ | ||
| 22 | + | ||
| 23 | +#ifndef AVCODEC_DXVA2_H | ||
| 24 | +#define AVCODEC_DXVA2_H | ||
| 25 | + | ||
| 26 | +/** | ||
| 27 | + * @file | ||
| 28 | + * @ingroup lavc_codec_hwaccel_dxva2 | ||
| 29 | + * Public libavcodec DXVA2 header. | ||
| 30 | + */ | ||
| 31 | + | ||
| 32 | +#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0602 | ||
| 33 | +#undef _WIN32_WINNT | ||
| 34 | +#define _WIN32_WINNT 0x0602 | ||
| 35 | +#endif | ||
| 36 | + | ||
| 37 | +#include <stdint.h> | ||
| 38 | +#include <d3d9.h> | ||
| 39 | +#include <dxva2api.h> | ||
| 40 | + | ||
| 41 | +/** | ||
| 42 | + * @defgroup lavc_codec_hwaccel_dxva2 DXVA2 | ||
| 43 | + * @ingroup lavc_codec_hwaccel | ||
| 44 | + * | ||
| 45 | + * @{ | ||
| 46 | + */ | ||
| 47 | + | ||
| 48 | +#define FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG 1 ///< Work around for DXVA2 and old UVD/UVD+ ATI video cards | ||
| 49 | +#define FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO 2 ///< Work around for DXVA2 and old Intel GPUs with ClearVideo interface | ||
| 50 | + | ||
| 51 | +/** | ||
| 52 | + * This structure is used to provides the necessary configurations and data | ||
| 53 | + * to the DXVA2 FFmpeg HWAccel implementation. | ||
| 54 | + * | ||
| 55 | + * The application must make it available as AVCodecContext.hwaccel_context. | ||
| 56 | + */ | ||
| 57 | +struct dxva_context { | ||
| 58 | + /** | ||
| 59 | + * DXVA2 decoder object | ||
| 60 | + */ | ||
| 61 | + IDirectXVideoDecoder *decoder; | ||
| 62 | + | ||
| 63 | + /** | ||
| 64 | + * DXVA2 configuration used to create the decoder | ||
| 65 | + */ | ||
| 66 | + const DXVA2_ConfigPictureDecode *cfg; | ||
| 67 | + | ||
| 68 | + /** | ||
| 69 | + * The number of surface in the surface array | ||
| 70 | + */ | ||
| 71 | + unsigned surface_count; | ||
| 72 | + | ||
| 73 | + /** | ||
| 74 | + * The array of Direct3D surfaces used to create the decoder | ||
| 75 | + */ | ||
| 76 | + LPDIRECT3DSURFACE9 *surface; | ||
| 77 | + | ||
| 78 | + /** | ||
| 79 | + * A bit field configuring the workarounds needed for using the decoder | ||
| 80 | + */ | ||
| 81 | + uint64_t workaround; | ||
| 82 | + | ||
| 83 | + /** | ||
| 84 | + * Private to the FFmpeg AVHWAccel implementation | ||
| 85 | + */ | ||
| 86 | + unsigned report_id; | ||
| 87 | +}; | ||
| 88 | + | ||
| 89 | +/** | ||
| 90 | + * @} | ||
| 91 | + */ | ||
| 92 | + | ||
| 93 | +#endif /* AVCODEC_DXVA2_H */ |
HHVDoctorSDK/TXFFmpeg.xcframework/ios-arm64_armv7/TXFFmpeg.framework/Headers/libavcodec/jni.h
0 → 100644
| 1 | +#include "third_party/ffmpeg/ffmpeg_rename_defines.h" // add by source_replacer.py | ||
| 2 | +/* | ||
| 3 | + * JNI public API functions | ||
| 4 | + * | ||
| 5 | + * Copyright (c) 2015-2016 Matthieu Bouron <matthieu.bouron stupeflix.com> | ||
| 6 | + * | ||
| 7 | + * This file is part of FFmpeg. | ||
| 8 | + * | ||
| 9 | + * FFmpeg is free software; you can redistribute it and/or | ||
| 10 | + * modify it under the terms of the GNU Lesser General Public | ||
| 11 | + * License as published by the Free Software Foundation; either | ||
| 12 | + * version 2.1 of the License, or (at your option) any later version. | ||
| 13 | + * | ||
| 14 | + * FFmpeg is distributed in the hope that it will be useful, | ||
| 15 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 17 | + * Lesser General Public License for more details. | ||
| 18 | + * | ||
| 19 | + * You should have received a copy of the GNU Lesser General Public | ||
| 20 | + * License along with FFmpeg; if not, write to the Free Software | ||
| 21 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 22 | + */ | ||
| 23 | + | ||
| 24 | +#ifndef AVCODEC_JNI_H | ||
| 25 | +#define AVCODEC_JNI_H | ||
| 26 | + | ||
| 27 | +/* | ||
| 28 | + * Manually set a Java virtual machine which will be used to retrieve the JNI | ||
| 29 | + * environment. Once a Java VM is set it cannot be changed afterwards, meaning | ||
| 30 | + * you can call multiple times liteav_av_jni_set_java_vm with the same Java VM pointer | ||
| 31 | + * however it will error out if you try to set a different Java VM. | ||
| 32 | + * | ||
| 33 | + * @param vm Java virtual machine | ||
| 34 | + * @param log_ctx context used for logging, can be NULL | ||
| 35 | + * @return 0 on success, < 0 otherwise | ||
| 36 | + */ | ||
| 37 | +int liteav_av_jni_set_java_vm(void *vm, void *log_ctx); | ||
| 38 | + | ||
| 39 | +/* | ||
| 40 | + * Get the Java virtual machine which has been set with liteav_av_jni_set_java_vm. | ||
| 41 | + * | ||
| 42 | + * @param vm Java virtual machine | ||
| 43 | + * @return a pointer to the Java virtual machine | ||
| 44 | + */ | ||
| 45 | +void *liteav_av_jni_get_java_vm(void *log_ctx); | ||
| 46 | + | ||
| 47 | +#endif /* AVCODEC_JNI_H */ |
-
Please register or login to post a comment