This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+AVCodec ff_libdav1d_decoder = { | |
+ .name = "libdav1d", | |
+ .long_name = NULL_IF_CONFIG_SMALL("dav1d AV1 decoder by VideoLAN"), | |
+ .type = AVMEDIA_TYPE_VIDEO, | |
+ .id = AV_CODEC_ID_AV1, | |
+ .priv_data_size = sizeof(Libdav1dContext), | |
+ .init = libdav1d_init, | |
+ .close = libdav1d_close, | |
+ .flush = libdav1d_flush, | |
+ .receive_frame = libdav1d_receive_frame, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static const struct file_operations proc_cpuinfo_operations = { | |
.open = cpuinfo_open, | |
.read = seq_read, | |
.llseek = seq_lseek, | |
.release = seq_release, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const struct file_operations ext4_dir_operations = { | |
.llseek = ext4_dir_llseek, | |
.read = generic_read_dir, | |
//.. | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct file_operations { | |
struct module *owner; | |
loff_t (*llseek) (struct file *, loff_t, int); | |
ssize_t (*read) (struct file *, char __user *, size_t, loff_t *); | |
ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *); | |
//... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Codec | |
{ | |
*int (*encode)(*int); | |
*int (*decode)(*int); | |
}; | |
*int h264_encode(int *bytes) | |
{ | |
// ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Codec interface { | |
Encode(data []int) ([]int, error) | |
Decode(data []int) ([]int, error) | |
} | |
type H264 struct { | |
} | |
func (H264) Encode(data []int) ([]int, error) { | |
// ... lots of code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AV1 | |
def encode(bytes) | |
end | |
def decode(bytes) | |
end | |
end | |
class H264 | |
def encode(bytes) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.gtplanet.net/how-gran-turismo-is-made/ | |
https://www.fia.com/news/auto-changing-game | |
https://www.youtube.com/watch?v=I8GQCZgCNw8 | |
https://www.gtplanet.net/dr-kazunori-yamauchi-gives-lecture-gran-turismos-driving-physics-production/ | |
https://www.gtplanet.net/polyphony-digital-reveals-gt-sports-iris-ray-tracing-system-at-cedec-2018 | |
https://www.youtube.com/watch?v=VxL9j-j7JaI | |
https://www.youtube.com/watch?v=FPX2qRQAnBo | |
https://www.youtube.com/watch?v=QESGXTFFZXM | |
https://www.youtube.com/watch?v=-FrybeCxDPU | |
https://www.youtube.com/watch?v=ygUqvfeAaa0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [ref_ii, ref_jj, blk_residual] = block_match(blk, frame) | |
% frame and block dimensions | |
[H, W] = size(frame); | |
blk_size = size(blk, 1); | |
ref_ii = 1; | |
ref_jj = 1; | |
err = (255 ^ 2) * (blk_size ^ 2); | |
blk_residual = 255 * ones(blk_size, blk_size); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Image = imread('Cameraman256.bmp'); | |
Frequency = zeros(256); | |
Samples = 256 * 256; | |
for i = 1:256 | |
for j = 1:256 | |
% convert 0-255 to index-wise | |
IntensityIndex = Image(i,j) + 1; | |
Frequency(IntensityIndex) = Frequency(IntensityIndex) + 1; | |
end |