Skip to content

Instantly share code, notes, and snippets.

+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,
static const struct file_operations proc_cpuinfo_operations = {
.open = cpuinfo_open,
.read = seq_read,
.llseek = seq_lseek,
.release = seq_release,
};
const struct file_operations ext4_dir_operations = {
.llseek = ext4_dir_llseek,
.read = generic_read_dir,
//..
};
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 *);
//...
}
struct Codec
{
*int (*encode)(*int);
*int (*decode)(*int);
};
*int h264_encode(int *bytes)
{
// ...
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
class AV1
def encode(bytes)
end
def decode(bytes)
end
end
class H264
def encode(bytes)
end
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
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);
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